/* =====================================================================
   토스 디자인 시스템(TDS) 느낌으로 덮어쓰기. style.css → theme.css 다음에 읽는다.
   되돌리려면 base.html 에서 이 파일 줄만 지우면 된다.
   색: 토스 블루 + 회색 단계(grey50~900). 페이지는 흰 바탕, 카드·표·입력 칸은 회색 면 대신 얇은 선으로 구분한다.
   ===================================================================== */
:root {
  --blue: #3182f6; --blue-d: #1b64da; --blue-50: #e8f3ff; --blue-100: #c9e2ff;
  --g50: #f9fafb; --g100: #f2f4f6; --g200: #e5e8eb; --g300: #d1d6db; --g400: #b0b8c1;
  --g500: #8b95a1; --g600: #6b7684; --g700: #4e5968; --g800: #333d4b; --g900: #191f28;
  --red: #f04452; --red-50: #ffeeee; --green: #03b26c; --green-50: #f0faf6; --orange: #fe9800; --orange-50: #fff3e0;
  --brand: var(--blue); --brand-d: var(--blue-d); --brand-soft: var(--blue-50);
  --navy: #12264a; --text: var(--g900); --muted: var(--g600); --line: var(--g200); --line2: var(--g100); --bg: #fff;
  --radius: 12px;
}
body { background: #fff; color: var(--g900); font-size: 15px; letter-spacing: -0.02em; }
.small { color: var(--g600); }
h1 { font-size: 26px; font-weight: 700; color: var(--g900); letter-spacing: -0.03em; }
h2 { font-size: 19px; font-weight: 700; color: var(--g900); }
h3 { color: var(--g800); }
a { color: var(--blue); }

/* ---------- 왼쪽 메뉴: 깊은 남색 바탕, 고른 메뉴는 파랑 ---------- */
.shell .side, .shell.in-company .side { background: var(--navy); border-right: 0; box-shadow: none; padding: 18px 12px; }
.side .brand, .side .brand .ico, .in-company .side .brand { color: #fff; }
.side .brand.back, .side .brand.back .ico { color: #a9b8d4; }
.side .brand.back:hover { color: #fff; }
.side nav a, .in-company .side nav a { color: #d5deef; border-radius: 12px; padding: 11px 14px; font-weight: 500; font-size: 15px; }
.side nav a .ico, .in-company .side nav a .ico { color: #8fa3c7; }
.side nav a:hover, .in-company .side nav a:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.side nav a.on, .in-company .side nav a.on { background: var(--blue); color: #fff; font-weight: 700; }
.side nav a.on .ico, .in-company .side nav a.on .ico { color: #fff; }
.side-sep, .in-company .side-sep { background: rgba(255, 255, 255, .12); }
.side-head { color: #8fa3c7; }

/* ---------- 위쪽 바 ---------- */
.bar { background: #fff; border-bottom: 0; box-shadow: 0 1px 0 var(--g200); min-height: 64px; }
.bar .co-name { font-size: 18px; font-weight: 700; color: var(--g900); }
.bar-sep { background: var(--g300); }
.bar-meta, .bar .who { color: var(--g600); }
.page { padding: 32px 40px 64px; }

/* ---------- 버튼: 채운 파랑(주요) / 흰 바탕에 선(보조) ---------- */
button, .btn {
  height: 40px; padding: 0 16px; border: 0; border-radius: 10px; background: var(--blue); color: #fff;
  font-size: 15px; font-weight: 600; letter-spacing: -0.02em;
}
button:hover, .btn:hover { background: var(--blue-d); border: 0; }
button:active, .btn:active { transform: scale(.98); }
.btn.ghost, button.ghost, button.secondary, .btn.secondary, .btn.outline, td.actions .btn.ghost {
  background: #fff; color: var(--g800) !important; border: 1px solid var(--g300);
}
.btn.ghost:hover, button.ghost:hover, button.secondary:hover, .btn.secondary:hover, .btn.outline:hover, td.actions .btn.ghost:hover { background: var(--g50); border: 1px solid var(--g400); }
button.link, button.link:hover { background: none; color: var(--blue); }
.btn.dark, summary.btn.dark { background: var(--g800); }
.danger-btn, button.danger-btn { background: var(--red); }
.danger-btn:hover { background: #d22030; }
td .btn, td button:not(.link):not(.toggle) { height: 34px; border-radius: 8px; font-size: 14px; }
.btn.sm, button.sm, .btn.small { height: 32px; border-radius: 8px; font-size: 13px; padding: 0 12px; }

/* ---------- 입력 칸: 둥글고 옅은 테두리, 누르면 파란 테두리 ---------- */
:where(.page) :where(input, select, textarea) { border: 1px solid var(--g200); border-radius: 10px; background-color: #fff; color: var(--g900); font-size: 15px; }
:where(.page) :where(input:not([type=checkbox], [type=radio], [type=file], .cell, .hours), select) { height: 44px; padding: 0 14px; }
/* 옛 style.css 의 select { padding: 10px } 가 위 규칙(:where 라 우선순위 0)을 이겨, 높이를 줄인 선택 상자(34px 등)에서 글자가 잘렸다. 위아래 여백만 여기서 없앤다. */
:where(.page) select:where(:not([multiple], [size])) { padding-top: 0; padding-bottom: 0; }
:where(.page) :where(input, select, textarea):hover { border-color: var(--g300); }
:where(.page) :where(input, select, textarea):focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(49, 130, 246, .15); }
:where(.page) :where(input, select, textarea):disabled, :where(.page) input[readonly] { background: var(--g50); color: var(--g600); }
input[type=checkbox], input[type=radio] { accent-color: var(--blue); width: 18px; height: 18px; }
label { color: var(--g700); font-size: 14px; }
label.check { color: var(--g900); font-size: 15px; }
fieldset { border: 1px solid var(--g200); border-radius: var(--radius); background: #fff; padding: 18px 22px; }

/* ---------- 표: 카드 없이 위아래 선과 가로줄로 구분 ---------- */
.tablewrap { border: 0; border-top: 1px solid var(--g200); border-radius: 0; background: #fff; box-shadow: none; padding: 0; }
.tablewrap:has(> table.ledger-grid, > table.daily-grid) { border: 1px solid var(--g200); }
table { background: #fff; font-size: 15px; }
th { color: var(--g600); font-weight: 500; font-size: 13px; background: #fff; border-bottom: 1px solid var(--g500); }
td { border-bottom: 1px solid var(--g200); }
.tablewrap > table th, .tablewrap > table td { padding: 15px 14px; }
table:not(.ledger-grid) tr:hover > td { background: var(--g50); }
tr.total td { background: var(--g50); font-weight: 700; }
.ledger-grid thead th, .ledger-grid thead .sticky, .ledger-grid tfoot td, .stacked tfoot td { background: var(--blue-50); color: var(--g800); }
code { background: var(--g100); border-radius: 6px; }

/* ---------- 배지: 연한 바탕 + 진한 글씨 ---------- */
.badge { height: 26px; padding: 0 10px; border-radius: 8px; font-size: 13px; font-weight: 600; background: var(--g100); color: var(--g700); }
.badge.s-draft, .badge.conf-보통 { background: var(--g100); color: var(--g700); }
.badge.s-reviewed, .badge.s-pending { background: var(--orange-50); color: #e07a00; }
.badge.s-confirmed, .badge.conf-높음 { background: var(--green-50); color: #029359; }
.badge.conf-낮음 { background: var(--red-50); color: var(--red); }
.toggle { background: var(--g300); }
.toggle:hover { background: var(--g400); }
.toggle.on, .toggle.on:hover { background: var(--blue); }
.switch input:checked + span { background: var(--blue); }

/* ---------- 탭: 굵은 글씨, 고른 탭은 검은 밑줄 ---------- */
.tabs { gap: 24px; border-bottom: 1px solid var(--g200); }
.tabs a { font-size: 16px; font-weight: 600; color: var(--g600); padding: 12px 2px; }
.tabs a:hover { color: var(--g800); }
.tabs a.on { color: var(--g900); border-bottom-color: var(--blue); font-weight: 700; }
.seg { background: #fff; border: 1px solid var(--g200); border-radius: 10px; }
.seg button { border-radius: 8px; color: var(--g600); height: 34px; }
.seg button.on { background: var(--blue-50); color: var(--blue); box-shadow: none; }
.seg button:hover:not(.on) { background: transparent; color: var(--g900); }

/* ---------- 카드·알림 ---------- */
.card, .sev-sec, .setting-block, .emp-new, .form-card, .ins-info, .term-filter, .sum-form, .ins-kpis .kpi, .empty-state {
  border: 1px solid var(--g200); border-radius: var(--radius); background: #fff; box-shadow: none;
}
.sum-form { padding: 6px 14px; }
.sum-row { border-bottom-color: var(--g100); }
.sum-label { color: var(--g600); font-weight: 500; }
p.ok[role=status], p.ok[role=alert] { background: var(--blue-50); border: 0; color: var(--blue-d); border-radius: 12px; padding: 12px 16px; }
p.error[role=alert], p.error { background: var(--red-50); border: 0; color: var(--red); border-radius: 12px; }
p.error { padding: 12px 16px; }
.notice { background: var(--blue-50); border: 0; border-radius: 12px; color: var(--g800); }
.warn { color: #e07a00; }
.pop-body { border: 0; border-radius: 20px; box-shadow: 0 12px 40px rgba(0, 0, 0, .12); }
.auth-card { border: 0; border-radius: 24px; box-shadow: 0 8px 32px rgba(0, 0, 0, .06); }
details.menu .menu-list, details.basis .basis-body { border: 0; border-radius: 14px; box-shadow: 0 8px 28px rgba(0, 0, 0, .12); }
.danger-zone { border: 0; background: var(--red-50); border-radius: var(--radius); }
.danger-zone summary { color: var(--red); }
.save-bar { border-top-color: var(--g100); }
.method-chip, .entrust-badge { border-radius: 6px; }
.ins-kpis .kpi.on { box-shadow: inset 0 0 0 2px var(--blue); }

/* 기존 보라색 강조는 파랑으로 */
td.actions .btn.ghost { color: var(--g700) !important; }
.btn.outline { color: var(--blue) !important; background: var(--blue-50); border-color: var(--blue-100); }
.tab-count { color: var(--blue); }
.refund { color: var(--blue); }
.due, .term-list .last-day, .sev-form input.net, table.sev-grid tr.sum td { color: var(--red); }

.toolbar { gap: 8px; flex-wrap: wrap; }
.slip-page { background: #fff; }
.tablewrap td > a:first-child { white-space: nowrap; }

/* 급여대장: 근로자 1명 3줄 */
.stacked tbody.person tr:nth-child(3) td { border-bottom: 2px solid var(--g300); }
.stacked .wage-kind { font-weight: 600; color: var(--g700); }
.stacked td.att.mode { font-size: 11px; line-height: 1.3; }
.stacked td.att.mode .badge { height: 20px; padding: 0 6px; font-size: 11px; }

/* 사원 › 급여 일괄 관리: 칸을 촘촘하게 해서 가로로 넘치지 않게 */
table.bulk-table { width: 100%; table-layout: auto; font-size: 13px; }
.tablewrap > table.bulk-table th, .tablewrap > table.bulk-table td { padding: 6px 3px; }
.tablewrap > table.bulk-table th { white-space: normal; word-break: keep-all; font-size: 12px; line-height: 1.3; text-align: center; }
table.bulk-table :is(input, select) { height: 32px; padding: 0 6px; font-size: 13px; border-radius: 8px; }
table.bulk-table select { padding-right: 2px; }
table.bulk-table input.money { width: 100%; min-width: 5.2em; max-width: 8em; text-align: right; }
table.bulk-table input.money.sm { min-width: 4.6em; }
table.bulk-table input.w-h { width: 3.4em; padding: 0 4px; }
table.bulk-table input.w-pct { width: 3em; padding: 0 4px; }
table.bulk-table .js-rate { font-size: 12px; }
.bulk-table + .muted, .tablewrap:has(> table.bulk-table) { overflow-x: auto; }
table.bulk-table td.fx input { display: block; margin: 0 auto 3px; }
table.bulk-table td.fx input.w-h { width: 100%; max-width: 6em; min-width: 3.4em; text-align: right; }
table.bulk-table td.fx input:last-child { margin-bottom: 0; }
table.bulk-table :is(input, select) { box-sizing: border-box; }
table.bulk-table input.money, table.bulk-table input.money.sm { min-width: 4.9em; }
table.bulk-table input.money, table.bulk-table input.money.sm { width: 5.6em; min-width: 0; max-width: none; }
table.bulk-table td.fx input.w-h { width: 5.6em; max-width: none; }
@media (max-width: 1500px) {
  .page { padding: 24px 20px 56px; }
  table.bulk-table, table.bulk-table :is(input, select) { font-size: 12px; }
  table.bulk-table :is(input, select) { padding: 0 4px; height: 30px; }
  table.bulk-table input.money, table.bulk-table input.money.sm, table.bulk-table td.fx input.w-h { width: 5.3em; }
  .tablewrap:has(> table.bulk-table) { padding: 2px 4px; }
}
@media (max-width: 1500px) { .shell { grid-template-columns: 188px minmax(0, 1fr); } .side nav a { padding: 10px 10px; font-size: 14px; } }

/* 급여대장 위 도구 줄: 한 줄, 아이콘 버튼 */
.ledger-tools { display: flex; flex-wrap: nowrap; align-items: center; gap: 6px; }
.ledger-tools > * { flex: none; margin: 0; }
.ledger-tools input[type=search] { width: 170px; height: 36px; flex: 0 1 170px; min-width: 110px; }
.ledger-tools .btn, .ledger-tools button { height: 36px; padding: 0 12px; font-size: 14px; gap: 5px; }
.ledger-tools .btn .ico, .ledger-tools button .ico { width: 16px; height: 16px; }
.ledger-tools button.link { height: auto; padding: 0; }  /* 도구 줄 팝업 안의 글자 버튼: 마우스를 올릴 때 크기가 바뀌지 않게 */
.ledger-tools .tool-end { margin-left: auto; }
.toggle-btn { cursor: pointer; user-select: none; }
.toggle-btn input { position: absolute; opacity: 0; width: 0; height: 0; }
.toggle-btn:has(input:checked) { background: var(--blue-50) !important; color: var(--blue) !important; }
.toggle-btn:has(input:focus-visible) { outline: 2px solid var(--blue); outline-offset: 2px; }
button.icon-only { width: 36px; padding: 0; }
button.icon-only .ico { width: 16px; height: 16px; flex: none; }
button.danger-ghost { background: #fff; color: var(--g600); border: 1px solid var(--g300); }
button.danger-ghost:hover { background: var(--red-50); color: var(--red); }
.pop-body.menu-body { display: flex; flex-direction: column; padding: 6px; min-width: 210px; gap: 0; }
.pop-body.menu-body a { padding: 10px 12px; border-radius: 8px; color: var(--g800); white-space: nowrap; }
.pop-body.menu-body a:hover { background: var(--g100); text-decoration: none; }
@media (max-width: 1500px) { .ledger-tools .btn, .ledger-tools button { padding: 0 9px; font-size: 13px; } }
.pop-body.menu-body { width: auto; }

/* 급여집계표 조건: 가운데 정렬 */
.sum-row > .row, .sum-row > div { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sum-row .tilde { font-size: 18px; color: var(--g700); padding: 0 4px; line-height: 1; }
.sum-row input[type=month] { width: 170px; }
.emp-pick > summary.btn { display: inline-flex; align-items: center; justify-content: center; }
.sum-row label.check { display: inline-flex; align-items: center; gap: 6px; margin: 0; }
/* 일용직·프리랜서 여러 명 등록 */
.quick-table td { padding: 6px 8px !important; vertical-align: middle; }
.quick-table input[name=name] { width: 140px; } .quick-table input[name=rrn] { width: 170px; }
.quick-table label.check { display: inline-flex; align-items: center; gap: 4px; margin-right: 10px; font-size: 14px; }
div.error[role=alert] { background: var(--red-50); color: var(--red); border-radius: 12px; padding: 12px 16px; margin: 10px 0; }
div.error ul { margin: 6px 0 0; padding-left: 18px; }
.ledger-tools { flex-wrap: wrap; row-gap: 6px; }

/* 일용직 급여대장 */
.daily-wrap { overflow-x: auto; padding: 0; }
table.daily-grid { border-collapse: collapse; font-size: 13px; width: 100%; }
.tablewrap > table.daily-grid th, .tablewrap > table.daily-grid td { padding: 5px 6px; border: 1px solid var(--g200); }
table.daily-grid thead th { background: var(--blue-50); color: var(--g700); text-align: center; font-size: 12px; white-space: nowrap; }
table.daily-grid tbody.dperson tr:last-child td { border-bottom: 2px solid var(--g300); }
table.daily-grid td.id { white-space: nowrap; text-align: center; }
table.daily-grid td.day { padding: 3px 2px !important; text-align: center; }
.dbtn { display: inline-block; cursor: pointer; margin: 0; }
.dbtn input { position: absolute; opacity: 0; width: 0; height: 0; }
.dbtn span { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 6px; border: 1px solid var(--g200); font-size: 11px; font-weight: 600; color: var(--g700); background: #fff; }
.dbtn.sun span { color: var(--red); } .dbtn.sat span { color: var(--blue); }
.dbtn input:checked + span { background: var(--blue); border-color: var(--blue); color: #fff; }
.dbtn input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 1px; }
.dbtn input:disabled + span { cursor: default; opacity: .8; }
table.daily-grid :is(input, select) { height: 32px; font-size: 13px; padding: 0 6px; box-sizing: border-box; }
table.daily-grid input.w-n { width: 4.2em; text-align: right; }
table.daily-grid input.money { width: 7.5em; text-align: right; }
table.daily-grid input.money.sm { width: 6em; }
table.daily-grid input[readonly] { background: var(--g50); color: var(--g600); }
table.daily-grid select { width: auto; padding-right: 2px; }
.tag-warn { display: inline-block; margin-top: 4px; padding: 2px 8px; border-radius: 999px; background: var(--red-50); color: var(--red); font-size: 11px; font-weight: 600; white-space: nowrap; }
tbody.dperson.saving { opacity: .55; transition: opacity .15s; }
table.daily-grid tfoot td { background: var(--blue-50); font-weight: 700; text-align: right; }
table.daily-grid tfoot td:first-child { text-align: center; }
.tablewrap > table.daily-grid th, .tablewrap > table.daily-grid td { padding: 4px 4px; }
table.daily-grid td.day { padding: 2px 1px !important; }
.dbtn span { width: 21px; height: 21px; font-size: 10.5px; border-radius: 5px; }
table.daily-grid input.w-n { width: 3.2em; padding: 0 4px; }
table.daily-grid input.money { width: 6.6em; padding: 0 5px; }
table.daily-grid input.money.sm { width: 5.4em; }
table.daily-grid thead th { white-space: normal; word-break: keep-all; }
table.daily-grid td .row { gap: 3px; flex-wrap: nowrap; }
table.daily-grid label.check.small { font-size: 11px; white-space: nowrap; }
table.daily-grid .js-save { height: 26px; padding: 0 8px; font-size: 12px; margin-top: 4px; }
table.daily-grid .tag-warn { white-space: normal; max-width: 9em; line-height: 1.3; }
table.daily-grid td.eicell { max-width: 7.5em; }
table.daily-grid .ei-why { display: inline-block; line-height: 1.25; font-size: 11px; }

/* 출력선택 창(주민등록번호/생년월일) */
.ask-dialog { border: 0; border-radius: 16px; padding: 0; width: min(480px, 92vw); box-shadow: 0 12px 40px rgba(0, 0, 0, .18); }
.ask-dialog::backdrop { background: rgba(0, 0, 0, .35); }
.ask-title { margin: 0; padding: 18px 22px; background: var(--g50); font-size: 17px; }
.ask-body { display: flex; align-items: center; gap: 18px; padding: 30px 22px; }
.ask-label { width: 90px; color: var(--g700); }
.ask-foot { display: flex; justify-content: center; gap: 8px; padding: 14px; background: var(--g50); }

/* 회원사 설정 › 급여 관리(휴램프로식 설정 카드) */
.set-form { display: block; }
.set-card { background: #fff; border: 1px solid var(--g200); border-radius: var(--radius); padding: 22px 32px 18px; margin: 0 0 20px; }
.set-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 18px; border-bottom: 1px solid var(--g200); }
.set-head h2 { margin: 0; font-size: 18px; }
.set-head button { min-width: 110px; }
.set-row { display: grid; grid-template-columns: 260px minmax(0, 1fr); align-items: center; gap: 12px; padding: 14px 10px; border-bottom: 1px solid var(--g100); }
.set-name { color: var(--g800); font-size: 14px; }
.set-ctl { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; font-size: 14px; color: var(--g700); }
.set-ctl label.check { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-size: 14px; }
.set-ctl .inline-field { display: inline-flex; align-items: center; gap: 6px; margin: 0; }
.set-ctl select.w-auto { width: auto; min-width: 160px; }
.set-ctl input.w-num { width: 90px; } .set-ctl input.w-money { width: 140px; }
.set-note { flex-basis: 100%; margin: 4px 0 0; }
.set-card .hl { color: var(--blue); font-weight: 600; }
.set-card.advanced summary { cursor: pointer; color: var(--g600); }
.set-card.advanced textarea { width: 100%; margin-top: 10px; }
@media (max-width: 800px) { .set-row { grid-template-columns: 1fr; } .set-card { padding: 18px; } }
.form-card { max-width: 1240px; width: 100%; box-sizing: border-box; }  /* 회원사 설정 탭(회원사 관리·급여 관리·계약서 양식)이 같은 폭 */
/* 탭을 옮길 때 스크롤바가 생겼다 없어지며 화면이 옆으로 밀리지 않게 */
html { scrollbar-gutter: stable; overflow-y: scroll; }

/* 급여대장 상태 칸: 정상 / 검토 배지, 마우스를 올리면 내용 */
.stacked th.stat, .stacked td.stat { width: 56px; text-align: center; overflow: visible; }
.st { position: relative; display: inline-flex; align-items: center; justify-content: center; height: 24px; padding: 0 9px; border-radius: 7px; font-size: 12px; font-weight: 700; cursor: default; white-space: nowrap; }
.st-ok { background: var(--green-50); color: #029359; }
.st-review { background: var(--orange-50); color: #e07a00; cursor: help; }
.st-note { background: var(--blue-50); color: #1b64da; cursor: help; }
.st .st-pop { display: none; position: absolute; right: 0; top: calc(100% + 6px); z-index: 40; width: 340px; padding: 10px 12px; background: #fff; border-radius: 12px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, .16); text-align: left; white-space: normal; font-weight: 500; font-size: 12.5px; line-height: 1.45; color: var(--g800); }
.st .st-pop > span { display: block; margin: 2px 0; }
.st:hover .st-pop, .st:focus .st-pop, .st:focus-within .st-pop { display: block; }
.stacked tbody.person:last-of-type .st .st-pop, .stacked tbody.person:nth-last-of-type(2) .st .st-pop { top: auto; bottom: calc(100% + 6px); }

/* 급여대장 글씨·칸 키우기(상태 칸을 줄이고 근태 칸을 좁혀 금액 칸을 넓힌다) */
table.ledger-grid.stacked { font-size: 13px; min-width: 1180px; }
.stacked thead th { font-size: 12.5px; height: 40px; }
.stacked th, .stacked td { height: 32px; padding: 4px 3px; }
.stacked th.att { width: 52px; } .stacked th.idh { width: 76px; }
.stacked input.cell { height: 27px; font-size: 13px; padding: 1px 2px; letter-spacing: -0.05em; }
.stacked td.id { font-size: 13px; }
.stacked tfoot td { font-size: 12px; letter-spacing: -0.04em; }
.stacked td.att.mode { font-size: 11.5px; }
.stacked td.att.mode .badge { height: 21px; font-size: 11.5px; padding: 0 5px; }
@media (max-width: 1500px) {
  table.ledger-grid.stacked, .stacked td.id { font-size: 12px; }
  .stacked input.cell { font-size: 11px; }
  .stacked thead th { font-size: 11.5px; padding: 3px 2px; }
  .stacked th.att { width: 46px; } .stacked th.idh { width: 70px; }
  .stacked tfoot td { font-size: 11px; }
}

/* 근태 입력 칸: 시간 숫자가 잘 보이게 */
.stacked td.att input.cell.hrs { font-size: 13px; text-align: center; }
@media (max-width: 1500px) { .stacked td.att input.cell.hrs { font-size: 12px; } }

/* 급여대장: 4대보험 고지기준 가져오기 칩, 마우스를 올리면 어느 고지가 언제 기준인지 */
.ins-chip { position: relative; display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border-radius: 16px; background: var(--green-50); color: #029359; font-size: 13px; font-weight: 700; cursor: help; }
.ins-chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #0bb36b; margin-right: 6px; }
.ins-chip .ins-pop { display: none; position: absolute; left: 0; top: calc(100% + 8px); z-index: 50; width: 380px; padding: 12px 14px; background: #333d4b; color: #fff; border-radius: 12px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, .22); text-align: left; white-space: normal; font-weight: 500; font-size: 13px; line-height: 1.5; }
.ins-chip .ins-pop > span, .ins-chip .ins-pop > strong { display: block; margin: 2px 0; }
.ins-chip .ins-pop em { font-style: normal; opacity: .7; font-size: 12px; }
.ins-chip .ins-pop .muted { opacity: .65; font-size: 12px; margin-top: 6px; }
.ins-chip:hover .ins-pop, .ins-chip:focus .ins-pop { display: block; }

/* 법령 파라미터: 전년 복사 후 미확인 안내 */
.notice-box { margin: 12px 0; padding: 12px 14px; border-radius: 12px; background: var(--orange-50); color: #8a4b00; font-size: 13.5px; line-height: 1.5; }
.notice-box .row { margin-top: 8px; }

/* 급여대장 정렬(휴램프로 '정렬'과 같은 모양) */
.sort-bar { display: flex; align-items: center; gap: 14px; margin: 4px 0 8px; }
.sort-pop { position: relative; } .sort-pop > summary { list-style: none; } .sort-pop > summary::-webkit-details-marker { display: none; }
.sort-sum { display: inline-flex; align-items: center; gap: 4px; cursor: pointer; font-size: 14px; color: var(--g800); padding: 4px 2px; user-select: none; }
.sort-sum .ico { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sort-panel { position: absolute; z-index: 30; top: 30px; left: 0; width: 330px; background: #fff; border: 1px solid var(--g200); border-radius: 10px; box-shadow: 0 8px 28px rgba(0,0,0,.12); padding: 16px 18px 14px; }
.sort-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; font-size: 14px; }
.sort-reset { background: none; border: 0; padding: 0; height: auto; color: var(--g500); font-size: 14px; font-weight: 400; cursor: pointer; }
.sort-rows { display: flex; flex-direction: column; gap: 8px; padding-bottom: 14px; border-bottom: 1px solid var(--g200); }
.sort-row { display: flex; align-items: center; gap: 8px; }
.sort-row.dragging { opacity: .4; }
.sort-grip { color: var(--g300); cursor: grab; font-size: 14px; width: 12px; }
.dd { position: relative; }
.sort-row .dd:nth-of-type(1) { flex: 1 1 120px; } .sort-row .dd:nth-of-type(2) { flex: 0 0 106px; }
.dd-btn { width: 100%; height: 38px; display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 0 10px 0 12px; background: #fff; border: 1px solid var(--g200); border-radius: 6px; color: var(--g900); font-size: 14px; font-weight: 400; cursor: pointer; }
.dd-btn:hover { border-color: var(--g300); background: #fff; }
.dd-chev { width: 16px; height: 16px; fill: none; stroke: var(--g700); stroke-width: 2; }
.dd-list { position: absolute; z-index: 40; top: 40px; left: 0; min-width: 100%; background: #fff; border: 1px solid var(--g200); border-radius: 6px; box-shadow: 0 6px 18px rgba(0,0,0,.12); padding: 4px 0; display: flex; flex-direction: column; }
.dd-list[hidden] { display: none; }
.dd-list button { background: none; border: 0; border-radius: 0; height: 36px; padding: 0 14px; text-align: left; justify-content: flex-start; font-size: 14px; font-weight: 400; color: var(--g900); cursor: pointer; }
.dd-list button:hover { background: var(--g100); }
.dd-list button.on { background: var(--blue-50); color: var(--blue); }
.sort-del { width: 20px; height: 20px; min-width: 20px; padding: 0; border: 0; border-radius: 50%; background: var(--g200); color: var(--g600); font-size: 11px; line-height: 20px; cursor: pointer; }
.sort-foot { display: flex; justify-content: space-between; align-items: center; padding-top: 12px; }
.sort-add, .sort-apply { background: none; border: 0; height: auto; padding: 4px 6px; font-size: 14px; cursor: pointer; }
.sort-add { color: var(--blue); font-weight: 600; } .sort-apply { color: var(--g900); font-weight: 700; }
.sort-add:hover, .sort-apply:hover, .sort-reset:hover { background: var(--g100); }

/* 급여대장 정렬 옆 근태 입력 단위(시간/분) */
.unit-seg { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--g800); }
.unit-seg > span { color: var(--g600); }
.unit-seg button { height: 26px; padding: 0 10px; border: 1px solid var(--g200); background: #fff; color: var(--g600); font-size: 13px; font-weight: 500; border-radius: 0; cursor: pointer; }
.unit-seg button:first-of-type { border-radius: 6px 0 0 6px; } .unit-seg button:last-of-type { border-radius: 0 6px 6px 0; margin-left: -1px; }
.unit-seg button.on { background: var(--blue-50); border-color: var(--blue); color: var(--blue); position: relative; }
input.cell.hrs.min { background: #f6faff; }

/* ---------- 근로계약서 서식·작성 화면(.cw) ---------- */
.cw { max-width: 920px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.cw h1 small, .cw h2 small, .cw h3 small { font-size: 14px; font-weight: 500; color: var(--g500); margin-left: 6px; }
.cw h2 { margin: 0 0 16px; }
.cw h3 { margin: 24px 0 10px; font-size: 15px; font-weight: 700; }
.cw-head { margin-bottom: 8px; }
.cw-head h1 { margin: 0 0 6px; }
.cw-head p { margin: 0; color: var(--g600); line-height: 1.5; }
.cw-back { margin: 0; font-size: 14px; }
.cw-back a { color: var(--g600); text-decoration: none; }
.cw-back a::before { content: "‹ "; }
.cw-form, .cw-upload { display: flex; flex-direction: column; gap: 16px; }
.cw-upload { margin-top: 16px; align-items: flex-start; }
.cw-upload .cw-fields { width: 100%; }

.cw-card { background: #fff; border: 1px solid var(--g200); border-radius: var(--radius); padding: 24px 26px; box-shadow: none; position: static; }
.cw-empty { background: #fff; border: 1px solid var(--g200); border-radius: var(--radius); padding: 44px 26px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.cw-empty strong { font-size: 18px; color: var(--g900); }
.cw-empty p { margin: 0 0 8px; color: var(--g600); line-height: 1.5; }

/* 유형 탭: 선으로 묶고 고른 탭만 연한 파랑 */
.cw-tabs { display: flex; gap: 4px; padding: 4px; background: #fff; border: 1px solid var(--g200); border-radius: 14px; }
.cw-tabs a { flex: 1; text-align: center; padding: 11px 8px; border-radius: 11px; color: var(--g600); font-weight: 600; font-size: 15px; text-decoration: none; transition: background .15s, color .15s; }
.cw-tabs a:hover { color: var(--g900); }
.cw-tabs a.on { background: var(--blue-50); color: var(--blue); font-weight: 700; }

/* 입력 */
.cw-fields { display: grid; gap: 14px 16px; }
.cw-fields.two { grid-template-columns: repeat(2, 1fr); }
.cw-fields.three { grid-template-columns: repeat(3, 1fr); }
.cw-fields label, .cw-inline label, .cw-row label { display: block; font-size: 14px; font-weight: 600; color: var(--g700); margin: 0; }
.cw-fields label small { font-weight: 500; color: var(--g500); }
.cw-fields input, .cw-fields select, .cw-inline select, .cw-row input { width: 100%; height: 46px; margin-top: 6px; padding: 0 14px; border: 1px solid var(--g300); border-radius: 10px; background: #fff; font-size: 15px; color: var(--g900); box-shadow: none; }
.cw-fields input[type=file] { padding: 11px 14px; }
.cw-card textarea { width: 100%; border: 1px solid var(--g300); border-radius: 10px; background: #fff; padding: 14px 16px; font-size: 15px; line-height: 1.6; color: var(--g900); resize: vertical; box-sizing: border-box; font-family: inherit; }
.cw-card input:focus, .cw-card select:focus, .cw-card textarea:focus { outline: 2px solid var(--blue); outline-offset: -2px; background: #fff; }
.cw-card textarea::placeholder, .cw-fields input::placeholder { color: var(--g400); }
.cw-read { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 12px 0 18px; }
.cw-read:last-child { margin-bottom: 0; }
.cw-read select { width: auto; height: 40px; margin: 0; border: 1px solid var(--g300); border-radius: 10px; background: #fff; padding: 0 12px; }
.cw-read form { margin: 0; }
.cw-hint { margin: 0; color: var(--g500); font-size: 13px; line-height: 1.5; }
.cw-inline { display: flex; align-items: flex-end; gap: 10px; }
.cw-inline label { flex: 0 1 260px; }
.cw-rows { display: flex; flex-direction: column; }
.cw-row { display: grid; grid-template-columns: 1fr 140px 110px; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--g100); }
.cw-row:first-child { border-top: 0; }
.cw-row > span { font-weight: 600; color: var(--g800); }
.cw-row label { font-size: 12px; color: var(--g500); }
.cw-row input { height: 40px; margin-top: 3px; }
.cw-row:has(label:only-of-type) { grid-template-columns: 1fr 140px; }

/* 접기 카드 */
.cw-fold > summary { display: flex; align-items: baseline; gap: 10px; cursor: pointer; list-style: none; font-size: 17px; font-weight: 700; color: var(--g900); }
.cw-fold > summary::-webkit-details-marker { display: none; }
.cw-fold > summary::after { content: "⌄"; margin-left: auto; color: var(--g400); font-size: 18px; line-height: 1; transition: transform .15s; }
.cw-fold[open] > summary::after { transform: rotate(180deg); }
.cw-fold > summary small { font-size: 13px; font-weight: 500; color: var(--g500); }
.cw-fold[open] > summary { margin-bottom: 16px; }

/* 안내 */
.cw-alert { margin: 0 0 8px; padding: 12px 16px; border-radius: 12px; font-size: 14px; line-height: 1.5; border: 0; }
.cw > .cw-alert { margin: 0; }
.cw-alert.warn { background: var(--orange-50); color: #a15c00; }
.cw-alert.err { background: var(--red-50); color: #c9222f; }
.cw-alert.ok { background: var(--green-50); color: #02784a; }
.cw-alert.small { padding: 8px 12px; font-size: 13px; margin: 8px 0 0; }

/* 목록 */
.cw-list { list-style: none; margin: 0 -10px; padding: 0; }
.cw-list li > a, .cw-list.plain li { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 10px; border-radius: 12px; color: inherit; text-decoration: none; }
.cw-list li > a:hover { background: var(--g50); }
.cw-list-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cw-list-main strong { font-size: 15px; font-weight: 600; color: var(--g900); }
.cw-list-main strong small { color: var(--g500); font-weight: 500; }
.cw-list-main small, .cw-list-side small { color: var(--g500); font-size: 13px; }
.cw-list-side { display: flex; align-items: center; gap: 6px; flex: none; }
.cw-pill { display: inline-block; padding: 4px 10px; border-radius: 8px; background: var(--g100); color: var(--g700); font-size: 13px; font-weight: 600; white-space: nowrap; }
.cw-pill.ok { background: var(--blue-50); color: var(--blue); }
.cw-pill.warn { background: var(--orange-50); color: #a15c00; }
.cw-pill.off { color: var(--g500); }
.cw-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.cw-chips code { background: var(--g100); color: var(--g700); border-radius: 8px; padding: 4px 8px; font-size: 13px; }

/* 미리보기 */
.cw-people { list-style: none; margin: 0 0 12px; padding: 0; }
.cw-people li { padding: 16px 0; border-top: 1px solid var(--g100); }
.cw-people li:first-child { border-top: 0; padding-top: 4px; }
.cw-person { display: flex; justify-content: space-between; gap: 16px; }
.cw-person strong { display: block; font-size: 16px; color: var(--g900); }
.cw-person small { color: var(--g500); font-size: 13px; }
.cw-money { text-align: right; flex: none; }
.cw-money strong { font-size: 17px; }
.cw-detail { margin: 6px 0 0; color: var(--g600); font-size: 13px; line-height: 1.5; }

/* 아래 고정 막대 */
.cw-bar { position: static; }
.cw-bar.is-ready { position: sticky; bottom: 12px; }
.cw-bar { z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 12px 14px 12px 20px; background: #fff; border-radius: 18px; box-shadow: 0 6px 24px rgba(0,0,0,.1); }
.cw-bar .check { margin: 0; font-size: 14px; font-weight: 600; color: var(--g700); }
.cw-bar .cw-go { margin-left: auto; }
.cw-bar button.cw-go { height: 46px; padding: 0 22px; border-radius: 12px; }
.cw-seg { display: inline-flex; gap: 2px; padding: 3px; background: #fff; border: 1px solid var(--g200); border-radius: 10px; }
.cw-seg label { margin: 0; cursor: pointer; }
.cw-seg input { position: absolute; opacity: 0; width: 0; height: 0; }
.cw-seg span { display: block; padding: 7px 12px; border-radius: 8px; font-size: 14px; font-weight: 600; color: var(--g600); }
.cw-seg input:checked + span { background: var(--blue-50); color: var(--blue); }
.cw-seg input:focus-visible + span { outline: 2px solid var(--blue); }

/* 입력 표 */
.cw-grid { border-radius: 12px; box-shadow: none; }
#batch-grid { border-collapse: collapse; }
#batch-grid th, #batch-grid td { padding: 0 !important; height: auto; border: 1px solid var(--g100); white-space: nowrap; }
#batch-grid th { padding: 7px 8px !important; background: var(--g50); color: var(--g600); font-size: 13px; font-weight: 600; text-align: center; }
#batch-grid th select { margin: 0; padding: 2px 4px; width: auto; min-width: 0; height: auto; border: 0; background: transparent; font-size: 13px; }
#batch-grid input { margin: 0; padding: 7px 8px; min-width: 98px; width: 100%; height: auto; border: 0; border-radius: 0; font-size: 13px; background: #fff; box-shadow: none; }
#batch-grid input:focus { outline: 2px solid var(--blue); outline-offset: -2px; }
.grid-x { all: unset; cursor: pointer; padding: 0 8px; color: var(--g400); }
.grid-x:hover { color: var(--red); }

@media (max-width: 760px) {
  .cw-fields.two, .cw-fields.three { grid-template-columns: 1fr; }
  .cw-card { padding: 20px 18px; }
  .cw-row { grid-template-columns: 1fr 1fr; }
  .cw-row > span { grid-column: 1 / -1; }
  .cw-tabs a { font-size: 14px; padding: 10px 4px; }
}

/* 창이 좁은 PC: 사원 정보 표를 두 칸으로 */
@media (max-width: 1280px) { dl.facts { grid-template-columns: auto 1fr; } }

/* 좁은 화면(노트북 등)에서도 저장·상태 칸이 가로 스크롤 밖으로 밀려나지 않게 오른쪽 끝 칸을 붙여 둔다 */
table.daily-grid .stick-r, table.items-grid .stick-r { position: sticky; right: 0; background: #fff; box-shadow: -1px 0 0 var(--g200); z-index: 1; }
table.daily-grid thead th.stick-r { background: var(--blue-50); }
/* 급여·공제 항목 표: 칸 여백과 선택 칸 폭을 줄여 1440 폭에서도 한 화면에 들어오게 */
.tablewrap > table.items-grid th, .tablewrap > table.items-grid td { padding: 8px 6px; }
table.items-grid select { max-width: 9.5em; }
table.items-grid input[name="label"] { width: 9em; }
table.items-grid input[name="formula"] { width: 11em; }

table.items-grid select { max-width: 8.2em; }
table.items-grid select[name="limit_key"], table.items-grid select[name="prorate"] { max-width: 9em; }
table.items-grid input[name="label"] { width: 8em; }

/* 급여대장 체크박스로 고른 사원 작업 막대 */
.pick-bar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 6px 0; padding: 8px 12px; border-radius: 10px; background: var(--blue-50, #eef4ff); }
.pick-bar[hidden] { display: none; }
.stacked td.id input.pick-emp, .stacked th.idh #pick-all { display: inline-block; width: 14px; height: 14px; min-height: 0; margin: 0 3px 0 0; padding: 0; vertical-align: middle; }
input.member-q { max-width: 18em; margin: 4px 0; }
.member-list label[hidden], .member-list .member-none[hidden] { display: none; }
.fixed-panel { border-left: 3px solid var(--blue, #3182f6); }
.fixed-panel ul { margin: 6px 0 0 1.2em; }
.items-grid input.method-in { width: 16em; min-width: 12em; }

/* 사용가이드(법인용·회원사용) */
.guide-wrap { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 28px; align-items: start; }
.guide-toc { position: sticky; top: 16px; font-size: 14px; border-right: 1px solid var(--g200, #e5e8eb); padding-right: 16px; }
.guide-toc ol { margin: 8px 0 0; padding-left: 1.1em; line-height: 1.9; }
.guide-toc a { color: inherit; text-decoration: none; }
.guide-toc a:hover { color: var(--blue, #3182f6); }
.guide-body { max-width: 860px; line-height: 1.75; font-size: 15px; }
.guide-body h2 { margin: 40px 0 12px; padding-top: 12px; border-top: 1px solid var(--g200, #e5e8eb); scroll-margin-top: 12px; }
.guide-body h2:first-child { margin-top: 0; border-top: 0; padding-top: 0; }
.guide-body h3 { margin: 24px 0 8px; font-size: 16px; }
.guide-body li > p { margin: 2px 0; }
.guide-body table { border-collapse: collapse; margin: 10px 0 16px; width: 100%; }
.guide-body th, .guide-body td { border: 1px solid var(--g200, #e5e8eb); padding: 6px 10px; text-align: left; vertical-align: top; }
.guide-body th { background: var(--g50, #f9fafb); }
.guide-body th:first-child, .guide-body td:first-child { min-width: 8em; }
.guide-body blockquote { margin: 12px 0; padding: 10px 14px; background: var(--blue-50, #e8f3ff); border-left: 3px solid var(--blue, #3182f6); border-radius: 4px; }
.guide-body blockquote p { margin: 0; }
.guide-body code { background: var(--g100, #f2f4f6); padding: 1px 5px; border-radius: 4px; }
@media print {
  .side, .guide-toc, .head .row, .head button, .bar, .crumb, .preview-bar { display: none !important; }
  .shell.portal .guide-body { border: 0; padding: 0; }
  .guide-wrap { display: block; }
}
.fixed-panel[hidden] { display: none; }

/* ---------- 회원사 화면 대시보드·미리보기 띠 ---------- */
.preview-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 0 0 16px; padding: 10px 16px; border-radius: 12px; background: #fff4e0; color: #8a4b00; }
.preview-bar .btn { margin-left: auto; }
.dash-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.dash-card { padding: 16px 18px; }
.dash-card h2 { margin: 0 0 8px; font-size: 16px; }
.dash-card h2 small { font-weight: 400; font-size: 12px; margin-left: 6px; }
.dash-wide { grid-column: 1 / -1; }
.dash-big { margin: 4px 0; font-size: 15px; }
.dash-big strong { font-size: 28px; font-weight: 700; font-variant-numeric: tabular-nums; margin-right: 2px; }
.dash-list { list-style: none; margin: 8px 0 0; padding: 0; }
.dash-list li { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 6px 0; border-top: 1px solid var(--g100); }
.dash-steps { display: flex; gap: 6px; list-style: none; margin: 10px 0; padding: 0; counter-reset: st; }
.dash-steps li { flex: 1; padding: 8px 6px; border-radius: 8px; background: var(--g50); color: var(--g500); font-size: 13px; text-align: center; }
.dash-steps li.done { background: var(--blue-50); color: var(--blue-d); }
.dash-steps li.on { background: var(--blue); color: #fff; font-weight: 600; }
.dash-bars { display: flex; align-items: flex-end; gap: 8px; height: 140px; margin-top: 12px; }
.dash-bars .bar { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; height: 100%; }
.dash-bars .fill { display: block; min-height: 2px; border-radius: 4px 4px 0 0; background: var(--blue); }
.dash-bars .lbl { margin-top: 4px; font-size: 12px; color: var(--g500); text-align: center; }
@media (max-width: 760px) { .dash-grid { grid-template-columns: 1fr; } }

/* ---------- 근태·휴가 달력 ---------- */
table.cal { table-layout: fixed; width: 100%; }
table.cal th.sun, table.cal td:first-child .cal-day { color: var(--red); }
table.cal td { vertical-align: top; height: 92px; padding: 4px 6px; }
table.cal td.other { background: var(--g50); color: var(--g400); }
table.cal td.today { box-shadow: inset 0 0 0 2px var(--blue); }
.cal-day { font-size: 12px; font-weight: 600; margin-bottom: 2px; }
.cal-ev { display: flex; align-items: center; justify-content: space-between; gap: 2px; margin: 2px 0; padding: 1px 6px; border-radius: 6px; font-size: 12px; background: var(--blue-50); color: var(--blue-d); }
.cal-ev.k-absence, .cal-ev.k-unpaid_leave, .cal-ev.k-late { background: var(--red-50); color: var(--red); }
.cal-ev.k-overtime, .cal-ev.k-night, .cal-ev.k-holiday_work { background: var(--orange-50); color: #b85c00; }
.cal-ev.k-outside { background: var(--g100); color: var(--g700); }
.cal-ev form.inline { display: inline; margin: 0; }

/* ---------- 총 인건비 막대·자동 일정 ---------- */
.dash-bars .fill.extra { background: #9ec5ff; border-radius: 4px 4px 0 0; }
.dash-bars .fill.extra + .fill { border-radius: 0; }
.legend { display: inline-block; width: 10px; height: 10px; border-radius: 2px; background: var(--blue); vertical-align: middle; }
.legend.extra { background: #9ec5ff; }
.cal-ev.cal-auto { background: var(--g100); color: var(--g600); }

/* ---------- 증명서(A4 인쇄) ---------- */
.cert { max-width: 720px; margin: 0 auto; padding: 48px 56px; background: #fff; border: 1px solid var(--g200); }
.cert h1 { text-align: center; font-size: 30px; letter-spacing: 12px; margin: 24px 0 36px; }
.cert-no { text-align: right; font-size: 13px; color: var(--g600); margin: 0; }
.cert-table { width: 100%; border-collapse: collapse; }
.cert-table th, .cert-table td { border: 1px solid #333; padding: 10px 12px; font-size: 15px; }
.cert-table th { width: 18%; background: #f6f6f6; font-weight: 600; }
.cert-body { margin: 40px 0 24px; text-align: center; font-size: 17px; }
.cert-date { text-align: center; font-size: 16px; margin-bottom: 40px; }
.cert-co { margin-left: 45%; font-size: 15px; line-height: 1.9; }
.cert-co p { margin: 0; }
.cert-seal { position: relative; display: inline-block; margin-left: 8px; }
.cert-seal img { position: absolute; left: -14px; top: -22px; width: 64px; height: 64px; object-fit: contain; opacity: .9; }
@media print { .cert { border: 0; padding: 0; } }

/* ---------- 확인할 사항 ---------- */
.dash-risk { box-shadow: inset 4px 0 0 #e07a00; }
form.inline { display: inline; margin: 0; }

/* ================= 회원사 화면(포털) 새 틀: 흰 사이드바·하위 메뉴·경로·패널 ================= */
.shell.portal .side { background: #fff; border-right: 1px solid var(--g200); padding: 18px 12px; }
.shell.portal .side .brand, .shell.portal .side .brand .ico { color: var(--g900); }
.shell.portal .side .brand .ico { color: var(--blue); }
.shell.portal .side nav a { color: var(--g700); border-radius: 10px; padding: 10px 12px; font-size: 14px; font-weight: 500; }
.shell.portal .side nav a .ico { color: var(--g500); }
.shell.portal .side nav a:hover { background: var(--g50); color: var(--g900); }
.shell.portal .side nav a.on { background: var(--blue); color: #fff; font-weight: 600; }
.shell.portal .side nav a.on .ico { color: #fff; }
.shell.portal .side .sub { margin: 4px 0 8px 0; padding: 6px 6px 6px 34px; background: var(--g50); border-radius: 10px; }
.shell.portal .side .sub a { padding: 6px 8px; font-size: 13px; font-weight: 400; color: var(--g600); border-radius: 6px; }
.shell.portal .side .sub a.here { color: var(--blue-d); font-weight: 600; background: #fff; }
.shell.portal .main { background: var(--g50); }
.shell.portal .page { padding-top: 14px; }
.crumb { font-size: 13px; color: var(--g500); margin: 0 0 14px; }
.crumb a { color: var(--g500); }
.crumb strong { color: var(--blue-d); font-weight: 600; }
.shell.portal .page h1 { font-size: 22px; margin: 0 0 14px; }
.panel { background: #fff; border: 1px solid var(--g200); border-radius: 14px; overflow: hidden; }
.panel-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 18px; border-bottom: 1px solid var(--g100); font-size: 15px; font-weight: 700; color: var(--g900); }
.panel-h small, .panel-h .sub-t { font-size: 12px; font-weight: 400; color: var(--g500); }
.panel-h a { font-size: 13px; font-weight: 500; }
.panel-b { padding: 14px 18px; }
.panel table { margin: 0; }
.panel table th { background: var(--g50); border-bottom: 1px solid var(--g200); padding: 9px 14px; font-size: 12px; }
.panel table td { padding: 10px 14px; border-bottom: 1px solid var(--g100); font-size: 14px; }
.panel table tr:last-child td { border-bottom: 0; }
.pgrid { display: grid; gap: 14px; margin-bottom: 14px; }
.pgrid.c2 { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
.pgrid.c2e { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.page-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.page-head h1 { margin: 0 !important; }
/* 상태 범례(색 막대 + 건수 상자) */
.lg-list { list-style: none; margin: 0; padding: 0; }
.lg-list li { display: flex; align-items: center; gap: 8px; padding: 4px 0; font-size: 13px; color: var(--g700); }
.lg-list .mk { width: 4px; height: 14px; border-radius: 2px; background: var(--g300); }
.lg-list b { margin-left: auto; min-width: 34px; padding: 1px 8px; border: 1px solid var(--g200); border-radius: 6px; text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--g900); }
.lg-title { font-size: 14px; font-weight: 700; margin: 0 0 6px; color: var(--g900); }
.lg-sub { font-size: 12px; color: var(--g500); margin: 0 0 8px; }
.mk.c-work { background: var(--blue); } .mk.c-leave { background: #85b7eb; } .mk.c-out { background: #ef9f27; } .mk.c-abs { background: #e24b4a; } .mk.c-idle { background: var(--g300); } .mk.c-ot { background: #7f77dd; }
.donut-row { display: grid; grid-template-columns: minmax(0, 1fr) 150px minmax(0, 1fr) 150px; gap: 22px; align-items: center; }
.donut { width: 150px; height: 150px; }
/* 가로 막대(연장근로) */
.hbar { display: grid; grid-template-columns: 110px minmax(0, 1fr) 64px; gap: 10px; align-items: center; padding: 5px 0; font-size: 13px; }
.hbar .trk { height: 16px; background: var(--g100); border-radius: 5px; overflow: hidden; }
.hbar .val { height: 16px; border-radius: 5px; }
.hbar .val.ok { background: #1d9e75; } .hbar .val.mid { background: #ef9f27; } .hbar .val.over { background: #e24b4a; }
.hbar .num { text-align: right; font-variant-numeric: tabular-nums; }
.hbar .num.over { color: #c43838; font-weight: 600; }
.legend-inline { font-size: 12px; color: var(--g500); font-weight: 400; }
.legend-inline i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin: 0 4px 0 10px; vertical-align: -1px; }
/* 배지(색) */
.tag { display: inline-block; padding: 2px 8px; border-radius: 6px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.tag.warn { background: var(--orange-50); color: #c46a00; } .tag.risk { background: var(--red-50); color: var(--red); } .tag.info { background: var(--blue-50); color: var(--blue-d); } .tag.gray { background: var(--g100); color: var(--g700); } .tag.ok { background: #e6f6ef; color: #0f6e56; }
/* 사람 동그라미 */
.who-chip { display: inline-flex; width: 30px; height: 30px; border-radius: 50%; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; background: var(--blue-50); color: var(--blue-d); flex: none; }
.people-row { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--g100); font-size: 14px; }
.people-row:last-child { border-bottom: 0; }
.people-row .tag { margin-left: auto; }
.sch-row { display: flex; gap: 14px; padding: 7px 0; border-bottom: 1px solid var(--g100); font-size: 14px; }
.sch-row:last-child { border-bottom: 0; }
.sch-row .d { min-width: 72px; color: var(--g500); font-variant-numeric: tabular-nums; }
/* 단계 */
.steps4 { display: flex; gap: 6px; margin: 10px 0; }
.steps4 li { flex: 1; list-style: none; text-align: center; padding: 8px 4px; border-radius: 8px; font-size: 13px; background: var(--g100); color: var(--g500); }
.steps4 li.done { background: var(--blue-50); color: var(--blue-d); } .steps4 li.on { background: var(--blue); color: #fff; font-weight: 600; }
.steps4 { padding: 0; }
/* 걸러보기 줄 */
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; padding: 12px 18px; border-bottom: 1px solid var(--g100); background: #fff; }
.filters label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--g600); }
.filters select, .filters input { height: 34px; min-width: 120px; font-size: 13px; }
.filters .btn { height: 34px; }
.cost-bars { display: flex; align-items: flex-end; gap: 14px; height: 120px; padding: 0 6px; border-bottom: 1px solid var(--g200); }
.cost-bars .b { width: 30px; display: flex; flex-direction: column; justify-content: flex-end; height: 100%; }
.cost-bars .b .x { background: #9ec5ff; border-radius: 4px 4px 0 0; } .cost-bars .b .g { background: var(--blue); }
.cost-lbl { display: flex; gap: 14px; padding: 4px 6px 0; font-size: 12px; color: var(--g500); }
.cost-lbl span { width: 30px; text-align: center; }
.kv3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 12px; font-size: 13px; }
.kv3 span { color: var(--g500); display: block; font-size: 12px; }
.kv3 strong { font-size: 15px; font-variant-numeric: tabular-nums; }
.big-num { font-size: 28px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--g900); }
/* 회원사 화면: 기존 표·카드도 패널 모양으로 */
.shell.portal .page > .tablewrap, .shell.portal .page > section > .tablewrap { background: #fff; border: 1px solid var(--g200); border-radius: 14px; overflow: hidden; }
.shell.portal .page > .tablewrap table th, .shell.portal .page section > .tablewrap table th { background: var(--g50); border-bottom: 1px solid var(--g200); }
.shell.portal .card, .shell.portal .form-card { border: 1px solid var(--g200); border-radius: 14px; background: #fff; }
.shell.portal .page h2 { font-size: 17px; margin: 22px 0 10px; }
.shell.portal .panel .panel-h + table, .shell.portal .filters + table { border-top: 0; }
/* 달력 입력 줄을 한 줄로 */
.cal-form .grid2 { display: grid; grid-template-columns: 170px 220px 200px minmax(0, 1fr); gap: 12px; align-items: end; }
.cal-form .grid2 label { font-size: 12px; }
.cal-form .grid2 .muted.small { display: none; }
.cal-form label.check { display: inline-flex; align-items: center; gap: 4px; margin: 4px 14px 0 0; padding: 4px 10px; border: 1px solid var(--g200); border-radius: 999px; font-size: 13px; background: #fff; }
.cal-form label.check:has(input:checked) { border-color: var(--blue); background: var(--blue-50); color: var(--blue-d); }
.cal-form { padding: 14px 18px !important; gap: 10px !important; }

/* ================= 법인 화면(A단계): 흰 사이드바·묶음 메뉴·경로 ================= */
.shell.office .side, .shell.office.in-company .side { background: #fff; border-right: 1px solid var(--g200); padding: 18px 12px; }
.shell.office .side .brand, .shell.office .side .brand .ico { color: var(--g900); }
.shell.office .side .brand .ico { color: var(--blue); }
.shell.office .side .brand.back, .shell.office .side .brand.back .ico { color: var(--g500); font-size: 13px; font-weight: 500; padding-bottom: 8px; }
.shell.office .side .brand.back:hover { color: var(--g900); }
.shell.office .co-title { padding: 0 12px 12px; font-size: 16px; font-weight: 700; color: var(--g900); border-bottom: 1px solid var(--g100); margin-bottom: 10px; word-break: keep-all; }
.shell.office .side nav a { color: var(--g700); border-radius: 10px; padding: 9px 12px; font-size: 14px; font-weight: 500; }
.shell.office .side nav a .ico { color: var(--g500); }
.shell.office .side nav a:hover { background: var(--g50); color: var(--g900); }
.shell.office .side nav a.on { background: var(--blue); color: #fff; font-weight: 600; }
.shell.office .side nav a.on .ico { color: #fff; }
.shell.office .side .sub { display: none; margin: 4px 0 8px; padding: 6px 6px 6px 34px; background: var(--g50); border-radius: 10px; }
.shell.office .side .sub.open { display: block; }
.shell.office .side .sub a { padding: 6px 8px; font-size: 13px; font-weight: 400; color: var(--g600); border-radius: 6px; }
.shell.office .side .sub a.here { color: var(--blue-d); font-weight: 600; background: #fff; }
.shell.office .side-sep { background: var(--g100); }
.shell.office .side-head { color: var(--g500); }
.shell.office .main { background: var(--g50); }
.shell.office .page { padding-top: 14px; }

/* 근로현황집계표(입력 표) */
.ws-tools { margin-bottom: 14px; }
.ws-tabs small { color: var(--g500); font-weight: 400; }
table.ws-grid { border-collapse: separate; border-spacing: 0; font-size: 13px; }
table.ws-grid th, table.ws-grid td { padding: 4px 5px; border-bottom: 1px solid var(--g100); border-right: 1px solid var(--g100); white-space: nowrap; text-align: center; vertical-align: middle; }
table.ws-grid th { background: #f6f8fb; font-weight: 600; line-height: 1.25; }
table.ws-grid td.stick, table.ws-grid th.stick { position: sticky; left: 0; z-index: 2; background: #fff; text-align: left; min-width: 96px; box-shadow: 1px 0 0 var(--g200); }
table.ws-grid th.stick { background: #f6f8fb; }
table.ws-grid input, table.ws-grid select { margin: 0; padding: 5px 6px; width: 84px; font-size: 13px; text-align: right; border-radius: 6px; }
table.ws-grid select { text-align: left; width: 96px; }
table.ws-grid input.wide { width: 100%; min-width: 200px; text-align: left; }
table.ws-grid input.mid { width: 104px; text-align: left; } table.ws-grid input.narrow { width: 56px; }
table.ws-grid input[type=date] { width: 136px; text-align: left; }
table.ws-pt input { width: 30px; min-width: 0; padding: 4px 0; font-size: 12px; text-align: center; border-radius: 4px; }
table.ws-pt th, table.ws-pt td { padding: 3px 1px; font-size: 12px; }
table.ws-pt .sum { min-width: 40px; padding: 3px 4px; }
/* 분 단위 입력: 480 같은 세 자리 숫자가 들어가게 날짜 칸을 넓힌다 */
table.ws-pt.ws-min input { width: 36px; }
/* 시급제 입력 방법(날짜별 / 합계): 합계 입력 줄은 노란 칸에 직접 적고 날짜 칸은 흐리게 */
table.ws-pt select.ws-mode { display: block; width: 92px; height: 26px; margin: 4px 0 0; padding: 0 4px; font-size: 12px; text-align: left; border-radius: 6px; }
table.ws-pt input.ws-sum-in { display: none; width: 48px; }
table.ws-pt tr.by-sum input.ws-sum-in { display: inline-block; }
table.ws-pt tr.by-sum [data-sum] { display: none; }
table.ws-pt tr.by-sum input[data-kind] { opacity: .35; }
table.ws-pt tr.by-sum + tr.ws-wk-row td.wk-sum { color: transparent; }
table.ws-grid .sat { background: #eaf3ff; } table.ws-grid .sun { background: #ffeeee; } table.ws-grid .hol { background: #ffd9d9; }
table.ws-grid th.hol, table.ws-grid th.sun { color: #c0392b; } table.ws-grid th.sat { color: #1f5fbf; }
table.ws-grid .sum { background: #fff8e1; font-weight: 600; min-width: 52px; }
table.ws-grid td.num { text-align: right; }
table.ws-people input { text-align: left; width: 110px; } table.ws-people input.num { text-align: right; }
table.ws-grid tr.ws-unknown td { background: #fff7f7; }
.ws-key { display: inline-block; padding: 0 8px; margin: 0 2px; border-radius: 6px; font-size: 12px; }
.ws-key.sat { background: #eaf3ff; color: #1f5fbf; } .ws-key.sun { background: #ffeeee; color: #c0392b; } .ws-key.hol { background: #ffd9d9; color: #c0392b; }
.ws-submit { position: static; margin-top: 16px; }
.ws-issues ul { margin: 6px 0 0 18px; padding: 0; font-size: 13px; }
table.ws-people input[name$="_rrn"] { width: 136px; }
/* 법인 보기 화면(근로현황집계표) */
.ws-steps { margin: 4px 0 12px; }
.ws-steps small { font-weight: 400; }
.ws-memo { background: var(--g100); border-radius: 8px; padding: 8px 12px; margin: 0 0 12px; font-size: 14px; }
.kpi-card.warn { background: var(--orange-50); border-color: #ffd8a8; }
.kpi-card.warn span, .kpi-card.warn strong { color: #b35c00; }
.ws-actions { margin: 0 0 14px; align-items: flex-start; flex-wrap: wrap; }
.ws-ask { position: relative; }
.ws-ask summary { list-style: none; cursor: pointer; }
.ws-ask summary::-webkit-details-marker { display: none; }
.ws-ask[open] form { position: absolute; z-index: 5; top: 44px; left: 0; width: 380px; }
.panel + .panel { margin-top: 14px; }
table.ws-view { width: 100%; border-collapse: collapse; font-size: 13px; }
table.ws-view th, table.ws-view td { padding: 8px 10px; border-bottom: 1px solid var(--g100); text-align: left; vertical-align: top; }
table.ws-view th { background: var(--g50); color: var(--g600); font-weight: 600; line-height: 1.3; }
table.ws-view .n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
table.ws-view td.ws-note { color: #b35c00; }
table.ws-view tr.ws-pt-sum { cursor: pointer; }
table.ws-view tr.ws-pt-sum:hover td { background: var(--g50); }
table.ws-view td.ws-days-cell { background: var(--g50); padding: 6px 10px 10px; }
table.ws-view td.ws-days-cell table.ws-pt td { min-width: 26px; text-align: center; background-clip: padding-box; }
table.ws-view td.ws-days-cell table.ws-pt td:not(.sat):not(.sun):not(.hol) { background: #fff; }
#ws-leaves select { width: 240px; }
/* 3차: 요약 숫자 카드·세로 막대(인건비 추이·입퇴사) */
.kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; margin-bottom: 14px; }
.kpi-card { background: #fff; border: 1px solid var(--g200); border-radius: 14px; padding: 14px 18px; }
.kpi-card span { display: block; font-size: 12px; font-weight: 600; color: var(--g500); }
.kpi-card span small { font-weight: 400; }
.kpi-card strong { display: block; margin: 4px 0 2px; font-size: 22px; font-weight: 700; color: var(--g900); font-variant-numeric: tabular-nums; }
.kpi-card em { display: block; font-style: normal; font-size: 12px; color: var(--g500); font-variant-numeric: tabular-nums; }
.vbars { display: flex; align-items: flex-end; gap: 10px; min-height: 210px; padding-top: 6px; }
.vbars .col { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 4px; }
.vbars .stack { width: 100%; max-width: 44px; display: flex; flex-direction: column-reverse; border-radius: 6px 6px 0 0; overflow: hidden; }
.vbars .pair { display: flex; align-items: flex-end; gap: 3px; }
.vbars .col { height: 210px; }
.vbars .pair .bseg { width: 16px; border-radius: 4px 4px 0 0; }
.vbars .bseg { display: block; }
.vbars .bseg.c-gross { background: var(--blue); } .vbars .bseg.c-ins { background: #85b7eb; } .vbars .bseg.c-sev { background: #c9ddf7; }
.vbars .bseg.c-in { background: var(--blue); } .vbars .bseg.c-out { background: #e24b4a; }
.vbars .lbl { font-size: 12px; color: var(--g500); } .vbars .lbl.strong { color: var(--g800); font-weight: 600; font-variant-numeric: tabular-nums; }
.vbars .amt { font-size: 11px; color: var(--g600); font-variant-numeric: tabular-nums; white-space: nowrap; }
.hbar.wide { grid-template-columns: 130px minmax(0, 1fr) 130px; }
.hbar .val.c-blue { background: var(--blue); }
.hbar .val.mid { background: #ef9f27; }
.pgrid.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.kpis.kpis-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.kpis.kpis-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sim-raise:has(input[value="minwage"]:checked) .sim-start { display: none; } /* 내년 최저임금에 맞추기는 내년 1월부터라 적용 월을 쓰지 않는다 */
.att-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 4px 12px; margin: 6px 0; }
.tr-period { padding: 2px 0; }

/* ===== 회원사 대시보드 새 틀 ===== */
.dz { max-width: none; }
.dz-head { display: flex; align-items: flex-end; justify-content: space-between; margin: 4px 0 18px; }
.dz-head h1 { margin: 0 !important; font-size: 24px !important; letter-spacing: -0.03em; }
.dz-head p { margin: 4px 0 0; color: var(--g600); font-size: 14px; }
.dz-head .date { color: var(--g500); font-size: 13px; }
.dz-card { background: #fff; border: 1px solid var(--g200); border-radius: 16px; padding: 22px 24px; }
.dz-card > h2 { display: flex; align-items: center; gap: 8px; margin: 0 0 16px !important; font-size: 15px !important; font-weight: 700; color: var(--g900); }
.dz-card > h2 .more { margin-left: auto; font-size: 13px; font-weight: 500; color: var(--g500); text-decoration: none; }
.dz-card > h2 .more:hover { color: var(--blue); }
.dz-card > h2 small { font-size: 12px; font-weight: 400; color: var(--g500); }
.dz-row { display: grid; gap: 16px; margin-bottom: 16px; }
.dz-row.a { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); }
.dz-row.h { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dz-row.k { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.dz-count { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 11px; background: var(--red-50); color: var(--red); font-size: 12px; font-weight: 700; }
/* 이번 달 급여(주인공 카드) */
.dz-pay { padding: 26px 28px; }
.dz-pay .top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.dz-pay .eyebrow { font-size: 13px; font-weight: 600; color: var(--blue); margin: 0 0 6px; }
.dz-pay .now { font-size: 22px; font-weight: 700; letter-spacing: -0.03em; color: var(--g900); margin: 0; line-height: 1.35; }
.dz-pay .why { margin: 6px 0 0; font-size: 14px; color: var(--g600); }
.dz-dday { flex: none; text-align: right; }
.dz-dday b { display: block; font-size: 28px; font-weight: 700; color: var(--g900); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; line-height: 1.1; }
.dz-dday span { font-size: 12px; color: var(--g500); }
.dz-steps { display: grid; grid-template-columns: repeat(4, 1fr); list-style: none; margin: 26px 0 22px; padding: 0; }
.dz-steps li { position: relative; text-align: center; font-size: 13px; color: var(--g500); }
.dz-steps li::before { content: ""; position: absolute; top: 13px; left: -50%; width: 100%; height: 2px; background: var(--g200); }
.dz-steps li:first-child::before { display: none; }
.dz-steps li i { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; margin: 0 auto 8px; border-radius: 50%; background: #fff; border: 2px solid var(--g200); font-style: normal; font-size: 12px; font-weight: 700; color: var(--g400); }
.dz-steps li.done { color: var(--g700); }
.dz-steps li.done::before, .dz-steps li.on::before { background: var(--blue); }
.dz-steps li.done i { background: var(--blue); border-color: var(--blue); color: #fff; }
.dz-steps li.on { color: var(--blue-d); font-weight: 700; }
.dz-steps li.on i { border-color: var(--blue); color: var(--blue); box-shadow: 0 0 0 4px var(--blue-50); }
.dz-steps li small { display: block; margin-top: 2px; font-size: 12px; font-weight: 400; color: var(--g500); }
.dz-pay .foot { display: flex; align-items: center; gap: 10px; padding-top: 18px; border-top: 1px solid var(--g100); }
.dz-pay .foot .hint { font-size: 13px; color: var(--g500); margin-left: 4px; }
/* 할 일 */
.dz-todo { list-style: none; margin: 0; padding: 0; }
.dz-todo li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--g100); }
.dz-todo li:first-child { border-top: 0; padding-top: 0; }
.dz-todo .dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--g300); }
.dz-todo .dot.warn { background: #f59f00; }
.dz-todo .dot.risk { background: var(--red); }
.dz-todo .dot.info { background: var(--blue); }
.dz-todo .t { flex: 1; min-width: 0; }
.dz-todo .t b { display: block; font-size: 14px; font-weight: 600; color: var(--g900); }
.dz-todo .t span { display: block; font-size: 12.5px; color: var(--g500); margin-top: 1px; }
.dz-todo a.go { flex: none; font-size: 13px; font-weight: 600; color: var(--blue); text-decoration: none; padding: 6px 10px; border-radius: 8px; background: var(--blue-50); }
.dz-todo a.go.quiet { background: none; color: var(--g500); font-weight: 500; }
/* 숫자 카드 */
.dz-kpi { padding: 18px 22px; }
.dz-kpi .l { font-size: 13px; color: var(--g600); font-weight: 500; }
.dz-kpi .v { margin: 6px 0 6px; font-size: 26px; font-weight: 700; color: var(--g900); font-variant-numeric: tabular-nums; letter-spacing: -0.03em; }
.dz-kpi .v small { font-size: 15px; font-weight: 500; color: var(--g600); margin-left: 2px; }
.dz-kpi .s { font-size: 12.5px; color: var(--g500); }
.dz-delta { font-weight: 600; font-variant-numeric: tabular-nums; }
.dz-delta.up { color: var(--red); }
.dz-delta.down { color: var(--blue); }
/* 인건비 추이 */
.dz-chart { display: flex; align-items: flex-end; height: 200px; padding: 22px 4px 0; border-bottom: 1px solid var(--g200); }
.dz-chart .c { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; }
.dz-chart .n { font-size: 12px; color: var(--g500); margin-bottom: 6px; font-variant-numeric: tabular-nums; }
.dz-chart .c.last .n { color: var(--g900); font-weight: 700; }
.dz-chart .dz-bar { flex: none; width: 40px; border-radius: 6px 6px 0 0; overflow: hidden; }
.dz-chart .dz-bar div { display: block; }
.dz-chart .x { background: #cfe2fc; }
.dz-chart .g { background: #8dbaf7; }
.dz-chart .c.last .x { background: #9ec5ff; }
.dz-chart .c.last .g { background: var(--blue); }
.dz-axis { display: flex; padding: 8px 4px 0; }
.dz-axis span { flex: 1; text-align: center; font-size: 12px; color: var(--g500); }
.dz-axis span.last { color: var(--g900); font-weight: 600; }
.dz-legend { display: flex; gap: 16px; margin-left: auto; font-size: 12px; font-weight: 400; color: var(--g600); }
.dz-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.dz-split { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 18px; }
.dz-split div { padding: 0 16px; border-left: 1px solid var(--g100); }
.dz-split div:first-child { padding-left: 0; border-left: 0; }
.dz-split span { display: block; font-size: 12px; color: var(--g500); }
.dz-split b { display: block; margin-top: 2px; font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--g900); }
.dz-note { margin: 14px 0 0; font-size: 12px; color: var(--g500); line-height: 1.6; }
/* 일정 */
.dz-sch { list-style: none; margin: 0; padding: 0; }
.dz-sch li { display: flex; align-items: center; gap: 14px; padding: 11px 0; border-top: 1px solid var(--g100); }
.dz-sch li:first-child { border-top: 0; padding-top: 0; }
.dz-sch .d { flex: none; width: 46px; height: 46px; border-radius: 12px; background: var(--g50); display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1; }
.dz-sch .d small { font-size: 11px; color: var(--g500); }
.dz-sch .d b { font-size: 16px; font-weight: 700; color: var(--g900); font-variant-numeric: tabular-nums; }
.dz-sch .d.pay { background: var(--blue-50); }
.dz-sch .d.pay b, .dz-sch .d.pay small { color: var(--blue-d); }
.dz-sch .t { flex: 1; min-width: 0; font-size: 14px; color: var(--g800); }
.dz-sch .dd { flex: none; font-size: 12px; font-weight: 600; color: var(--g600); font-variant-numeric: tabular-nums; }
.dz-sch .dd.soon { color: var(--red); }
/* 연장근로 */
.dz-ot-sum { display: flex; gap: 8px; margin: -4px 0 14px; }
.dz-chip { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 13px; font-size: 12.5px; font-weight: 600; background: var(--g100); color: var(--g700); }
.dz-chip.over { background: var(--red-50); color: #c9353b; }
.dz-chip.mid { background: #fff4e0; color: #a15c00; }
.dz-ot { display: grid; grid-template-columns: 76px minmax(0, 1fr) 56px; gap: 12px; align-items: center; padding: 7px 0; font-size: 13.5px; color: var(--g800); }
.dz-ot .trk { position: relative; height: 8px; border-radius: 4px; background: var(--g100); }
.dz-ot .val { height: 8px; border-radius: 4px; background: #8dbaf7; }
.dz-ot .val.mid { background: #f5a524; }
.dz-ot .val.over { background: var(--red); }
.dz-ot .lim { position: absolute; top: -4px; bottom: -4px; width: 0; border-left: 1.5px dashed var(--g400); }
.dz-ot .num { text-align: right; font-variant-numeric: tabular-nums; color: var(--g700); }
.dz-ot .num.over { color: #c9353b; font-weight: 700; }
/* 최근 급여대장 */
.dz-runs { list-style: none; margin: 0; padding: 0; }
.dz-runs li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--g100); }
.dz-runs li:first-child { border-top: 0; padding-top: 0; }
.dz-runs .t { flex: 1; min-width: 0; }
.dz-runs .t a { font-size: 14px; font-weight: 600; color: var(--g900); text-decoration: none; }
.dz-runs .t a:hover { color: var(--blue); }
.dz-runs .t span { display: block; font-size: 12.5px; color: var(--g500); margin-top: 1px; }
.dz-runs .amt { font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--g800); }
.dz-runs .x { font-size: 12.5px; color: var(--g600); text-decoration: none; padding: 5px 10px; border: 1px solid var(--g200); border-radius: 8px; }
.dz-empty { padding: 18px 0 6px; text-align: center; color: var(--g500); font-size: 14px; }
.dz-legend + .more { margin-left: 16px !important; }
.dz-chart .dz-bar { width: min(40px, 62%); }
.dz-split.s4 { grid-template-columns: repeat(4, 1fr); }
.dz-todo .dot.ok { background: var(--green); }
.dz-todo li { align-items: flex-start; }
.dz-todo .dot { margin-top: 6px; }
.dz-more { margin-top: 4px; }
.dz-more summary { cursor: pointer; font-size: 13px; color: var(--g500); padding: 6px 0; list-style: none; }
.dz-more summary::-webkit-details-marker { display: none; }
.dz-more summary:hover { color: var(--blue); }
.dz-kpi .v.none { color: var(--g400); }

/* ===== 회원사 화면 공통 새 틀(2차): 제목 줄·표·걸러보기·사람 표시 ===== */
.ph { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 4px 0 18px; }
.ph h1 { margin: 0 !important; font-size: 24px !important; letter-spacing: -0.03em; }
.ph h1 small { font-size: 14px; font-weight: 500; color: var(--g500); margin-left: 8px; letter-spacing: 0; }
.ph p { margin: 4px 0 0; color: var(--g600); font-size: 14px; }
.ph-act { display: flex; gap: 8px; flex: none; align-items: center; }
.pback { display: inline-block; margin: 0 0 6px; font-size: 13px; color: var(--g500); text-decoration: none; }
.pback:hover { color: var(--blue); }
.dz-card.flush { padding: 0; overflow: hidden; }
.dz-card.flush > h2 { margin: 0 !important; padding: 18px 24px 14px; }
.dz > .dz-card + .dz-card, .dz > .dz-row + .dz-card { margin-top: 16px; }
.dz > .dz-card + .dz-row { margin-top: 16px; }
.dz-row.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.dz-row.side { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: start; }
.dz-stack > * + * { margin-top: 16px; }
table.dz-t { width: 100%; margin: 0; border-collapse: collapse; }
table.dz-t th { padding: 11px 16px; background: var(--g50); border-bottom: 1px solid var(--g200); font-size: 12.5px; font-weight: 600; color: var(--g600); text-align: left; white-space: nowrap; }
table.dz-t td { padding: 13px 16px; border-bottom: 1px solid var(--g100); font-size: 14px; color: var(--g800); vertical-align: middle; }
table.dz-t tr:last-child td { border-bottom: 0; }
table.dz-t th:first-child, table.dz-t td:first-child { padding-left: 24px; }
table.dz-t th:last-child, table.dz-t td:last-child { padding-right: 24px; }
table.dz-t .r { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
table.dz-t td.strong { font-weight: 700; color: var(--g900); }
table.dz-t td.empty { padding: 36px 16px; text-align: center; color: var(--g500); }
table.dz-t tr.grp td { padding: 8px 24px; background: #fff; font-size: 12.5px; font-weight: 700; color: var(--g500); border-bottom: 1px solid var(--g100); }
table.dz-t tr.grp:hover td { background: #fff; }
table.dz-t a.lnk { color: var(--g900); font-weight: 600; text-decoration: none; }
table.dz-t a.lnk:hover { color: var(--blue); }
table.dz-t .sub { display: block; margin-top: 1px; font-size: 12.5px; font-weight: 400; color: var(--g500); }
.dz-foot { margin: 12px 4px 0; font-size: 12.5px; color: var(--g500); line-height: 1.6; }
.dz-foot p { margin: 0 0 4px; }
.shell.portal form.filters { gap: 8px 14px; align-items: center; padding: 14px 24px; }
.shell.portal form.filters label { flex-direction: row; align-items: center; gap: 6px; font-size: 13px; color: var(--g600); }
.shell.portal form.filters select, .shell.portal form.filters input { height: 36px; min-width: 110px; margin: 0; border-radius: 8px; }
.shell.portal form.filters .btn { height: 36px; }
/* 사람(동그라미 + 이름) */
.psn { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.psn i { flex: none; display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: var(--blue-50); color: var(--blue-d); font-style: normal; font-size: 13px; font-weight: 700; }
.psn.off i { background: var(--g100); color: var(--g500); }
.psn b { display: block; font-size: 14px; font-weight: 600; color: var(--g900); }
.psn > span > span { display: block; font-size: 12.5px; color: var(--g500); }
a.psn:hover b { color: var(--blue); }
/* 작은 진행 막대 */
.pbar { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--g600); white-space: nowrap; }
.pbar .trk { flex: none; width: 72px; height: 6px; border-radius: 3px; background: var(--g100); overflow: hidden; }
.pbar .val { display: block; height: 6px; border-radius: 3px; background: var(--blue); }
/* 직원 상세 머리 */
.prof { display: flex; align-items: center; gap: 18px; }
.prof > i { flex: none; display: flex; align-items: center; justify-content: center; width: 60px; height: 60px; border-radius: 50%; background: var(--blue-50); color: var(--blue-d); font-style: normal; font-size: 22px; font-weight: 700; }
.prof h1 { margin: 0 !important; font-size: 22px !important; display: flex; align-items: center; gap: 10px; }
.prof p { margin: 4px 0 0; font-size: 14px; color: var(--g600); }
.prof .ph-act { margin-left: auto; }
.facts4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px 16px; margin: 22px 0 0; padding-top: 20px; border-top: 1px solid var(--g100); }
.facts4 div span { display: block; font-size: 12.5px; color: var(--g500); }
.facts4 div b { display: block; margin-top: 3px; font-size: 14.5px; font-weight: 600; color: var(--g900); word-break: keep-all; }
.facts4 .w2 { grid-column: span 2; }
/* 시간순 이력 */
.tl { list-style: none; margin: 0; padding: 0; }
.tl li { position: relative; padding: 0 0 16px 22px; }
.tl li::before { content: ""; position: absolute; left: 4px; top: 6px; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); }
.tl li::after { content: ""; position: absolute; left: 7.5px; top: 18px; bottom: 0; width: 1px; background: var(--g200); }
.tl li:last-child { padding-bottom: 0; }
.tl li:last-child::after { display: none; }
.tl b { font-size: 14px; font-weight: 600; color: var(--g900); }
.tl time { margin-left: 8px; font-size: 12.5px; color: var(--g500); font-variant-numeric: tabular-nums; }
.tl span { display: block; margin-top: 2px; font-size: 13px; color: var(--g600); }
/* 줄 목록(파일·요청) */
.rows { list-style: none; margin: 0; padding: 0; }
.rows li { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--g100); font-size: 14px; }
.rows li:first-child { border-top: 0; padding-top: 0; }
.rows li:last-child { padding-bottom: 0; }
.rows li .t { flex: 1; min-width: 0; }
.rows li .t a { font-weight: 600; color: var(--g900); text-decoration: none; }
.rows li .t a:hover { color: var(--blue); }
.rows li .m { font-size: 12.5px; color: var(--g500); white-space: nowrap; }
.rows li.none { color: var(--g500); font-size: 13.5px; }
/* 급여대장 상세: 직원 한 줄 + 펼치면 항목 */
.lg-head, .lg details > summary, .lg-sum { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)) minmax(0, 1.4fr) 70px; gap: 12px; align-items: center; padding: 12px 24px; }
.lg-head { background: var(--g50); border-bottom: 1px solid var(--g200); font-size: 12.5px; font-weight: 600; color: var(--g600); }
.lg details { border-bottom: 1px solid var(--g100); }
.lg details > summary { cursor: pointer; list-style: none; font-size: 14px; }
.lg details > summary::-webkit-details-marker { display: none; }
.lg details > summary:hover, .lg details[open] > summary { background: var(--g50); }
.lg .r { text-align: right; font-variant-numeric: tabular-nums; }
.lg .net { font-weight: 700; color: var(--g900); }
.lg .who::before { content: "\203A"; display: inline-block; width: 14px; color: var(--g400); font-weight: 700; transition: transform .12s; }
.lg details[open] .who::before { transform: rotate(90deg); }
.lg .who b { font-weight: 600; color: var(--g900); }
.lg .who small { margin-left: 6px; font-size: 12.5px; color: var(--g500); }
.lg .stt { font-size: 12.5px; color: var(--g600); line-height: 1.45; }
.lg-body { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; padding: 6px 24px 18px 38px; background: var(--g50); }
.lg-body h3 { margin: 8px 0 6px; font-size: 12.5px; font-weight: 700; color: var(--g600); }
.lg-body dl { margin: 0; display: grid; grid-template-columns: 1fr auto; gap: 5px 16px; font-size: 13.5px; }
.lg-body dt { color: var(--g700); }
.lg-body dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; color: var(--g900); }
.lg-sum { background: var(--g50); font-size: 14px; font-weight: 700; color: var(--g900); }
/* 서류함·요청함 타일 */
.tile { display: flex; flex-direction: column; }
.tile .ic { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; margin-bottom: 14px; border-radius: 12px; background: var(--blue-50); color: var(--blue); }
.tile h2 { margin: 0 0 6px !important; font-size: 16px !important; }
.tile p { margin: 0 0 14px; font-size: 13px; color: var(--g600); line-height: 1.55; flex: 1; }
.tile .dl { display: flex; flex-wrap: wrap; gap: 8px; }
.chipbtn { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border: 1px solid var(--g200); border-radius: 8px; background: #fff; font-size: 13px; font-weight: 600; color: var(--g800); text-decoration: none; }
.chipbtn:hover { border-color: var(--blue); color: var(--blue); }
a.tile { text-decoration: none; transition: border-color .12s; }
a.tile:hover { border-color: var(--blue); }
a.tile p { margin-bottom: 0; }
a.tile .go { margin-top: 12px; font-size: 13px; font-weight: 600; color: var(--blue); }
.dz-banner { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; padding: 14px 18px; border-radius: 12px; background: var(--red-50); color: #b3261e; font-size: 14px; }
.dz-banner.info { background: var(--blue-50); color: var(--g800); }
.dz-banner a { margin-left: auto; font-weight: 600; }
table.dz-t a.psn { display: flex; }
.shell.portal form.filters label { white-space: nowrap; }
.shell.portal form.filters select { width: auto; }
.psn b { white-space: nowrap; }
.lg .stt, .lg-head > span:nth-child(5) { padding-left: 16px; }

/* ===== 회원사 화면 3차: 기존 패널·숫자 카드·막대를 새 틀 모양으로(회원사 화면에만) ===== */
.shell.portal .page-head { margin: 4px 0 18px; align-items: flex-end; }
.shell.portal .page-head h1 { font-size: 24px; letter-spacing: -0.03em; }
.shell.portal .page-head form.row, .shell.portal .page-head > span { display: flex; align-items: center; gap: 8px; margin: 0; }
.shell.portal .page-head select { height: 40px; margin: 0; width: auto; border-radius: 10px; }
.shell.portal .panel { border-radius: 16px; }
.shell.portal .panel-h { padding: 18px 24px 14px; border-bottom: 0; }
.shell.portal .panel-h a { color: var(--g500); text-decoration: none; }
.shell.portal .panel-h a:hover { color: var(--blue); }
.shell.portal .panel-b { padding: 4px 24px 22px; }
.shell.portal .panel-h + table, .shell.portal .panel-h + .tablewrap { border-top: 1px solid var(--g200); }
.shell.portal .panel table th { padding: 11px 16px; font-size: 12.5px; font-weight: 600; color: var(--g600); white-space: nowrap; }
.shell.portal .panel table td { padding: 13px 16px; color: var(--g800); }
.shell.portal .panel table th:first-child, .shell.portal .panel table td:first-child { padding-left: 24px; }
.shell.portal .panel table th:last-child, .shell.portal .panel table td:last-child { padding-right: 24px; }
.shell.portal .panel table td.num, .shell.portal .panel table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.shell.portal .panel table tr.total td { background: var(--g50); border-bottom: 0; }
.shell.portal .panel table + .panel-b { padding-top: 14px; border-top: 1px solid var(--g100); }
.shell.portal .panel + .panel { margin-top: 16px; }
.shell.portal .pgrid, .shell.portal .kpis { gap: 16px; margin-bottom: 16px; }
.shell.portal section.panel[style*="margin-bottom"] { margin-bottom: 16px !important; }
.shell.portal .kpi-card { border-radius: 16px; padding: 18px 22px; }
.shell.portal .kpi-card span { font-size: 13px; font-weight: 500; color: var(--g600); }
.shell.portal .kpi-card strong { margin: 6px 0; font-size: 26px; letter-spacing: -0.03em; }
.shell.portal .kpi-card em { font-size: 12.5px; }
.shell.portal .hbar { padding: 7px 0; font-size: 13.5px; color: var(--g800); }
.shell.portal .hbar .trk { height: 8px; border-radius: 4px; }
.shell.portal .hbar .val { height: 8px; border-radius: 4px; }
.shell.portal .hbar .val.c-blue { background: #8dbaf7; }
.shell.portal .hbar .val.mid { background: #f5a524; }
.shell.portal .hbar .val.over { background: var(--red); }
.shell.portal .hbar a { color: var(--g900); font-weight: 600; text-decoration: none; }
.shell.portal .hbar a:hover { color: var(--blue); }
.shell.portal .vbars .stack { max-width: 40px; }
.shell.portal .lg-list li { padding: 7px 0; font-size: 13.5px; }
.shell.portal .lg-list b { border: 0; font-weight: 700; }
/* 예전 틀 화면(제목만 있는 화면)의 제목·표·카드 */
.shell.portal .page > h1 { font-size: 24px; letter-spacing: -0.03em; margin: 4px 0 6px; }
.shell.portal .page > h1 + p.muted { margin: 0 0 18px; font-size: 14px; color: var(--g600); }
.shell.portal .page > .head { margin: 0 0 14px; align-items: center; }
.shell.portal .page > .head h1 { margin: 0; font-size: 24px; letter-spacing: -0.03em; }
.shell.portal .page > p:first-of-type > a:only-child { font-size: 13px; color: var(--g500); text-decoration: none; }
.shell.portal .page > .tablewrap, .shell.portal .page > section > .tablewrap { border-radius: 16px; }
.shell.portal .page > .tablewrap table th { padding: 11px 16px; font-size: 12.5px; font-weight: 600; color: var(--g600); }
.shell.portal .page > .tablewrap table td { padding: 13px 16px; }
.shell.portal .page > .tablewrap table th:first-child, .shell.portal .page > .tablewrap table td:first-child { padding-left: 24px; }
.shell.portal .page > .tablewrap table.kv th { width: 150px; background: var(--g50); color: var(--g600); font-weight: 500; border-bottom: 1px solid var(--g100); }
.shell.portal .card, .shell.portal .form-card { border-radius: 16px; padding: 22px 24px; }
.shell.portal .notice { border-radius: 12px; padding: 14px 18px; font-size: 14px; }
.shell.portal .page > form.form-card { max-width: 860px; }
.dz-big { margin: 0; font-size: 38px; font-weight: 700; letter-spacing: -0.03em; color: var(--g900); font-variant-numeric: tabular-nums; line-height: 1.2; }
.dz-big small { font-size: 18px; font-weight: 500; color: var(--g600); margin-left: 4px; }
.dz-dday b { font-size: 22px; }
.dz-banner.info strong { margin-right: 8px; color: var(--blue-d); }

/* ===== 대시보드: 일정 달력·목록 전환, 직원 소식 ===== */
.dz-sw { position: absolute; opacity: 0; pointer-events: none; }
.dz-seg { display: inline-flex; margin-left: auto; padding: 3px; border-radius: 9px; background: var(--g100); }
.dz-seg label { margin: 0; padding: 4px 12px; border-radius: 7px; font-size: 12.5px; font-weight: 600; color: var(--g600); cursor: pointer; }
#schv-cal:checked ~ h2 label[for="schv-cal"], #schv-list:checked ~ h2 label[for="schv-list"] { background: #fff; color: var(--g900); box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }
#schv-cal:focus-visible ~ h2 label[for="schv-cal"], #schv-list:focus-visible ~ h2 label[for="schv-list"] { outline: 2px solid var(--blue); }
#schv-cal:checked ~ .v-list, #schv-list:checked ~ .v-cal { display: none; }
.dz-calnav { display: flex; align-items: center; gap: 6px; margin: 0 0 10px; }
.dz-calnav strong { min-width: 104px; text-align: center; font-size: 15px; font-weight: 700; color: var(--g900); font-variant-numeric: tabular-nums; }
.dz-calnav a { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 8px; color: var(--g600); font-size: 18px; text-decoration: none; }
.dz-calnav a:hover { background: var(--g100); color: var(--g900); }
.dz-calnav a.now { width: auto; margin-left: auto; padding: 0 10px; font-size: 12.5px; font-weight: 600; color: var(--blue); }
table.dz-cal { width: 100%; margin: 0; border-collapse: collapse; table-layout: fixed; }
table.dz-cal th { padding: 4px 0 6px; background: none; border: 0; text-align: center; font-size: 12px; font-weight: 500; color: var(--g500); }
table.dz-cal td { height: 42px; padding: 3px 0 0; border: 0; text-align: center; vertical-align: top; background: none !important; }
table.dz-cal td b { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; font-size: 13px; font-weight: 500; color: var(--g800); font-variant-numeric: tabular-nums; }
table.dz-cal th.sun, table.dz-cal td.red b { color: var(--red); }
table.dz-cal th.sat, table.dz-cal td.sat b { color: var(--blue); }
table.dz-cal td.out b { color: var(--g300); }
table.dz-cal td.today b { background: var(--blue); color: #fff; font-weight: 700; }
table.dz-cal .dots { display: flex; justify-content: center; gap: 3px; height: 6px; margin-top: 2px; }
table.dz-cal .dots i, .dz-callist li > i { display: block; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--g400); }
table.dz-cal td.out .dots { opacity: .4; }
i.k-pay { background: var(--blue) !important; }
i.k-filing, i.k-legal { background: var(--g500) !important; }
i.k-contract, i.k-probation, i.k-leave, i.k-attendance { background: #f5a524 !important; }
i.k-anniversary { background: var(--green) !important; }
.dz-callist { list-style: none; margin: 10px 0 0; padding: 10px 0 0; border-top: 1px solid var(--g100); }
.dz-more .dz-callist { margin-top: 0; padding-top: 0; border-top: 0; }
.dz-callist li { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: 13.5px; color: var(--g800); }
.dz-callist time { flex: none; width: 76px; color: var(--g500); font-variant-numeric: tabular-nums; }
.dz-callist span { flex: 1; min-width: 0; }
.dz-callist em { flex: none; font-style: normal; font-size: 12px; font-weight: 600; color: var(--g600); font-variant-numeric: tabular-nums; }
.dz-callist li.past { opacity: .5; }
.dz-news { list-style: none; margin: 0; padding: 0; }
.dz-news li { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-top: 1px solid var(--g100); font-size: 14px; }
.dz-news li:first-child { border-top: 0; padding-top: 0; }
.dz-news time { flex: none; width: 70px; font-size: 13px; color: var(--g500); font-variant-numeric: tabular-nums; }
.dz-news b { font-weight: 600; color: var(--g900); }
.dz-news em { margin-left: auto; font-style: normal; font-size: 12px; font-weight: 700; color: var(--blue); }
.dz-news li.past { opacity: .5; }
.dz-stack > .dz-row { margin-bottom: 0; }
.dz-row.a > .dz-stack { display: flex; flex-direction: column; }
.dz-row.a > .dz-stack > .dz-pay { flex: 1; }
.dz-row.a > .dz-stack > .dz-card:last-child { flex: 1; }
.dz-stack .dz-kpi { padding: 16px 18px; }
.dz-stack .dz-kpi .v { font-size: 24px; }
.dz-next { display: flex; align-items: center; gap: 12px; margin-top: 20px; padding: 14px 18px; border-radius: 12px; background: var(--g50); font-size: 14px; color: var(--g600); }
.dz-next b { font-size: 16px; font-weight: 700; color: var(--g900); }
.dz-next em { font-style: normal; font-weight: 700; color: var(--blue); font-variant-numeric: tabular-nums; }
.dz-next .r { margin-left: auto; font-size: 13px; }
table.dz-cal td { height: 39px; }

/* ===== 달력 날짜 말풍선, 회원사 설정 ===== */
table.dz-cal td { position: relative; }
table.dz-cal td[tabindex] { cursor: default; outline: none; }
table.dz-cal td[tabindex]:hover b, table.dz-cal td[tabindex]:focus b { box-shadow: 0 0 0 2px var(--blue-100); }
.dz-pop { display: none; position: absolute; z-index: 20; top: 100%; left: 50%; transform: translateX(-50%); min-width: 190px; max-width: 280px; margin-top: 2px; padding: 10px 14px; border-radius: 12px; background: var(--g900); color: #fff; text-align: left; box-shadow: 0 8px 24px rgba(0, 0, 0, .18); }
table.dz-cal td:hover > .dz-pop, table.dz-cal td:focus > .dz-pop { display: block; }
table.dz-cal td:nth-child(-n+2) > .dz-pop { left: 0; transform: none; }
table.dz-cal td:nth-child(n+6) > .dz-pop { left: auto; right: 0; transform: none; }
.dz-pop strong { display: block; margin-bottom: 4px; font-size: 12.5px; font-weight: 600; color: #c9d2de; white-space: nowrap; }
.dz-pop .hol { margin-left: 4px; color: #ff9aa2; }
.dz-pop p { display: flex; align-items: center; gap: 8px; margin: 4px 0 0; font-size: 13px; font-weight: 500; line-height: 1.4; white-space: nowrap; }
.dz-pop p i { flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--g400); }
i.k-birthday { background: #ec6aa8 !important; }
i.k-retire, i.k-fixed_term, i.k-exit { background: #f5a524 !important; }
.dz-opts { list-style: none; margin: 0; padding: 0; }
.dz-opts li { border-top: 1px solid var(--g100); }
.dz-opts li:first-child { border-top: 0; }
.dz-opts label { display: flex; align-items: flex-start; gap: 12px; margin: 0; padding: 12px 0; cursor: pointer; }
.dz-opts input[type=checkbox], .dz-opts input[type=radio] { flex: none; margin: 2px 0 0; }
.dz-opts b { display: block; font-size: 14.5px; font-weight: 600; color: var(--g900); }
.dz-opts small { display: block; margin-top: 2px; font-size: 12.5px; color: var(--g500); line-height: 1.5; }

/* ===== 오늘 현황, 카드 켜고 끄기, 설정 두 칸 ===== */
.dz-row > :only-child { grid-column: 1 / -1; }
.dz-today { display: flex; align-items: center; gap: 28px; margin-bottom: 16px; padding: 20px 26px; }
.dz-today .tt { flex: none; min-width: 250px; }
.dz-today .eyebrow { margin: 0 0 4px; font-size: 13px; font-weight: 600; color: var(--blue); }
.dz-today .now { margin: 0; font-size: 19px; font-weight: 700; letter-spacing: -0.03em; color: var(--g900); }
.dz-today .now small { margin-left: 6px; font-size: 14px; font-weight: 500; color: var(--g600); }
.dz-today .cnt { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; gap: 10px 0; }
.dz-today .cnt > div { padding: 0 22px; border-left: 1px solid var(--g100); }
.dz-today .cnt > div:first-child { border-left: 0; padding-left: 0; }
.dz-today .cnt span { display: block; font-size: 12.5px; color: var(--g500); }
.dz-today .cnt b { display: inline-block; margin-top: 2px; font-size: 22px; font-weight: 700; color: var(--g900); font-variant-numeric: tabular-nums; }
.dz-today .cnt b.on { color: var(--blue-d); }
.dz-today .cnt b.none { color: var(--g400); }
.dz-today .cnt em { margin-left: 8px; font-style: normal; font-size: 13px; color: var(--g700); }
.dz-today .btn { flex: none; }
.dz-sub { margin: 18px 0 6px; font-size: 12.5px; font-weight: 700; color: var(--g500); }
.dz-opts.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
.dz-opts.two li:nth-child(2) { border-top: 0; }
i.k-company_off { background: var(--green) !important; }
i.k-vacation { background: #8dbaf7 !important; }
i.k-loa { background: #f5a524 !important; }
#rec-who[hidden], #rec-skip[hidden] { display: none; }

/* ===== 휴가 메뉴(달력·기록·현황) ===== */
table.lv-types input:not([type=checkbox]), table.lv-types select { height: 34px; margin: 0; font-size: 13.5px; }
table.lv-types td { padding-top: 8px; padding-bottom: 8px; }
.lv-tabs { margin: 0 0 16px; }
.lv-bar { display: flex; align-items: center; gap: 10px; padding: 14px 20px; flex-wrap: wrap; }
.lv-bar .mon { min-width: 116px; text-align: center; font-size: 17px; font-weight: 700; color: var(--g900); }
.lv-bar .sp { flex: 1; }
.lv-bar select, .lv-bar input { height: 36px; font-size: 13px; width: auto; min-width: 120px; margin: 0; }
.lv-bar .btn, .lv-bar .chipbtn { height: 36px; }
.lv-bar .note { font-size: 12.5px; color: var(--g500); }
.lv-legend { display: flex; gap: 8px; padding: 0 20px 14px; flex-wrap: wrap; }
.lv-chip { display: block; padding: 2px 7px; border-radius: 5px; font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
span.lv-chip.in { display: inline-block; vertical-align: middle; }
.lv-annual { background: var(--blue-50); color: var(--blue-d); } .lv-paid { background: #e6f6ef; color: #0f6e56; } .lv-unpaid { background: var(--orange-50); color: #c46a00; }
.lv-absence { background: var(--red-50); color: var(--red); } .lv-loa { background: #efeafd; color: #5b3fc4; } .lv-etc { background: var(--g100); color: var(--g700); }
.lv-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 300px; border-top: 1px solid var(--g200); }
table.lv-cal { width: 100%; margin: 0; border-collapse: collapse; table-layout: fixed; }
table.lv-cal th { padding: 9px 0; background: var(--g50); border-bottom: 1px solid var(--g200); font-size: 12.5px; font-weight: 600; color: var(--g600); text-align: center; }
table.lv-cal td { height: 112px; padding: 6px; vertical-align: top; border-right: 1px solid var(--g100); border-bottom: 1px solid var(--g100); cursor: pointer; }
table.lv-cal td:last-child { border-right: 0; } table.lv-cal tr:last-child td { border-bottom: 0; }
table.lv-cal td.rest { background: var(--g50); } table.lv-cal td.out > * { opacity: .4; }
table.lv-cal td:hover { background: #f4f8ff; } table.lv-cal td.sel { box-shadow: inset 0 0 0 2px var(--blue); }
table.lv-cal .d { display: flex; align-items: center; gap: 6px; margin-bottom: 2px; font-size: 13px; font-weight: 600; color: var(--g700); }
table.lv-cal .d b { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; border-radius: 11px; font-weight: 600; }
table.lv-cal td.today .d b { background: var(--blue); color: #fff; padding: 0 5px; }
table.lv-cal td.sun .d, table.lv-cal td.hol .d { color: var(--red); }
table.lv-cal .d small { font-size: 11px; font-weight: 400; color: var(--red); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
table.lv-cal .lv-chip { margin-top: 3px; } table.lv-cal .more { margin-top: 3px; font-size: 11.5px; color: var(--g500); }
.lv-side { padding: 18px 20px; border-left: 1px solid var(--g200); }
.lv-side h3 { margin: 0 0 2px; font-size: 15px; font-weight: 700; color: var(--g900); } .lv-side .cnt { margin: 0 0 12px; font-size: 13px; color: var(--g600); }
.lv-side .who { padding: 9px 0; border-top: 1px solid var(--g100); font-size: 14px; color: var(--g900); } .lv-side .who .sub { display: block; margin-top: 2px; font-size: 12.5px; color: var(--g500); }
.lv-side .none { padding: 18px 0; font-size: 13px; color: var(--g500); border-top: 1px solid var(--g100); } .lv-side .btn { width: 100%; margin-top: 14px; }
.lv-dlg { width: min(580px, 94vw); } .lv-dlg form { padding: 24px 26px 20px; margin: 0; } .lv-dlg h2 { margin: 0 0 16px !important; font-size: 18px !important; }
.lv-dlg .f { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 10px 12px; align-items: center; } .lv-dlg .f > span { font-size: 13px; color: var(--g600); }
.lv-dlg .f .two { display: flex; gap: 8px; align-items: center; } .lv-dlg .f .two > * { flex: 1; min-width: 0; } .lv-dlg .f .two > i { flex: none; font-style: normal; color: var(--g500); }
.lv-dlg select, .lv-dlg input[type=date], .lv-dlg input[type=text], .lv-dlg input:not([type]) { height: 38px; margin: 0; font-size: 14px; }
.lv-dlg .people { max-height: 196px; overflow: auto; padding: 8px 10px; border: 1px solid var(--g200); border-radius: 10px; } .lv-dlg .people label.check { font-size: 14px; }
.lv-dlg .hint { grid-column: 2; margin: -4px 0 0; font-size: 12.5px; color: var(--g500); }
.lv-bal { margin: 14px 0 0; padding: 10px 14px; border-radius: 10px; background: var(--g50); font-size: 13px; color: var(--g800); } .lv-bal div { display: flex; justify-content: space-between; padding: 2px 0; }
.lv-bal .over { color: var(--red); font-weight: 600; } .lv-dlg .foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }
table.dz-t tr.lv-row { cursor: pointer; } table.dz-t tr.lv-row.sel td { background: var(--blue-50); }
table.dz-t td .acts { display: flex; gap: 10px; justify-content: flex-end; white-space: nowrap; } table.dz-t td .acts form { margin: 0; }
.lv-detail { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--g200); }
.lv-detail > div { padding: 18px 24px; border-right: 1px solid var(--g100); } .lv-detail > div:last-child { border-right: 0; }
.lv-detail h3 { margin: 0 0 10px; font-size: 14px; font-weight: 700; color: var(--g900); } .lv-detail h3 a { margin-left: 8px; font-size: 12.5px; font-weight: 500; }
.lv-detail ul { margin: 0; padding: 0; list-style: none; } .lv-detail li { display: flex; gap: 10px; padding: 5px 0; font-size: 13.5px; color: var(--g800); }
.lv-detail li .p { flex: none; width: 104px; color: var(--g600); font-variant-numeric: tabular-nums; } .lv-detail li .m { margin-left: auto; color: var(--g500); font-size: 12.5px; text-align: right; }
.lv-detail .empty { font-size: 13px; color: var(--g500); }
.lv-dlg [hidden], .lv-detail[hidden] { display: none !important; }
.lv-detail li .m, .lv-detail li > span:not(.m) { white-space: nowrap; }

/* ---------- 직원 메뉴: 고르는 목록 + 작업 칸(증명서, 인사기록카드·명부, 인사발령) ---------- */
.cert-cols { display: grid; grid-template-columns: 270px 350px minmax(0, 1fr); gap: 16px; align-items: start; }
.pick-cols { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 16px; align-items: start; }
.pick-panel { background: #fff; border: 1px solid var(--g200); border-radius: 14px; overflow: hidden; }
.pick-panel.pick-empty { grid-column: 2 / -1; padding: 48px 24px; text-align: center; line-height: 1.8; }
.pick-title { margin: 0; padding: 14px 18px; font-size: 15px; border-bottom: 1px solid var(--g200); display: flex; align-items: center; gap: 8px; }
.pick-title small { font-weight: 400; font-size: 12.5px; }
.pick-title .sp { flex: 1; }
.pick-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; padding: 12px 14px; border-bottom: 1px solid var(--g200); }
.pick-filter label { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--g600); margin: 0; }
.pick-filter :is(input, select) { height: 34px; font-size: 13.5px; width: auto; min-width: 0; }
.pick-filter input[name=q], .pick-filter input[name=lq] { width: 96px; flex: 1 1 80px; }
.pseg { display: inline-flex; background: var(--g100); border-radius: 9px; padding: 3px; }
.pseg > :is(a, label) { padding: 5px 12px; border-radius: 7px; font-size: 13px; font-weight: 600; color: var(--g600); text-decoration: none; cursor: pointer; margin: 0; }
.pseg > .on { background: #fff; color: var(--g900); box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }
.pseg input[type=radio] { position: absolute; opacity: 0; pointer-events: none; }
.pick-list { list-style: none; margin: 0; padding: 0; max-height: 640px; overflow: auto; }
.pick-list li { border-bottom: 1px solid var(--g100); }
.pick-list li.muted { padding: 16px; }
.pick-list li > :is(a, label) { display: flex; align-items: center; gap: 10px; padding: 9px 16px; color: var(--g900); text-decoration: none; margin: 0; cursor: pointer; }
.pick-list li > :is(a, label) > span { display: block; }
.pick-list li strong { display: block; font-weight: 600; font-size: 14.5px; }
.pick-list li small { display: block; color: var(--g500); font-size: 12px; }
.pick-list li.on > :is(a, label) { background: var(--blue-50); }
.pick-list li > :is(a, label):hover { background: var(--g50); }
.cert-form { padding: 16px 18px; display: grid; gap: 10px; margin: 0; }
.cert-form .kv { display: grid; grid-template-columns: 78px minmax(0, 1fr); align-items: center; gap: 10px; margin: 0; font-size: 14px; }
.cert-form .kv > span:first-child { color: var(--g600); font-size: 13px; }
.cert-form .kv > b { font-weight: 500; background: var(--g100); border-radius: 8px; padding: 8px 10px; }
.cert-form .kv :is(input, select) { width: 100%; height: 36px; }
.cert-form .row.end, .row.end { justify-content: flex-end; }
.cert-mine { list-style: none; margin: 0; padding: 10px 18px 14px; font-size: 13.5px; line-height: 2; }
.cert-preview { background: var(--g100); padding: 20px; }
.cert-preview .cert { zoom: .72; box-shadow: 0 2px 10px rgba(0, 0, 0, .06); }
.cert-preview .notice-box { margin: 0; }
@media (max-width: 1200px) { .cert-cols { grid-template-columns: 240px minmax(0, 1fr); } .cert-cols > .pick-panel:nth-child(3) { grid-column: 1 / -1; } }

.pager { display: inline-flex; align-items: center; gap: 8px; font-weight: 400; font-size: 13.5px; margin-left: 6px; }
.pager :is(a, .off) { width: 28px; height: 28px; border: 1px solid var(--g300); border-radius: 7px; display: inline-flex; align-items: center; justify-content: center; color: var(--g700); text-decoration: none; }
.pager .off { color: var(--g300); border-color: var(--g200); }
.cert-preview .hr-card h1 { font-size: 26px; margin: 8px 0 20px; }
.roster-preview { margin: 0; border: 0; border-radius: 0; }
.roster-preview table { font-size: 13px; }
.roster-preview :is(th, td) { white-space: nowrap; max-width: 260px; overflow: hidden; text-overflow: ellipsis; }

/* ---------- 조직도 ---------- */
.org-scroll { overflow: auto; padding: 28px 16px 32px; }
.org-tree { text-align: center; width: max-content; min-width: 100%; }
.org-tree ul { display: flex; justify-content: center; padding: 22px 0 0; margin: 0; list-style: none; position: relative; }
.org-tree > ul { padding-top: 0; }
.org-tree li { position: relative; padding: 22px 9px 0; display: flex; flex-direction: column; align-items: center; }
.org-tree > ul > li { padding-top: 0; }
.org-tree li::before, .org-tree li::after { content: ""; position: absolute; top: 0; width: 50%; height: 22px; border-top: 1.5px solid var(--g300); }
.org-tree li::before { right: 50%; }
.org-tree li::after { left: 50%; border-left: 1.5px solid var(--g300); }
.org-tree li:only-child::before, .org-tree li:only-child::after, .org-tree li:first-child::before, .org-tree li:last-child::after { border-top: 0; }
.org-tree li:last-child::before { border-right: 1.5px solid var(--g300); }
.org-tree li:last-child::after { border-left: 0; }
.org-tree > ul > li::before, .org-tree > ul > li::after { display: none; }
.org-tree ul ul::before { content: ""; position: absolute; top: 0; left: 50%; height: 22px; border-left: 1.5px solid var(--g300); }
.org-tree .node { width: 180px; background: #fff; border: 1px solid var(--g300); border-radius: 12px; text-align: left; overflow: hidden; box-shadow: 0 1px 2px rgba(0, 0, 0, .04); break-inside: avoid; }
.org-tree .node .nh { padding: 8px 12px; background: var(--blue); color: #fff; font-weight: 700; display: flex; justify-content: space-between; gap: 8px; font-size: 13.5px; }
.org-tree .node.sub .nh { background: var(--blue-50); color: var(--blue-d); }
.org-tree .node.ceo { width: 210px; }
.org-tree .node.ceo .nh { background: var(--g900); }
.org-tree .node .lead { padding: 9px 12px; display: flex; align-items: center; gap: 8px; }
.org-tree .node .lead + .mem { border-top: 1px dashed var(--g200); }
.org-tree .node .lead b { display: block; font-size: 14px; }
.org-tree .node .lead small { color: var(--g600); font-size: 12px; }
.org-tree .node .av { width: 28px; height: 28px; border-radius: 50%; background: var(--blue-50); color: var(--blue-d); display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; flex: none; }
.org-tree .node .mem { padding: 7px 12px 9px; font-size: 12.5px; line-height: 1.9; }
.org-tree .node .mem.none { color: var(--g400); }
.org-tree .node .mem .m { display: block; }
.org-tree .node .mem i { font-style: normal; color: var(--g500); margin-left: 5px; }
.org-nav a { display: flex; justify-content: space-between; padding: 9px 16px; color: var(--g800); border-bottom: 1px solid var(--g100); text-decoration: none; font-size: 14px; }
.org-nav a.on { background: var(--blue-50); color: var(--blue-d); font-weight: 600; }
.org-nav a span { color: var(--g500); font-weight: 400; }
.org-set { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.org-lists { display: grid; gap: 16px; }
.org-set td.ud { white-space: nowrap; width: 1%; }
.org-set td.ud button.link { color: var(--g500); padding: 0 3px; font-size: 12px; }
.org-set td.ud button.link:hover { color: var(--blue); }
.org-row { display: grid; grid-template-columns: 1fr 1.2fr; gap: 8px; margin: 0; }
.org-row select { height: 34px; font-size: 13.5px; width: 100%; min-width: 0; }
.org-rename { display: inline-block; }
.org-rename summary { cursor: pointer; color: var(--blue); font-size: 13.5px; list-style: none; }
.org-rename[open] summary { margin-bottom: 6px; }
.org-rename input { height: 32px; width: 130px; }
.org-print { max-width: none; }
.org-print-title { font-size: 20px; text-align: center; margin: 8px 0 20px; }
.org-print-title small { font-size: 13px; font-weight: 400; color: var(--g600); margin-left: 8px; }
@media print { .org-tree .node { box-shadow: none; } .org-tree .node .nh, .org-tree .node .av { -webkit-print-color-adjust: exact; print-color-adjust: exact; } }

/* ---------- 인사발령 ---------- */
.badge.v { background: #f1effd; color: #6b5bd2; }
.badge.b { background: var(--blue-50); color: var(--blue-d); }
.ap-cols { display: grid; grid-template-columns: minmax(0, 1fr) 390px; gap: 16px; align-items: start; }
/* 인사발령 진행: 입력 칸 + 진행 안내 */
.ap-go { display: grid; grid-template-columns: minmax(0, 620px) minmax(0, 1fr); gap: 16px; align-items: start; }
/* 통지서 양식 설정 */
.ap-forms { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.ap-form-edit { display: grid; gap: 14px; padding: 16px 18px; margin: 0; }
.ap-form-edit label { display: block; margin: 0; }
.ap-form-edit input[name=title], .ap-form-edit textarea { display: block; width: 100%; margin-top: 6px; box-sizing: border-box; }
.ap-form-edit textarea { padding: 10px 14px; line-height: 1.6; font-family: inherit; resize: vertical; }
.ap-form-edit label.check { display: flex; align-items: center; gap: 8px; }
.ap-ph { padding: 12px 14px; border-radius: 10px; background: var(--g50); }
.ap-ph > div { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.ap-ph p { margin: 0; line-height: 1.6; }
.ap-ph code { background: #fff; border: 1px solid var(--g200); border-radius: 4px; padding: 0 4px; font-size: 12px; }
button.ap-ph-b { height: 28px; padding: 0 9px; border: 1px solid var(--g300); border-radius: 14px; background: #fff; color: var(--g800); font-size: 12.5px; font-weight: 500; cursor: pointer; }
button.ap-ph-b:hover { border-color: var(--blue); color: var(--blue); background: #fff; }
.ap-notice-body { margin: 28px 0 8px; font-size: 16px; line-height: 1.9; }
.ap-notice-body p { margin: 0 0 6px; }
.dz-card h3.dz-sub { margin: 14px 0 4px; font-size: 13px; font-weight: 600; color: var(--g600); }
/* 조직도: 부서가 없을 때 안내 */
.org-need { padding: 48px 24px; text-align: center; line-height: 1.8; }
.org-need p { margin: 0 0 10px; }
.org-need strong { font-size: 17px; color: var(--g900); }
.ap-ledger td.wrap, .pick-panel td.wrap { white-space: normal; min-width: 180px; }
.ap-ledger th.pick, .ap-ledger td.pick { width: 1%; padding-right: 0; }
.ap-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ap-chips label { padding: 5px 11px; border: 1px solid var(--g300); border-radius: 16px; font-size: 13px; color: var(--g700); background: #fff; cursor: pointer; margin: 0; }
.ap-chips label.on { background: var(--blue); border-color: var(--blue); color: #fff; font-weight: 600; }
.ap-chips input { position: absolute; opacity: 0; pointer-events: none; }
.cert-form .kv > span > small { display: block; margin-top: 4px; font-size: 12px; }
.cert-form .kv input.ap-new { outline: 2px solid var(--blue); outline-offset: 1px; }
.ap-ask { margin: 0; padding: 10px 12px; background: var(--blue-50); border-radius: 10px; font-size: 13px; color: var(--g800); }
.ap-bulk input { height: 34px; font-size: 13.5px; width: 100%; min-width: 120px; }
@media (max-width: 1280px) { .ap-cols { grid-template-columns: minmax(0, 1fr); } }

/* ---------- 직원 화면: 인사 이력 바로가기, 개인정보 가림 ---------- */
.hr-jump { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 16px; }
.hr-jump a { padding: 5px 12px; border: 1px solid var(--g300); border-radius: 16px; font-size: 13px; color: var(--g700); background: #fff; text-decoration: none; }
.hr-jump a:hover { border-color: var(--blue); color: var(--blue-d); }
.hr-jump a.out { margin-left: auto; border-color: var(--blue-100); background: var(--blue-50); color: var(--blue-d); }
.pii-switch { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 4px; background: transparent; color: var(--g600); font-size: 13px; font-weight: 500; border: 0; }
.pii-switch:hover { background: transparent; color: var(--g900); }
.pii-switch i { width: 34px; height: 20px; border-radius: 10px; background: var(--g300); position: relative; display: inline-block; transition: background .15s; }
.pii-switch i::after { content: ""; position: absolute; left: 2px; top: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: left .15s; }
.pii-switch.on { color: var(--blue-d); }
.pii-switch.on i { background: var(--blue); }
.pii-switch.on i::after { left: 16px; }

label.inline-label { display: inline-flex; flex-direction: row; align-items: center; gap: 6px; margin: 0; font-size: 13px; color: var(--g600); }
.ap-ledger td { white-space: nowrap; }
.ap-ledger td small { display: block; font-size: 12px; }
.ap-fix { display: flex; align-items: flex-start; gap: 8px; margin: 0; font-size: 13.5px; color: var(--g800); cursor: pointer; }
.ap-fix input { margin-top: 3px; flex: none; width: auto; }
.ap-fix small { display: block; font-size: 12px; }
.pseg > label, .ap-chips label { position: relative; }
.pseg input[type=radio], .ap-chips input { left: 0; top: 0; width: 1px; height: 1px; margin: 0; }

/* ---------- 직원 사진 ---------- */
.emp-photo { display: flex; flex-direction: column; align-items: center; gap: 6px; }
img.avatar.photo { object-fit: cover; padding: 0; background: var(--g100); }
.org-tree .node img.av { object-fit: cover; }
.hr-card-top { display: flex; gap: 14px; align-items: flex-start; }
.hr-card-top .cert-table { flex: 1; }
.hr-card-photo { width: 105px; height: 135px; object-fit: cover; border: 1px solid #333; }

/* ---------- 근무표(스케줄·교대제) ---------- */
.wp-nav { align-items: center; gap: 8px; }
.wp-mon { min-width: 116px; text-align: center; font-size: 17px; }
.wp-tabs small { color: var(--g500); font-weight: 400; }
.wp-tools { margin-bottom: 14px; }
.wp-palette { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.wp-palette .wp-lab { font-size: 13px; font-weight: 600; color: var(--g600); margin-right: 4px; }
.wp-key { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border: 1px solid var(--g200); border-radius: 8px; background: #fff; font-size: 13px; color: var(--g800); cursor: pointer; }
.wp-key b { font-size: 14px; }
.wp-key small { color: var(--g500); font-weight: 400; }
.wp-key:hover { border-color: var(--blue); }
.wp-key.rest { background: var(--g50); }
.wp-key.clear { color: var(--g600); }
.wp-how { margin: 10px 0 0; }
.wp-up input[type=file] { max-width: 210px; font-size: 12px; }
.wp-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.wp-bar select { width: auto; height: 34px; margin: 0 0 0 4px; font-size: 13px; }
table.wp-grid { user-select: none; }
table.wp-grid th, table.wp-grid td { padding: 2px 0; font-size: 12px; }
table.wp-grid th small { font-weight: 400; color: var(--g500); }
table.wp-grid th.wk { text-align: left; padding-left: 6px; color: var(--g600); font-size: 11.5px; }
table.wp-grid td.c { min-width: 27px; height: 34px; cursor: cell; line-height: 1.05; }
table.wp-grid td.c b { display: block; font-size: 13px; min-height: 13px; }
table.wp-grid td.c small { display: block; font-size: 9.5px; color: #b35c00; letter-spacing: -0.5px; }
table.wp-grid .mon { border-left: 2px solid var(--g300); }
table.wp-grid td.c.sel { outline: 2px solid var(--blue); outline-offset: -2px; }
table.wp-grid td.c.rest { color: var(--g500); background: var(--g100); }
table.wp-grid td.c.clash { box-shadow: inset 0 -3px 0 #e5484d; }
table.wp-grid td.stick { min-width: 104px; padding: 2px 8px; line-height: 1.25; }
table.wp-grid td.sum, table.wp-grid th.sum { min-width: 44px; padding: 2px 6px; }
table.wp-grid tfoot td { background: var(--g50); color: var(--g700); font-size: 11.5px; height: 24px; }
table.wp-grid tfoot tr.total td { font-weight: 700; color: var(--g900); border-top: 1px solid var(--g300); }
.wp-flag { display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; border-radius: 50%; background: #fff1e0; color: #b35c00; font-size: 11px; font-weight: 700; cursor: help; }
.wp-dot { display: inline-block; min-width: 18px; padding: 0 4px; border-radius: 4px; text-align: center; font-weight: 700; }
.k0 { background: #e3efff !important; color: #1b4f9c; } .k1 { background: #e6e3ff !important; color: #4a3aa8; } .k2 { background: #dff5e7 !important; color: #1b6b3a; }
.k3 { background: #fff0d6 !important; color: #8a5a00; } .k4 { background: #ffe3ee !important; color: #a12c5c; } .k5 { background: #dcf3f6 !important; color: #14606d; }
.k6 { background: #efe9dc !important; color: #6b5626; } .k7 { background: #e9ecf1 !important; color: #3f4a5a; }
table.wp-shifts input.wp-code { text-align: center; font-weight: 700; }
table.wp-shifts input[type=checkbox] { width: auto; }
table.wp-weeks td.n.ot { background: #fff8e1; } table.wp-weeks td.n.over { background: #ffe1e1; color: #b3261e; font-weight: 700; }
table.wp-weeks td.wp-msgs { color: #b35c00; font-size: 12.5px; min-width: 280px; white-space: normal; }
.wp-leg { display: inline-block; padding: 0 6px; border-radius: 4px; } .wp-leg.ot { background: #fff8e1; } .wp-leg.over { background: #ffe1e1; color: #b3261e; }
.wp-dlg form { padding: 22px 24px; display: block; }
.wp-dlg h2 { margin: 0 0 14px; font-size: 18px; }
.wp-dlg label { display: block; margin-bottom: 12px; font-size: 13px; font-weight: 600; }
.wp-dlg label small { display: block; font-weight: 400; margin-top: 4px; }
.wp-dlg label.check { display: inline-flex; font-weight: 400; margin: 0 10px 4px 0; }
.wp-dlg .two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.wp-dlg .wp-who { max-height: 190px; overflow: auto; border: 1px solid var(--g200); border-radius: 8px; padding: 10px 12px; margin-bottom: 12px; }
.wp-dlg.ask-dialog { width: min(560px, 94vw); }
.wp-off h2 { margin: 0 0 8px; font-size: 18px; }
table.ws-pt th.wk, table.ws-pt td.wk { border-left: 2px solid var(--g300); }
/* 회원사 화면의 넓은 표 여백을 이기고 한 달이 한 화면에 들어오게 */
table.ws-grid.wp-grid th, table.ws-grid.wp-grid td { padding: 2px 0 !important; height: auto !important; }
table.ws-grid.wp-grid td.c { height: 34px !important; }
table.ws-grid.wp-grid td.stick, table.ws-grid.wp-grid th.stick { padding: 2px 8px !important; }
table.ws-grid.wp-grid td.sum, table.ws-grid.wp-grid th.sum { padding: 2px 6px !important; }
table.ws-grid.wp-grid th.wk { padding-left: 6px !important; }
.wp-bar label { display: inline-flex; align-items: center; gap: 4px; margin: 0; }

/* ── 근무 유형(요일표·휴게 → 소정·고정시간, 사람에게 적용) ── */
.wt-cols { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 16px; align-items: start; }
.wt-cols form { margin: 0; }
.wt-types a { display: block; padding: 11px 16px; border-bottom: 1px solid var(--g100); color: var(--g900); text-decoration: none; }
.wt-types a:hover { background: var(--g50); }
.wt-types a.on { background: var(--blue-50); box-shadow: inset 3px 0 0 var(--blue); }
.wt-types a.dim b { color: var(--g500); }
.wt-types a b { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 14.5px; }
.wt-types a b span { font-weight: 500; font-size: 12.5px; color: var(--g600); white-space: nowrap; }
.wt-types a small { display: block; color: var(--g600); font-size: 12.5px; margin-top: 3px; line-height: 1.45; }
.wt-empty { padding: 18px; margin: 0; }
.wt-rest { border-bottom: 1px solid var(--g100); font-size: 13px; }
.wt-rest summary { display: flex; justify-content: space-between; padding: 11px 16px; color: var(--g600); cursor: pointer; list-style: none; }
.wt-rest summary::-webkit-details-marker { display: none; }
.wt-rest summary b { color: var(--blue); font-weight: 600; }
.wt-rest ul { margin: 0; padding: 0 16px 8px 32px; line-height: 1.8; }
.wt-rest p { margin: 0; padding: 0 16px 12px; line-height: 1.5; }
.wt-preset { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 16px; }
.wt-preset span { width: 100%; font-size: 12px; color: var(--g500); }
.wt-side-note { padding: 10px 4px 0; line-height: 1.6; margin: 0; }
.wt-inline { margin: 12px 18px 0; }
.wt-name label { display: flex; align-items: center; gap: 12px; margin: 0; font-size: 13px; color: var(--g600); white-space: nowrap; }
.wt-name input { width: 320px; max-width: 100%; margin: 0; }
.panel table.wt-week { table-layout: fixed; width: 100%; border-top: 1px solid var(--g200); }
.panel table.wt-week th, .panel table.wt-week td { text-align: center; padding: 7px 6px; border-right: 1px solid var(--g100); }
.panel table.wt-week th:first-child, .panel table.wt-week td:first-child { width: 96px; text-align: left; padding-left: 18px; color: var(--g600); font-size: 13px; background: var(--g50); }
.panel table.wt-week th:last-child, .panel table.wt-week td:last-child { border-right: 0; }
.panel table.wt-week th { font-size: 13px; color: var(--g700); }
.wt-week th.sat { color: var(--blue-d); } .wt-week th.sun { color: var(--red); }
.wt-week select, .wt-week input { width: 100%; min-width: 0; height: 34px; margin: 0; text-align: center; text-align-last: center; padding: 0 4px; font-size: 14px; }
.wt-week input.rest { background: var(--g50); border-color: var(--g100); color: transparent; }
.wt-week input.rest::placeholder { color: transparent; }
.wt-week select.k-juhyu { background-color: var(--red-50); color: var(--red); border-color: #ffd0d3; font-weight: 600; }
.wt-week select.k-off, .wt-week select.k-holiday { background-color: var(--g100); color: var(--g700); font-weight: 600; }
.wt-weekfoot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; border-top: 1px solid var(--g100); }
.wt-brk { display: flex; align-items: center; gap: 8px; padding: 5px 0; flex-wrap: wrap; }
.wt-brk[hidden] { display: none; }
.wt-brk input.wt-time { width: 72px; margin: 0; text-align: center; height: 34px; }
.wt-brk select { width: auto; height: 34px; margin: 0; }
.wt-bdays { display: inline-flex; gap: 3px; }
.wt-bdays label { margin: 0; cursor: pointer; }
.wt-bdays input { position: absolute; opacity: 0; width: 0; height: 0; }
.wt-bdays span { width: 26px; height: 26px; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; background: var(--g100); color: var(--g400); }
.wt-bdays input:checked + span { background: var(--blue-50); color: var(--blue-d); font-weight: 700; }
.wt-bdays input:focus-visible + span { outline: 2px solid var(--blue); }
.wt-daystrip { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-bottom: 12px; }
.wt-daystrip div { border: 1px solid var(--g200); border-radius: 10px; padding: 7px 4px; text-align: center; line-height: 1.35; }
.wt-daystrip div.off { background: var(--g50); border-color: var(--g100); }
.wt-daystrip span { display: block; font-size: 12px; color: var(--g500); }
.wt-daystrip b { font-size: 14px; }
.wt-daystrip em { font-style: normal; font-size: 12.5px; color: var(--g500); }
.wt-daystrip small { display: block; font-size: 11.5px; color: #e07a00; }
.wt-daystrip small.n { color: #6b5bd2; }
.wt-calc { display: grid; grid-template-columns: repeat(6, 1fr); border: 1px solid var(--blue-100); border-radius: 12px; overflow: hidden; background: #fff; }
.wt-calc div { padding: 12px 14px; border-right: 1px solid var(--g100); }
.wt-calc div:last-child { border-right: 0; }
.wt-calc div span { display: block; font-size: 12px; color: var(--g600); }
.wt-calc div b { font-size: 20px; letter-spacing: -0.03em; }
.wt-calc div b small { font-size: 12.5px; font-weight: 500; color: var(--g600); }
.wt-calc div.hl { background: var(--blue-50); }
.wt-calc div em { display: block; font-style: normal; font-size: 11.5px; color: var(--g500); margin-top: 2px; }
.wt-warn ul, .wt-basis ul { margin: 6px 0 0; padding-left: 18px; line-height: 1.7; }
.wt-basis { margin-top: 10px; padding: 10px 14px; background: var(--g50); border-radius: 10px; font-size: 12.5px; color: var(--g700); }
.wt-basis b { color: var(--g900); }
.wt-wait { margin: 0; }
.wt-save { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin: 14px 0; padding: 10px 0; }
.wt-save .small { flex: 1; line-height: 1.5; }
.panel table.wt-mem td.wrap, .wt-prev td.wrap { white-space: normal; }
.panel table.wt-mem td, .panel table.wt-mem th { padding-left: 10px; padding-right: 10px; white-space: nowrap; }
.wt-mem td.wrap div + div { margin-top: 4px; }
.wt-mem td.wrap .muted.small { display: inline-block; }
.wt-mem .badge, .wt-prev .badge { height: 22px; padding: 0 8px; border-radius: 6px; font-size: 12px; }
.wt-mem td.num, .wt-mem th.num { text-align: right; font-variant-numeric: tabular-nums; }
.wt-mem form, .wt-in { display: inline; margin: 0; }
.wt-mem button.link { height: auto; padding: 0; font-size: 13px; }
.wt-memfoot { margin: 0; padding: 10px 18px 14px; border-top: 1px solid var(--g100); line-height: 1.5; }
.wt-dlg.ask-dialog { width: min(920px, 96vw); max-height: 92vh; overflow: auto; }
.wt-dlg form { display: block; margin: 0; padding: 20px 24px 0; }
.wt-dlg form.wt-apply { padding-top: 6px; padding-bottom: 20px; }
.wt-dlg h2 { margin: 0 0 14px; font-size: 18px; }
.wt-f { display: grid; grid-template-columns: 96px 1fr; gap: 10px; align-items: start; padding: 8px 0; }
.wt-f > span { color: var(--g600); font-size: 13px; padding-top: 6px; }
.wt-f label.check { display: inline-flex; margin: 0 12px 0 0; font-weight: 400; }
.wt-f select, .wt-f input[type=date] { width: auto; height: 34px; margin: 0 10px 0 0; }
.wt-f small { display: block; margin-top: 4px; line-height: 1.5; }
.wt-people { max-height: 180px; overflow: auto; border: 1px solid var(--g200); border-radius: 8px; padding: 10px 12px; margin-top: 8px; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 4px 10px; }
.wt-people[hidden] { display: none; }
.wt-dlg-foot { justify-content: flex-end; gap: 8px; margin: 12px 0 14px; }
.wt-prev { border: 1px solid var(--g200); border-radius: 10px; width: 100%; }
.wt-prev th { background: var(--g50); font-size: 12px; padding: 8px 10px; text-align: left; }
.wt-prev td { padding: 8px 10px; border-top: 1px solid var(--g100); font-size: 13.5px; }
.wt-prev td:first-child, .wt-prev td:nth-child(2) { white-space: nowrap; }
.wt-prev td.wrap div + div { margin-top: 4px; }
/* 직원 화면 › 급여 정보 › 근무 형태 */
.wt-emp { margin-bottom: 14px; }
.wt-emp .wt-row { display: grid; grid-template-columns: 132px 1fr; gap: 8px 12px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--g100); }
.wt-emp .wt-row:last-child { border-bottom: 0; }
.wt-emp .wt-row > span { color: var(--g600); font-size: 13px; }
.wt-emp select, .wt-emp input[type=date] { width: auto; height: 34px; margin: 0 6px 0 0; }
.wt-emp .wt-own { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 8px; }
.wt-emp .wt-own input[type=text], .wt-emp .wt-own input:not([type]) { width: 70px; margin: 0; text-align: center; height: 34px; }
.wt-emp .badge { height: 22px; padding: 0 8px; border-radius: 6px; font-size: 12px; }
.wt-emp form { margin: 0; }
@media (max-width: 1100px) { .wt-cols { grid-template-columns: 1fr; } .wt-calc { grid-template-columns: repeat(3, 1fr); } }
.wt-f > div { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.wt-f > div > small, .wt-f > div > .wt-people { flex-basis: 100%; margin-top: 0; }
.wt-f select, .wt-f input[type=date] { display: inline-block; margin: 0; }
.wt-f label.check { margin: 0; }
.wt-emp select, .wt-emp input[type=date], .wt-emp .wt-own input:not([type=checkbox]):not([type=hidden]) { display: inline-block; vertical-align: middle; }
.wt-emp .wt-own > span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.wt-emp .wt-own label.check { margin: 0; }
.wt-emp .wt-own textarea { width: 100%; margin-top: 6px; }
.wt-emp .wt-row label.check { display: inline-flex; margin: 0 0 0 8px; }
.wt-prev th:nth-child(3), .wt-prev td:nth-child(3) { width: 22%; } .wt-prev th:nth-child(5), .wt-prev td:nth-child(5) { width: 30%; }

/* 근무 유형 › 근로시간 현황 */
.wt-tabs { margin-bottom: 14px; }
.wt-tabs small { color: var(--g500); font-weight: 400; font-size: 13px; }
.wt-filter { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; border-bottom: 1px solid var(--g100); }
.wt-filter label { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-size: 13px; color: var(--g600); white-space: nowrap; }
.wt-filter select { width: auto; height: 34px; margin: 0; font-size: 13px; }
.panel table.wt-ov td, .panel table.wt-ov th { padding: 8px 9px; font-size: 13.5px; }
.panel table.wt-ov th.chk, .panel table.wt-ov td.chk { width: 34px; text-align: center; padding-right: 0; }
.wt-ov td.chk input, .wt-ov th.chk input { margin: 0; }
.wt-ov td.wrap { min-width: 130px; }
.wt-bulkbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; border-top: 1px solid var(--g200); position: sticky; bottom: 0; background: #fff; }
.wt-bulkbar select { width: auto; height: 36px; margin: 0; }

/* 근무 유형 › 번갈아 서는 시각 */
.wt-alts > summary { cursor: pointer; list-style: none; }
.wt-alts > summary::-webkit-details-marker { display: none; }
.wt-alts > summary h2::before { content: "＋ "; color: var(--g500); font-weight: 400; }
.wt-alts[open] > summary h2::before { content: "－ "; }
.wt-alts:not([open]) > summary { border-bottom: 0; }
.wt-brk input.wt-altname { width: 110px; margin: 0; height: 34px; }
.wt-altline { margin: 10px 0 0; font-size: 13px; }

/* 근로시간 현황 › 유형 없는 사람 묶음 */
.wt-groups { margin-bottom: 14px; }
.wt-groups td { vertical-align: middle; }
.wt-groups td.actions { text-align: right; white-space: nowrap; }

/* 집계표 › 시급제 주 합계 줄 */
table.ws-pt tr.ws-wk-row td { background: var(--g50); font-size: 11.5px; color: var(--g600); height: 22px; padding: 2px 1px; text-align: center; }
table.ws-pt tr.ws-wk-row td.stick { text-align: left; padding-left: 8px; }
table.ws-pt tr.ws-wk-row td.wk-sum.over { background: var(--orange-50); color: #b35c00; font-weight: 700; }
.ws-weeknotes ul { margin: 6px 0 0; padding-left: 18px; line-height: 1.7; }

/* 회원사 설정 › 급여 관리: 묶음 제목과 바로가기 */
.set-toc { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 18px; }
.set-toc span { font-size: 13px; color: var(--g500); margin-right: 2px; }
.set-toc a { display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border: 1px solid var(--g200); border-radius: 16px; background: #fff; font-size: 13px; font-weight: 600; color: var(--g700); text-decoration: none; }
.set-toc a:hover { border-color: var(--blue); color: var(--blue); }
h2.set-group { margin: 30px 0 12px; font-size: 17px; scroll-margin-top: 80px; }
h2.set-group:first-of-type { margin-top: 6px; }
h2.set-group small { font-size: 13px; font-weight: 400; color: var(--g600); margin-left: 6px; }

/* 회원사 화면: 사용가이드를 왼쪽 메뉴 맨 아래에 붙인다 */
.shell.portal .side { display: flex; flex-direction: column; overflow-y: auto; }
.shell.portal .side nav { flex: 1; }
.shell.portal .side .side-bottom { margin-top: auto; background: var(--g200); }
.shell.portal .guide-body { background: #fff; border: 1px solid var(--g200); border-radius: 16px; padding: 28px 32px; }
.shell.portal .guide-toc { border-right: 0; }

/* 근무 형태·스케줄: 고정 근무 ↔ 스케줄·교대제 근무표 */
.wk-modes { display: inline-flex; gap: 4px; padding: 4px; margin: 0 0 16px; background: var(--g100); border-radius: 12px; }
.wk-modes a { padding: 8px 18px; border-radius: 9px; font-size: 14px; font-weight: 600; color: var(--g600); text-decoration: none; }
.wk-modes a.on { background: #fff; color: var(--g900); box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }
.wk-q { margin: 4px 0 14px; font-size: 18px; }
.wk-card h2 { margin: 0 0 8px; font-size: 18px; }
.wk-card .wk-eg { flex: 1; margin: 0 0 18px; font-size: 14px; line-height: 1.7; color: var(--g600); }

/* 인사발령 진행 오른쪽: 발령 이력 */
.ap-recent-list { list-style: none; margin: 0; padding: 4px 18px 14px; }
.ap-recent-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; padding: 10px 0; border-bottom: 1px solid var(--g100); font-size: 14px; }
.ap-recent-list li:last-child { border-bottom: 0; }
.ap-recent-list time { min-width: 86px; color: var(--g600); font-size: 13px; }
.ap-recent-list .d { flex: 1; min-width: 160px; color: var(--g800); }
.ap-recent-list li.none { color: var(--g500); }
.ap-recent .pick-title a { font-weight: 500; }
/* 근로현황집계표 도구 줄 */
.ws-tool-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: stretch; }
.ws-tool { display: flex; flex-direction: column; gap: 8px; padding: 12px 16px; background: #fff; border: 1px solid var(--g200); border-radius: 12px; }
.ws-tool > strong { font-size: 13px; color: var(--g700); }
.ws-tool-b { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ws-tool-end { margin-left: auto; justify-content: center; border: 0; background: none; }
.ws-file { margin: 0; }
.ws-file label.btn { position: relative; cursor: pointer; }
.ws-file input[type=file] { position: absolute; inset: 0; width: 100%; opacity: 0; cursor: pointer; }
.ws-order { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--g600); }
.ws-order select { width: auto; height: 32px; }

/* ===== 일별 근태(daily_att) ===== */
.da-off { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.da-off form { margin: 0; }
.da-filter { gap: 8px; margin: 0 0 12px; align-items: center; }
.da-filter select, .da-filter input[type=text] { height: 34px; }
.da-scroll { overflow-x: auto; }
.shell .panel table.da-grid { table-layout: fixed; min-width: 1120px; border-collapse: collapse; }
.shell .panel table.da-grid th, .shell .panel table.da-grid td { padding: 0; text-align: center; border-right: 1px solid var(--g100); height: 46px; font-size: 12px; }
.shell .panel table.da-grid th { height: 44px; line-height: 1.3; font-weight: 500; }
.shell .panel table.da-grid .who { width: 138px; text-align: left; padding: 0 14px; position: sticky; left: 0; background: #fff; border-right: 1px solid var(--g200); z-index: 1; }
.shell .panel table.da-grid th.who { background: var(--g50); }
.shell .panel table.da-grid td.who b { display: block; font-size: 14px; color: var(--g900); }
.shell .panel table.da-grid td.who span { font-size: 11.5px; color: var(--g500); white-space: nowrap; }
.shell .panel table.da-grid .sum { width: 40px; font-size: 12.5px; }
.shell .panel table.da-grid td.sum.bad { color: var(--red); font-weight: 700; }
.shell .panel table.da-grid .wk { border-left: 2px solid var(--g300); }
.shell .panel table.da-grid th.sun, .shell .panel table.da-grid th.holiday { color: var(--red); }
.shell .panel table.da-grid th.sat { color: var(--blue-d); }
.shell .panel table.da-grid td.rest, .shell .panel table.da-grid td.out { background: var(--g50); }
.shell .panel table.da-grid td.ok::after { content: ""; display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: var(--g300); }
.shell .panel table.da-grid td.loa, .da-loa { background: repeating-linear-gradient(135deg, var(--g200) 0 5px, #fff 5px 10px); }
.da-loa { display: inline-block; width: 22px; height: 14px; border-radius: 3px; }
.da-m { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; margin: 3px 2px; min-height: 34px; padding: 2px 0; border-radius: 6px; line-height: 1.1; text-decoration: none; white-space: nowrap; letter-spacing: -0.05em; overflow: hidden; }
.da-m b { font-size: 11px; font-weight: 700; }
.da-m i { font-style: normal; font-size: 10.5px; font-weight: 600; opacity: .9; }
.da-m.more::after { content: ""; position: absolute; top: 3px; right: 3px; width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.da-m.nt, .badge.da-b.nt { background: #e9edfb; color: #33478f; }
.da-legend .da-m { display: inline-flex; margin: 0; min-width: 32px; }
.da-m.late, .badge.da-b.late { background: var(--orange-50); color: #c96a00; }
.da-m.abs, .badge.da-b.abs { background: var(--red-50); color: var(--red); }
.da-m.ot, .badge.da-b.ot { background: var(--blue-50); color: var(--blue-d); }
.da-m.hw, .badge.da-b.hw { background: #f1effd; color: #6b5bd2; }
.da-m.lv, .badge.da-b.lv { background: var(--green-50); color: #029359; }
.da-legend { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; padding: 10px 18px; border-top: 1px solid var(--g200); font-size: 12.5px; color: var(--g600); }
.da-legend span { display: inline-flex; align-items: center; gap: 6px; }
.da-tag { font-style: normal; font-size: 11px; font-weight: 600; color: #c96a00; background: var(--orange-50); border-radius: 4px; padding: 1px 5px; }
.da-cols { display: grid; gap: 16px; align-items: start; grid-template-columns: 220px minmax(0, 1fr); }
.da-cols .panel + .panel { margin-top: 0; }
.da-people { overflow: hidden; }
.da-people a { display: block; padding: 10px 16px; border-bottom: 1px solid var(--g100); color: var(--g900); text-decoration: none; }
.da-people a:last-child { border-bottom: 0; }
.da-people a.on { background: var(--blue-50); box-shadow: inset 3px 0 0 var(--blue); }
.da-people a b { display: flex; justify-content: space-between; align-items: center; }
.da-people a b span { font-weight: 500; font-size: 12px; color: #c96a00; }
.da-people a small { color: var(--g600); font-size: 12.5px; }
.da-calc { display: grid; grid-template-columns: repeat(8, 1fr); border-bottom: 1px solid var(--g200); }
.da-calc div { padding: 12px 16px; border-right: 1px solid var(--g100); }
.da-calc div:last-child { border-right: 0; }
.da-calc span { display: block; font-size: 12px; color: var(--g600); }
.da-calc b { font-size: 20px; letter-spacing: -0.03em; }
.da-calc b small { font-size: 12px; font-weight: 500; color: var(--g600); margin-left: 1px; }
.shell .panel table.da-day th, .shell .panel table.da-day td { padding: 6px 8px; white-space: nowrap; height: 38px; }
.shell .panel table.da-day .c { text-align: center; }
.shell .panel table.da-day .r { text-align: right; }
.shell .panel table.da-day tr.off td { background: var(--g50); color: var(--g400); }
.shell .panel table.da-day tr.diff td:first-child { box-shadow: inset 3px 0 0 #c96a00; }
.shell .panel table.da-day tr.wk td { border-top: 2px solid var(--g300); }
.shell .panel table.da-day tr.edit td { background: var(--blue-50); }
.shell .panel table.da-day tr:target td { background: #fffbe8; }
.shell .panel table.da-day tr.edit:target td { background: var(--blue-50); }
.shell .panel table.da-day td.chg { color: #c96a00; font-weight: 700; }
.shell .panel table.da-day td.memo { white-space: normal; font-size: 12.5px; min-width: 84px; max-width: 220px; }
.shell .panel table.da-day input[type=text] { width: 44px; height: 30px; text-align: center; padding: 0 2px; }
.shell .panel table.da-day input.memo { width: 76px; text-align: left; padding: 0 8px; }
.shell .panel table.da-day tr.edit td { padding-left: 4px; padding-right: 4px; }
.shell .panel table.da-day td.act form { display: inline; margin: 0; }
.da-chk { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; }
.da-hol { font-size: 11.5px; color: var(--red); }
.da-link { background: none; border: 0; padding: 0; margin: 0 8px 0 0; font: inherit; font-size: 13px; color: var(--g600); cursor: pointer; text-decoration: underline; height: auto; }
.da-turnoff { margin: 18px 0 0; text-align: right; }
.shell .panel table.da-day td.act .btn.sm { padding: 0 9px; }
.da-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px 16px; margin-bottom: 12px; position: sticky; top: 0; z-index: 3; }
.da-bar label { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--g700); margin: 0; white-space: nowrap; }
.da-bar label.grow { flex: 1; min-width: 160px; }
.da-bar input[type=text] { width: 58px; height: 32px; text-align: center; padding: 0 4px; }
.da-bar input.memo { width: 100%; text-align: left; padding: 0 8px; }
.da-bar .da-count { font-size: 13px; color: var(--blue-d); min-width: 72px; }
.da-bar .da-sep { width: 1px; height: 20px; background: var(--g200); }
.shell .panel table.da-grid.pickable td[data-c] { cursor: cell; user-select: none; }
.shell .panel table.da-grid.pickable td[data-c]:hover { box-shadow: inset 0 0 0 1px var(--blue-100); }
.shell .panel table.da-grid td.sel, .shell .panel table.da-grid td.sel.rest { background: var(--blue-50); box-shadow: inset 0 0 0 1.5px var(--blue); }
.shell .panel table.da-check th, .shell .panel table.da-check td { padding: 9px 10px; white-space: nowrap; }
.shell .panel table.da-check .r { text-align: right; }
.shell .panel table.da-check td.diff { white-space: normal; font-size: 13px; min-width: 260px; }
.shell .panel table.da-check td.diff small { display: block; color: var(--g600); font-size: 12px; margin-top: 2px; }
.shell .panel table.da-check tr.same td { color: var(--g500); }
.da-check-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.da-check-head form { margin: 0; display: inline-flex; gap: 6px; align-items: center; }
.da-check-head input[type=text] { height: 32px; width: 220px; }
.da-weeks { flex-wrap: wrap; }
.da-weeks .chipbtn { height: 34px; padding: 0 12px; gap: 6px; font-weight: 600; }
.da-weeks .chipbtn small { font-weight: 400; color: var(--g600); }
.da-weeks .chipbtn.on { background: var(--blue-50); border-color: var(--blue); color: var(--blue-d); }
.da-weeks .chipbtn.warn::after, .da-weeks .chipbtn.bad::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #c96a00; }
.da-weeks .chipbtn.bad::after { background: var(--red); }
.shell .panel table.da-week th, .shell .panel table.da-week td { padding: 10px 12px; white-space: nowrap; }
.shell .panel table.da-week .r { text-align: right; }
.shell .panel table.da-week td.bad { color: var(--red); font-weight: 700; }
.shell .panel table.da-week .wbar { width: 38%; min-width: 300px; }
.da-bar52 { position: relative; height: 14px; background: var(--g100); border-radius: 7px; }
.da-bar52 i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 7px; background: var(--green); }
.da-bar52 i.warn { background: #e58a00; }
.da-bar52 i.over { background: var(--red); }
.da-bar52::before, .da-bar52::after { content: ""; position: absolute; top: -3px; bottom: -3px; width: 1px; background: var(--g400); z-index: 1; }
.da-bar52::before { left: 66.67%; }
.da-bar52::after { left: 86.67%; }
.shell .panel table.da-access th, .shell .panel table.da-access td { padding: 8px 12px; white-space: nowrap; }
.shell .panel table.da-access .c { text-align: center; }
.shell .panel table.da-access .r { text-align: right; }
.da-filter input[type=file] { font-size: 13px; max-width: 260px; }

/* ===== 근태관리: 월간 근태현황 → 근로현황집계표가 이어지는 탭 ===== */
.att-tabs { align-items: center; margin-bottom: 14px; }
.att-tabs small { color: var(--g500); font-weight: 400; }
.att-tabs a.flow { position: relative; margin-left: -4px; padding-left: 22px; }
.att-tabs a.flow::before { content: "›"; position: absolute; left: 2px; top: 50%; transform: translateY(-54%); font-size: 18px; font-weight: 400; color: var(--g500); }
.att-tabs .att-on { margin: 0 0 0 auto; }
.tabs.ws-tabs.sub { gap: 6px; border-bottom: 0; margin-bottom: 10px; align-items: center; }
.tabs.ws-tabs.sub a { padding: 0 14px; height: 34px; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; border: 1px solid var(--g200); border-radius: 8px; background: #fff; color: var(--g700); margin: 0; }
.tabs.ws-tabs.sub a.on { border-color: var(--blue); color: var(--blue); background: #eef4ff; }
table.ws-grid input.from-att { background: #eef4ff; border-color: transparent; color: var(--g900); cursor: default; }
table.ws-grid input.from-att:focus { outline: none; box-shadow: none; }
.ws-key.att { background: #eef4ff; color: #1f5fbf; }

/* ===== 근무표(시프티식): 근무일정 달력 · 추가하기 창 · 스케줄 패턴 ===== */
.wp-more { position: relative; }
.wp-more > summary { list-style: none; cursor: pointer; }
.wp-more > summary::-webkit-details-marker { display: none; }
.wp-add > summary::after { content: "▾"; margin-left: 4px; font-size: 11px; }
.wp-more-list { position: absolute; right: 0; top: 40px; z-index: 30; min-width: 210px; padding: 6px; background: #fff; border: 1px solid var(--g200); border-radius: 12px; box-shadow: 0 8px 28px rgba(0, 0, 0, .12); }
.wp-more-list form { margin: 0; }
.wp-more-list a, .wp-more-list button, .wp-more-list label.wp-file { display: block; width: 100%; height: auto; padding: 9px 12px; border: 0; border-radius: 8px; background: none; font: inherit; font-size: 14px; font-weight: 400; color: var(--g800); text-align: left; text-decoration: none; cursor: pointer; margin: 0; }
.wp-more-list a:hover, .wp-more-list button:hover:not(:disabled), .wp-more-list label.wp-file:hover { background: var(--g50); color: var(--g900); }
.wp-more-list button:disabled { color: var(--g400); cursor: default; }
.wp-more-list hr { border: 0; border-top: 1px solid var(--g100); margin: 4px 0; }
.wp-more-list label.wp-file { position: relative; overflow: hidden; }
.wp-more-list label.wp-file input { position: absolute; inset: 0; width: 100%; opacity: 0; cursor: pointer; }
.wp-seg { display: inline-flex; border: 1px solid var(--g200); border-radius: 8px; overflow: hidden; background: #fff; }
.wp-seg a { padding: 0 14px; height: 32px; display: inline-flex; align-items: center; font-size: 13px; font-weight: 600; color: var(--g600); text-decoration: none; }
.wp-seg a.on { background: var(--blue); color: #fff; }
.chipbtn.on { border-color: var(--blue); color: var(--blue); }
.wp-legend { display: inline-flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12.5px; color: var(--g700); }
.wp-legend small { color: var(--g500); }
.wp-dot.rest { background: var(--g100); color: var(--g500); }
.wp-dot.none { color: var(--g400); }
table.wp-grid td.c { cursor: pointer; }
table.wp-grid.locked td.c { cursor: default; }
table.wp-grid:not(.locked) td.c:hover { outline: 2px solid var(--blue); outline-offset: -2px; }
table.wp-grid td.c.draft { background-image: repeating-linear-gradient(135deg, rgba(255, 255, 255, .55) 0 3px, transparent 3px 7px); }
table.wp-grid td.c .t { display: block; font-size: 11.5px; font-weight: 500; line-height: 1.35; }
table.ws-grid.wp-grid.wp-week td.c { height: 64px !important; min-width: 120px; padding: 4px 6px !important; }
table.wp-grid.wp-week td.c b { display: none; }
.wp-weeks-box > summary { padding: 14px 20px; font-size: 15px; font-weight: 700; cursor: pointer; }
.wp-weeks-box[open] > summary { border-bottom: 1px solid var(--g200); }
/* 창 */
.wp-dlg.ask-dialog { width: min(600px, 94vw); max-height: 92vh; overflow: auto; }
.wp-dlg.ask-dialog.wide { width: min(860px, 96vw); }
.wp-dlg.ask-dialog.small { width: min(380px, 94vw); }
.wp-dlg h2 small { margin-left: 6px; font-size: 13px; font-weight: 500; color: var(--g500); }
.wp-lab { margin: 16px 0 6px; font-size: 12.5px; font-weight: 600; color: var(--g600); }
.wp-lab small { font-weight: 400; color: var(--g500); margin-left: 4px; display: inline !important; }
.wp-dlg select, .wp-dlg input[type=date] { width: 100%; }
.wp-dlg-foot { justify-content: flex-end; margin: 18px 0 0; }
.wp-pick { display: flex; flex-wrap: wrap; gap: 6px; }
.wp-dlg .wp-pick label { display: inline-flex; margin: 0; font-weight: 400; cursor: pointer; }
.wp-pick input { position: absolute; opacity: 0; pointer-events: none; }
.wp-pick label > span { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border: 1.5px solid var(--g200); border-radius: 9px; font-size: 13px; }
.wp-pick small { color: var(--g500); display: inline !important; margin: 0 !important; }
.wp-pick input:checked + span { border-color: var(--blue); box-shadow: 0 0 0 3px #e8f3ff; font-weight: 700; }
.wp-cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.wp-cal .wd { height: 26px; border: 0; background: none; font: inherit; font-size: 12px; font-weight: 600; color: var(--g600); cursor: pointer; border-radius: 6px; }
.wp-cal .wd:hover { background: var(--g100); }
.wp-dlg .wp-cal label.wp-day { display: block; margin: 0; cursor: pointer; }
.wp-day input { position: absolute; opacity: 0; pointer-events: none; }
.wp-day > span { display: flex; align-items: center; justify-content: center; gap: 4px; height: 38px; border: 1px solid var(--g200); border-radius: 8px; font-size: 13px; font-weight: 500; user-select: none; }
.wp-day.sat > span { color: #1f5fbf; } .wp-day.sun > span, .wp-day.hol > span { color: var(--red); }
.wp-day > span:hover { border-color: var(--blue); }
.wp-day input:checked + span, .wp-day.on > span { background: var(--blue); border-color: var(--blue); color: #fff; font-weight: 700; }
.wp-day.on > span { background: #e8f3ff; color: var(--g900); }
.wp-day i { font-style: normal; display: inline-flex; }
.wp-dlg .wp-who { max-height: 170px; overflow: auto; border: 1px solid var(--g200); border-radius: 8px; padding: 10px 12px; margin-bottom: 12px; }
.wp-gen-bulk { gap: 8px; align-items: center; margin: 0 0 8px; flex-wrap: wrap; }
.wp-gen-bulk select { width: auto; min-width: 200px; }
.wp-gen-bulk input[type=number] { width: 60px; margin: 0 4px; }
.wp-gen-list { max-height: 300px; overflow: auto; border: 1px solid var(--g200); border-radius: 8px; }
table.wp-gen { width: 100%; border-collapse: collapse; font-size: 13px; }
table.wp-gen th, table.wp-gen td { padding: 6px 10px; border-bottom: 1px solid var(--g100); text-align: left; white-space: nowrap; }
table.wp-gen th { position: sticky; top: 0; background: var(--g50); font-weight: 600; color: var(--g600); z-index: 1; }
table.wp-gen select { width: auto; min-width: 170px; height: 32px; margin: 0; }
table.wp-gen input[type=number] { width: 64px; height: 32px; margin: 0; }
table.wp-gen input[type=checkbox] { width: auto; }
.wp-seq .wp-dot { min-width: 20px; margin-right: 2px; font-size: 12px; }
.wp-radio { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-bottom: 10px; }
.wp-cell-opts { display: flex; flex-direction: column; gap: 6px; }
.wp-cell-opts button { display: flex; align-items: center; gap: 8px; width: 100%; height: 42px; padding: 0 12px; border: 1.5px solid var(--g200); border-radius: 10px; background: #fff; font: inherit; font-size: 14px; color: var(--g900); cursor: pointer; text-align: left; }
.wp-cell-opts button small { color: var(--g500); margin-left: auto; }
.wp-cell-opts button:hover, .wp-cell-opts button.on { border-color: var(--blue); }
.wp-cell-opts button.on { box-shadow: 0 0 0 3px #e8f3ff; font-weight: 700; }
.wp-cell-opts button.del { justify-content: center; color: var(--red); border-style: dashed; }
.wp-cell-opts button[hidden] { display: none; }
/* 스케줄 패턴 */
.wp-pat-top { gap: 12px; flex-wrap: wrap; align-items: flex-end; margin: 0; }
.wp-pat-top label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; margin: 0; }
.wp-pat-top input.narrow { width: 110px; }
.wp-pat-days { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 8px; margin-top: 16px; }
.wp-pat-days label { display: flex; flex-direction: column; gap: 4px; margin: 0; font-size: 12px; font-weight: 600; color: var(--g600); }
.wp-pat-days select { width: 100%; margin: 0; }
.panel-h:has(> a.btn) { display: flex; align-items: center; justify-content: space-between; }
table.wp-pat-list td.r { text-align: right; white-space: nowrap; }

/* ── 직원 목록(공통 틀 1단계): 요약 카드 · 칩 조건 · 상태 표시 · 선택 막대 ── */
.sl-more { position: relative; }
.sl-more > summary { list-style: none; cursor: pointer; }
.sl-more > summary::-webkit-details-marker { display: none; }
.sl-more > summary::after { content: ""; width: 6px; height: 6px; border-right: 1.5px solid var(--g600); border-bottom: 1.5px solid var(--g600); transform: rotate(45deg) translateY(-2px); margin-left: 4px; }
.sl-menu { position: absolute; right: 0; top: 46px; z-index: 20; min-width: 190px; padding: 6px; background: #fff; border: 1px solid var(--g200); border-radius: 12px; box-shadow: 0 8px 24px rgba(0, 0, 0, .10); }
.sl-menu a { display: block; padding: 9px 12px; border-radius: 8px; color: var(--g800); font-size: 14px; text-decoration: none; white-space: nowrap; }
.sl-menu a:hover { background: var(--g50); }
.sl-menu hr { border: 0; border-top: 1px solid var(--g100); margin: 4px 0; }
.sl-cards { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.sl-card { display: block; padding: 14px 16px; background: #fff; border: 1px solid var(--g200); border-radius: 14px; text-decoration: none; }
.sl-card:hover { border-color: var(--g300); text-decoration: none; }
.sl-card.on { border-color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); }
.sl-card .t { display: block; font-size: 13px; font-weight: 500; color: var(--g600); }
.sl-card .n { display: block; margin-top: 6px; font-size: 24px; font-weight: 700; letter-spacing: -0.03em; color: var(--g900); font-variant-numeric: tabular-nums; }
.sl-card .n small { margin-left: 2px; font-size: 14px; font-weight: 600; color: var(--g700); }
.sl-card .d { display: block; min-height: 18px; margin-top: 2px; font-size: 12px; color: var(--g500); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sl-card.zero .n, .sl-card.zero .n small { color: var(--g400); }
.sl-card.warn .n { color: #d97400; }
.dz-card.flush.sl-panel { overflow: visible; }
.sl-panel table.dz-t tr:first-child th:first-child { border-top-left-radius: 0; }
.sl-panel table.dz-t tr:last-child td:first-child { border-bottom-left-radius: 16px; }
.sl-panel table.dz-t tr:last-child td:last-child { border-bottom-right-radius: 16px; }
.sl-cond { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; padding: 12px 18px; border-bottom: 1px solid var(--g200); }
.sl-cond .sp { flex: 1; }
.sl-chip { position: relative; display: inline-flex; align-items: center; height: 32px; border: 1px solid var(--g300); border-radius: 16px; background: #fff; font-size: 13px; color: var(--g700); }
.sl-chip > summary { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; list-style: none; cursor: pointer; white-space: nowrap; }
.sl-chip > summary::-webkit-details-marker { display: none; }
.sl-chip > summary::after { content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); margin-left: 2px; opacity: .7; }
.sl-chip b { font-weight: 600; color: var(--g900); }
.sl-chip.set { border-color: var(--blue); background: var(--blue-50); color: var(--blue-d); }
.sl-chip.set b { color: var(--blue-d); }
.sl-chip.dim { opacity: .55; }
.sl-chip.sel { gap: 2px; padding-left: 12px; white-space: nowrap; flex: none; }
.sl-chip.sel select { flex: none; width: auto; height: 30px; margin: 0; min-width: 0; padding: 0 26px 0 4px; border: 0; border-radius: 16px; background-color: transparent; font: inherit; font-weight: 600; color: var(--g900); cursor: pointer; }
.sl-chip.sel.set select { color: var(--blue-d); }
.sl-drop { position: absolute; left: 0; top: 38px; z-index: 20; min-width: 180px; padding: 6px; background: #fff; border: 1px solid var(--g200); border-radius: 12px; box-shadow: 0 8px 24px rgba(0, 0, 0, .10); color: var(--g800); }
.sl-drop label, .sl-drop a { margin: 0; display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 8px; font-size: 14px; color: var(--g800); white-space: nowrap; text-decoration: none; cursor: pointer; }
.sl-drop label:hover, .sl-drop a:hover { background: var(--g50); }
.sl-drop a small { margin-left: auto; padding-left: 12px; color: var(--g500); font-size: 12px; }
.sl-drop input[type=date] { height: 30px; margin-left: auto; font-size: 13px; }
.sl-find { width: 190px; height: 32px; padding: 0 14px; border: 1px solid var(--g300); border-radius: 16px; font-size: 13px; }
.sl-count { font-size: 13px; color: var(--g600); } .sl-count b { color: var(--g900); }
.sl-reset { font-size: 13px; color: var(--g500); text-decoration: none; }
.sl-reset:hover { color: var(--blue); }
table.sl-t th.ck, table.sl-t td.ck { width: 44px; padding-right: 0; }
table.sl-t input[type=checkbox], .sl-drop input[type=checkbox] { width: 16px; height: 16px; margin: 0; accent-color: var(--blue); vertical-align: middle; }
table.sl-t td { white-space: nowrap; }
table.sl-t tr:hover td { background: var(--g50); }
table.sl-t tr.sel td { background: #f3f8ff; }
table.sl-t .num { font-variant-numeric: tabular-nums; }
table.sl-t .dim { color: var(--g400); }
.sl-st { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 7px; font-size: 12px; font-weight: 600; background: var(--g100); color: var(--g700); white-space: nowrap; }
.sl-st::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .8; }
.sl-st.ok { background: #eaf8f1; color: #02885a; }
.sl-st.soon { background: var(--blue-50); color: var(--blue-d); }
.sl-st.warn { background: var(--orange-50); color: #d97400; }
.sl-st.vio { background: #f1effd; color: #6b5bd2; }
.sl-st.off { background: var(--g100); color: var(--g600); }
.sl-est { display: inline-block; width: 5px; height: 5px; margin-left: 5px; border-radius: 50%; background: var(--g400); vertical-align: middle; }
.sl-need { display: inline-flex; align-items: center; height: 24px; margin-right: 4px; padding: 0 9px; border: 1px solid #f3c98b; border-radius: 7px; background: #fff; color: #d97400; font-size: 12px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.sl-need:hover { background: var(--orange-50); text-decoration: none; }
.sl-pick { position: fixed; left: 50%; bottom: 28px; z-index: 30; display: flex; align-items: center; gap: 6px; padding: 8px 8px 8px 18px; border-radius: 14px; background: var(--g900); color: #fff; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); transform: translateX(-50%); }
.sl-pick[hidden] { display: none; }
.sl-pick b { margin-right: 10px; font-weight: 700; white-space: nowrap; }
.sl-pick a { padding: 8px 12px; border-radius: 9px; color: #fff; font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.sl-pick a[hidden] { display: none; }
.sl-pick a:hover { background: rgba(255, 255, 255, .12); }
.sl-pick i { width: 1px; height: 18px; background: rgba(255, 255, 255, .2); }
.sl-pick button { padding: 6px 10px; border: 0; background: none; color: var(--g400); font-size: 16px; cursor: pointer; }
@media (max-width: 1180px) { .sl-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ── 근태관리 2단계: 요약 카드 · 상태 띠 · 출입기록 빈 날·휴게 부족 표식 · 확정 뒤 고친 칸 · 개인별 시간 막대 · 확정 전 점검 창 ── */
.sl-more .da-up-label { display: block; position: relative; padding: 9px 12px; border-radius: 8px; color: var(--g800); font-size: 14px; cursor: pointer; margin: 0; white-space: nowrap; }
.sl-more .da-up-label:hover { background: var(--g50); }
.sl-more .da-up-label input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.da-state { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; padding: 10px 16px; background: #fff; border: 1px solid var(--g200); border-radius: 12px; font-size: 13px; color: var(--g700); }
.da-state > i { width: 8px; height: 8px; border-radius: 50%; background: var(--g400); flex: none; }
.da-state b { color: var(--g900); }
.da-state .sp { flex: 1; }
.da-state a { color: var(--blue-d); font-weight: 600; text-decoration: none; }
.da-state.done { background: #f4fbf7; border-color: #bfe7d3; }
.da-state.done > i { background: var(--green); }
.da-state b.chg { color: #6b5bd2; }
.sl-cards.da-cards { grid-template-columns: repeat(7, minmax(0, 1fr)); }
.sl-card.bad .n { color: var(--red); }
.da-panel { padding: 0; overflow: visible; }
.da-panel .sl-cond { border-bottom: 1px solid var(--g200); }
.da-panel .da-bar { margin: 0; border-bottom: 1px solid var(--blue-100); background: #f3f8ff; border-radius: 0; }
.da-panel .da-bar[hidden] { display: none; }
a.sl-chip.da-viewchip { padding: 0 12px; gap: 6px; text-decoration: none; font-weight: 600; }
.da-m.miss { background: #fff; color: var(--red); box-shadow: inset 0 0 0 1.5px #f5a0a8; }
.da-m.br { background: #fff; color: #c96a00; box-shadow: inset 0 0 0 1.5px #f3c98b; }
.da-m.chg { overflow: visible; }
.da-m.chg::before { content: ""; position: absolute; top: -2px; right: -2px; width: 7px; height: 7px; border-radius: 50%; background: #6b5bd2; border: 1.5px solid #fff; }
.da-m.plain { background: transparent; color: var(--g300); }
.panel-h .da-seg { margin-left: auto; display: inline-flex; padding: 3px; gap: 0; }
.da-seg a { padding: 4px 12px; border-radius: 7px; font-size: 13px; font-weight: 600; color: var(--g600); text-decoration: none; }
.da-seg a.on { background: var(--blue-50); color: var(--blue-d); }
.shell .panel table.da-tl { width: 100%; table-layout: fixed; border-collapse: collapse; }
.shell .panel table.da-tl th { padding: 8px 10px; background: var(--g50); border-bottom: 1px solid var(--g200); font-size: 12px; font-weight: 600; color: var(--g600); text-align: left; white-space: nowrap; }
.shell .panel table.da-tl td { padding: 5px 10px; border-bottom: 1px solid var(--g100); font-size: 13px; white-space: nowrap; vertical-align: middle; }
.shell .panel table.da-tl tr.wk td { border-top: 1px solid var(--g200); }
.shell .panel table.da-tl tr.rest td, .shell .panel table.da-tl tr.out td { background: var(--g50); color: var(--g400); }
.da-tl td.day { font-weight: 600; }
.da-tl td.day.sun, .da-tl td.day.holiday { color: var(--red); }
.da-tl td.day.sat { color: var(--blue); }
.da-tl tr.rest td.day { font-weight: 500; }
.da-tl td.r, .da-tl th.r { text-align: right; }
.da-tl td.memo { overflow: hidden; text-overflow: ellipsis; font-size: 12px; }
.da-tl td.src { font-size: 12px; color: var(--g500); font-variant-numeric: tabular-nums; }
.da-tl td.src.bad { color: var(--red); font-weight: 600; }
.da-tot { display: inline-block; min-width: 46px; padding: 3px 6px; border-radius: 6px; background: var(--g100); color: var(--g700); font-size: 12px; font-weight: 700; text-align: center; font-variant-numeric: tabular-nums; }
.da-tot.over { background: #ffe9e0; color: #d9480f; }
.da-tot.short { background: var(--orange-50); color: #c96a00; }
.da-tot.bad { background: var(--red-50); color: var(--red); }
.da-axis { position: relative; height: 14px; }
.da-axis span { position: absolute; top: 0; transform: translateX(-50%); font-size: 10.5px; font-weight: 500; color: var(--g400); }
.da-track { position: relative; height: 32px; }
.da-track i { position: absolute; display: block; font-style: normal; }
.da-track .gl { top: 0; bottom: 0; width: 1px; background: var(--g100); }
.da-track .plan { top: 4px; height: 4px; border-radius: 2px; background: var(--g300); }
.da-track .sg { top: 11px; height: 14px; }
.da-track .sg.work { background: #9fe3d4; border-radius: 5px; }
.da-track .sg.late { background: repeating-linear-gradient(135deg, #ffd7b0 0 3px, #fff 3px 6px); border-radius: 5px 0 0 5px; }
.da-track .sg.late + .sg.work { border-radius: 0 5px 5px 0; }
.da-track .sg.ot { background: #ffb38a; border-radius: 0 5px 5px 0; }
.da-track .sg.work:has(+ .sg.ot) { border-radius: 5px 0 0 5px; }
.da-track .sg.hol { background: #ffb38a; border-radius: 5px; }
.da-track .blk { top: 9px; height: 18px; border-radius: 5px; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; overflow: hidden; white-space: nowrap; }
.da-track .blk.absent { background: var(--red-50); color: var(--red); }
.da-track .blk.leave { background: var(--green-50); color: #029359; }
.da-track .blk.loa { background: repeating-linear-gradient(135deg, var(--g200) 0 5px, #fff 5px 10px); color: var(--g600); }
.da-track .blk.gap { background: #fff; color: var(--red); box-shadow: inset 0 0 0 1.5px #f5a0a8; }
.da-track .t { position: absolute; top: 25px; transform: translateX(-50%); font-size: 10px; color: var(--g500); font-variant-numeric: tabular-nums; }
.da-track .lbl { position: absolute; top: 9px; left: 4px; font-size: 12px; color: var(--g400); }
.da-track .lbl.r { left: auto; right: 4px; color: #029359; font-weight: 600; }
.da-dim { position: fixed; inset: 0; z-index: 60; display: flex; align-items: flex-start; justify-content: center; padding: 56px 16px; background: rgba(25, 31, 40, .45); overflow: auto; }
.da-dlg { position: relative; width: 720px; max-width: 100%; background: #fff; border-radius: 20px; box-shadow: 0 20px 60px rgba(0, 0, 0, .2); }
.da-dlg .hd { padding: 22px 56px 6px 26px; }
.da-dlg h2 { margin: 0 !important; font-size: 20px !important; letter-spacing: -0.03em; }
.da-dlg .hd p { margin: 6px 0 0; color: var(--g600); font-size: 13.5px; }
.da-dlg .x { position: absolute; top: 16px; right: 18px; font-size: 22px; color: var(--g500); text-decoration: none; }
.da-dlg .nums { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; padding: 14px 26px; }
.da-dlg .nums div { background: var(--g50); border-radius: 12px; padding: 10px 12px; }
.da-dlg .nums small { display: block; font-size: 12px; color: var(--g500); }
.da-dlg .nums b { font-size: 18px; font-variant-numeric: tabular-nums; }
.da-dlg h3 { display: flex; align-items: center; gap: 8px; margin: 0 !important; padding: 12px 26px 8px; font-size: 14px !important; }
.da-dlg h3 .c { font-size: 12px; font-weight: 700; border-radius: 10px; padding: 1px 8px; }
.da-dlg h3 .c.o { background: var(--orange-50); color: #c96a00; }
.da-dlg h3 .c.g { background: var(--g100); color: var(--g600); }
.da-dlg .chk { margin: 0 26px 6px; border: 1px solid var(--g200); border-radius: 12px; }
.da-dlg .chk .it { display: grid; grid-template-columns: 74px 72px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--g100); font-size: 13.5px; }
.da-dlg .chk .it:last-child { border-bottom: 0; }
.da-dlg .chk .it.none { display: block; color: var(--g500); }
.da-dlg .chk .dt { color: var(--g600); font-variant-numeric: tabular-nums; }
.da-dlg .chk .why small { display: block; margin-top: 1px; font-size: 12px; color: var(--g500); }
.da-dlg .chk a, .da-dlg .chk .da-link { font-size: 13px; font-weight: 600; color: var(--blue-d); text-decoration: none; white-space: nowrap; margin: 0; }
.da-dlg .chk form { margin: 0; }
.da-dlg .ft { display: flex; align-items: center; gap: 8px; padding: 16px 26px 22px; margin-top: 10px; border-top: 1px solid var(--g100); }
.da-dlg .ft .sp { flex: 1; }
.da-dlg .ft p { margin: 0; font-size: 12.5px; color: var(--g500); }
@media (max-width: 1280px) { .sl-cards.da-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ── 회원사 직원 화면(프로필 머리 · 퇴사 예정 띠 · 탭 · 발령 전후 표) · 퇴사 신고 요약 ── */
.ep-nav { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.ep-nav .pback { margin: 0; }
.ep-nav .sp { flex: 1; }
.ep-step { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--g600); }
.ep-step a, .ep-step i { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border: 1px solid var(--g200); border-radius: 8px; background: #fff; color: var(--g600); font-style: normal; text-decoration: none; }
.ep-step i { color: var(--g300); }
.ep-step a:hover { border-color: var(--g300); color: var(--blue); }
.ep-step b { color: var(--g900); font-variant-numeric: tabular-nums; }
.ep-prof { background: #fff; border: 1px solid var(--g200); border-radius: 16px; overflow: visible; margin-bottom: 16px; }
.ep-top { display: flex; align-items: center; gap: 16px; padding: 22px 24px 18px; }
.ep-top .sp { flex: 1; }
.ep-av { flex: none; display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 16px; background: var(--blue-50); color: var(--blue-d); font-style: normal; font-size: 20px; font-weight: 800; }
.ep-top h1 { margin: 0 !important; font-size: 22px !important; letter-spacing: -0.03em; display: flex; align-items: center; gap: 8px; }
.ep-top p { margin: 4px 0 0; color: var(--g600); font-size: 13.5px; }
.ep-top .sl-menu a.red { color: var(--red); }
.ep-facts { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--g100); }
.ep-facts > div { padding: 12px 24px; border-right: 1px solid var(--g100); min-width: 0; }
.ep-facts > div:last-child { border-right: 0; }
.ep-facts small { display: block; font-size: 12px; color: var(--g500); }
.ep-facts b { display: block; font-size: 15px; font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ep-facts b em { font-style: normal; font-weight: 500; font-size: 12.5px; color: var(--g500); margin-left: 6px; }
.ep-facts .dim, .ep-fv .dim { color: var(--g400); }
.ep-leaving { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; padding: 12px 24px; background: #fff8ef; border-top: 1px solid #f6dcb7; font-size: 13px; color: var(--g700); }
.ep-leaving b { color: var(--g900); font-variant-numeric: tabular-nums; }
.ep-leaving .t { font-weight: 700; color: #d97400; }
.ep-tabs { display: flex; gap: 24px; padding: 0 24px; border-top: 1px solid var(--g100); }
.ep-tabs a { padding: 12px 0; font-size: 15px; font-weight: 600; color: var(--g600); border-bottom: 2px solid transparent; margin-bottom: -1px; text-decoration: none; }
.ep-tabs a.on { color: var(--g900); font-weight: 700; border-bottom-color: var(--blue); }
.ep-tabs a small { font-size: 12px; color: var(--g500); margin-left: 3px; font-weight: 500; }
.ep-cols { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.ep-cols .dz-stack { display: grid; gap: 16px; }
.ep-card > h2 { display: flex; align-items: center; gap: 8px; }
.ep-card > h2 .sp { flex: 1; }
.ep-seg { display: inline-flex; background: var(--g100); border: 0; border-radius: 9px; padding: 3px; }
.ep-seg a { padding: 4px 12px; border-radius: 7px; font-size: 13px; font-weight: 600; color: var(--g600); text-decoration: none; }
.ep-seg a.on { background: #fff; color: var(--g900); box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }
table.dz-t.ep-hist td { white-space: nowrap; }
table.dz-t.ep-hist td.memo { white-space: normal; font-size: 12.5px; color: var(--g500); }
table.dz-t.ep-hist td.num, table.dz-t.ep-hist th { text-align: left; font-variant-numeric: tabular-nums; }
.ep-cols > *, .ep-cols .dz-stack > * { min-width: 0; }
#extras.dz-card { overflow-x: auto; }
.ep-cols .hx-wrap, .ep-cols .tablewrap { overflow-x: auto; }
table.dz-t.ep-hist tr.future td { background: #f8fbff; }
.ep-now, .ep-dday { margin-left: 6px; padding: 1px 6px; border-radius: 5px; font-size: 11px; font-weight: 700; }
.ep-now { color: #fff; background: var(--g800); }
.ep-dday { color: var(--blue-d); background: var(--blue-50); }
.ep-lb { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; font-size: 12px; font-weight: 600; background: var(--g100); color: var(--g700); }
.ep-lb.b { background: var(--blue-50); color: var(--blue-d); }
.ep-lb.v { background: #f1effd; color: #6b5bd2; }
.ep-lb.o { background: var(--orange-50); color: #d97400; }
.ep-lb.g { background: #eaf8f1; color: #02885a; }
.ep-lb.r { background: var(--red-50); color: var(--red); }
.ep-hist .bf { color: var(--g500); }
.ep-hist .ar { color: var(--g400); margin: 0 8px; }
.ep-hist .af { font-weight: 600; color: var(--g900); }
.ep-fv { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 20px; }
.ep-fv .w2 { grid-column: span 2; }
.ep-fv small { display: block; font-size: 12px; color: var(--g500); margin-bottom: 3px; }
.ep-fv b { font-weight: 500; }
.ep-form .ep-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 20px; }
.ep-form .ep-grid .w2 { grid-column: span 2; }
.ep-form .ep-grid label { display: block; margin: 0; font-size: 12.5px; color: var(--g600); }
.ep-form .ep-grid input { display: block; width: 100%; height: 40px; margin-top: 5px; padding: 0 12px; border: 0; border-radius: 10px; background: var(--g100); font-size: 14px; color: var(--g900); }
.ep-form .ep-grid input:focus { outline: 2px solid var(--blue-100); background: #fff; }
.ep-form .hint { font-size: 11.5px; color: var(--g500); margin-left: 4px; }
.ep-ft { display: flex; align-items: center; gap: 10px; margin-top: 16px; }
.ep-ft .sp { flex: 1; }
.ep-ft .dz-note { margin: 0; font-size: 13px; }
.ep-need { display: flex; align-items: center; gap: 10px; padding: 10px 12px; margin-bottom: 8px; border: 1px solid #f3c98b; border-radius: 10px; background: #fffaf2; font-size: 13px; color: var(--g600); text-decoration: none; }
.ep-need:last-child { margin-bottom: 0; }
.ep-need b { color: #d97400; }
.ep-need i { margin-left: auto; font-style: normal; color: var(--blue-d); font-weight: 700; }
.ep-need:hover { background: var(--orange-50); }
.ep-big { display: flex; align-items: baseline; gap: 6px; margin: 0; }
.ep-big b { font-size: 32px; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.ep-big span { color: var(--g600); }
.ep-basis { margin: 8px 0 0; padding: 10px 12px; border-radius: 10px; background: var(--g50); font-size: 13px; color: var(--g700); font-variant-numeric: tabular-nums; }
.ep-basis b { color: var(--g900); }
.rs-cols { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.rs-cols > form { margin: 0; }
.rs-box { position: sticky; top: 16px; }
.rs-box h2 { display: flex; align-items: center; gap: 8px; }
.rs-box h2 small { margin-left: auto; font-weight: 500; color: var(--g500); font-size: 12.5px; }
.rs-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--g100); }
.rs-row:last-of-type { border-bottom: 0; }
.rs-row small { color: var(--g600); font-size: 13px; }
.rs-row b { font-size: 15px; font-variant-numeric: tabular-nums; text-align: right; }
.rs-row b em { display: block; margin-top: 2px; font-style: normal; font-weight: 500; font-size: 12px; color: var(--g500); }
.rs-row b.o { color: #d97400; }
.rs-empty { margin: 0; padding: 28px 0; text-align: center; color: var(--g500); }
.rs-foot { margin: 12px 0 0; padding: 10px 12px; border-radius: 10px; background: var(--g50); font-size: 12.5px; color: var(--g600); }

/* ---------- 연차·휴가 현황(시안 적용): 카드 + 표 + 오른쪽 패널, 일괄 조정, 휴가 설정 ---------- */
.lv-split { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 14px; align-items: start; }
.lv-basis { font-size: 13px; color: var(--g600); white-space: nowrap; }
.lv-basis b { font-weight: 600; color: var(--g900); }
table.dz-t.lv-tbl td.lv-soon { color: #d97400; font-weight: 600; }
table.dz-t.lv-tbl a.psn { color: inherit; }
.lv-pane { position: sticky; top: 16px; padding-bottom: 6px; }
.lv-pane .hd { display: flex; align-items: center; gap: 10px; padding: 16px 18px; border-bottom: 1px solid var(--g200); }
.lv-pane .hd b { font-size: 16px; font-weight: 700; color: var(--g900); }
.lv-pane .hd small { color: var(--g500); font-size: 12.5px; }
.lv-pane .hd .sp { flex: 1; }
.lv-pane .hd a { font-size: 13px; font-weight: 600; color: var(--blue-d); white-space: nowrap; }
.lv-pane .big { display: flex; align-items: baseline; gap: 6px; padding: 16px 18px 6px; }
.lv-pane .big b { font-size: 30px; font-weight: 700; letter-spacing: -0.03em; color: var(--g900); font-variant-numeric: tabular-nums; }
.lv-pane .big > span { font-size: 14px; font-weight: 500; color: var(--g600); }
.lv-pane .big .tag { font-size: 11.5px; }
.lv-pane .big .tag { align-self: center; }
.lv-pane .formula { margin: 6px 18px 0; padding: 10px 12px; border-radius: 10px; background: var(--g50); font-size: 13px; line-height: 1.6; color: var(--g700); font-variant-numeric: tabular-nums; }
.lv-pane .formula b { font-weight: 600; color: var(--g900); }
.lv-pane h3 { display: flex; align-items: center; gap: 8px; margin: 16px 18px 8px; font-size: 13.5px; font-weight: 700; color: var(--g900); }
.lv-pane h3 .sp { flex: 1; }
.lv-pane h3 small { font-size: 12px; font-weight: 500; color: var(--g500); }
.lv-pane .ledger { margin: 0 18px 6px; border: 1px solid var(--g200); border-radius: 12px; overflow: hidden; }
.lv-pane .ledger .it { display: grid; grid-template-columns: 78px minmax(0, 1fr) 46px 52px; gap: 8px; align-items: center; padding: 8px 12px; border-bottom: 1px solid var(--g100); font-size: 13px; }
.lv-pane .ledger > .it:last-child { border-bottom: 0; }
.lv-pane .ledger .it.head { padding: 6px 12px; background: var(--g50); font-size: 11.5px; font-weight: 600; color: var(--g500); }
.lv-pane .ledger .it .r { text-align: right; }
.lv-pane .ledger .it.fut { background: #f8fbff; color: var(--g600); }
.lv-pane .ledger .dt { font-size: 12px; color: var(--g500); font-variant-numeric: tabular-nums; white-space: nowrap; }
.lv-pane .ledger .what { min-width: 0; color: var(--g800); }
.lv-pane .ledger .what small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11.5px; color: var(--g500); }
.lv-pane .ledger .v { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.lv-pane .ledger .v.p { color: var(--blue-d); }
.lv-pane .ledger .v.m { color: var(--g800); }
.lv-pane .ledger .v.x { color: var(--red); }
.lv-pane .ledger .bal { display: flex; align-items: center; justify-content: flex-end; gap: 4px; font-size: 12px; color: var(--g500); font-variant-numeric: tabular-nums; }
.lv-pane .ledger .bal form { margin: 0; }
.lv-pane .ledger .bal .x { width: 18px; height: 18px; padding: 0; border: 0; border-radius: 50%; background: var(--g100); color: var(--g600); font-size: 12px; line-height: 18px; cursor: pointer; }
.lv-pane .ledger .bal .x:hover { background: #fde8e8; color: var(--red); }
.lv-pane .ledger details.older { border-bottom: 1px solid var(--g100); }
.lv-pane .ledger details.older summary { padding: 7px 12px; font-size: 12px; color: var(--g500); cursor: pointer; }
.lv-pane .adj { display: flex; gap: 6px; align-items: center; margin: 0; padding: 0 18px 4px; }
.lv-pane .adj select, .lv-pane .adj input { flex: none; width: auto; height: 34px; margin: 0; padding: 0 10px; border: 0; border-radius: 9px; background: var(--g100); font: inherit; font-size: 13px; }
.lv-pane .adj input.n { width: 60px; text-align: right; }
.lv-pane .adj input.w { flex: 1; min-width: 0; }
.lv-pane .adj .btn { flex: none; }
.lv-pane .lv-other { margin: 0 18px; padding: 0; list-style: none; }
.lv-pane .lv-other li { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--g100); font-size: 13px; color: var(--g800); }
.lv-pane .lv-other li:last-child { border-bottom: 0; }
.lv-pane .lv-more { margin: 10px 18px 10px; font-size: 13px; }
.lv-pane .lv-more a { font-weight: 600; color: var(--blue-d); }

.lv-top { display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-bottom: 1px solid var(--g200); }
.lv-top .sp { flex: 1; }
.lv-top label { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-size: 13px; color: var(--g600); white-space: nowrap; }
.lv-top input[type=date] { width: auto; height: 34px; margin: 0; }
table.dz-t.lv-adjt td { vertical-align: middle; }
table.dz-t.lv-adjt .ctl { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
table.dz-t.lv-adjt select, table.dz-t.lv-adjt input { width: auto; height: 32px; margin: 0; padding: 0 10px; border: 0; border-radius: 8px; background: var(--g100); font: inherit; font-size: 13px; }
table.dz-t.lv-adjt input[name^=days_] { width: 64px; text-align: right; }
table.dz-t.lv-adjt input.w { width: 100%; min-width: 180px; }
table.dz-t.lv-adjt .after { white-space: nowrap; font-variant-numeric: tabular-nums; }
table.dz-t.lv-adjt .after .dim { color: var(--g400); }
table.dz-t.lv-adjt .after .arrow { margin: 0 6px; color: var(--g400); }
table.dz-t.lv-adjt .after b.up { color: var(--blue-d); }
table.dz-t.lv-adjt .after b.down { color: #d97400; }

.lv-cols { display: grid; grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr); gap: 16px; align-items: start; }
table.dz-t.lv-kind { border-top: 1px solid var(--g200); }
table.dz-t.lv-kind td { padding: 8px 10px; vertical-align: middle; }
table.dz-t.lv-kind th { padding: 10px; }
table.dz-t.lv-kind tr.grp td { padding: 12px 20px 4px; background: #fff; font-size: 12px; font-weight: 700; color: var(--g500); }
table.dz-t.lv-kind select, table.dz-t.lv-kind input:not([type=checkbox]) { width: auto; height: 30px; margin: 0; padding: 0 8px; border: 0; border-radius: 8px; background: var(--g100); font: inherit; font-size: 13px; }
table.dz-t.lv-kind input[name$=_name] { width: 100%; min-width: 170px; }
table.dz-t.lv-kind td .sub { display: block; margin-top: 2px; font-size: 11.5px; color: var(--g500); }
.lv-pay, .lv-lim { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.lv-pay .rate { display: inline-flex; align-items: center; gap: 2px; }
.lv-pay .rate[hidden] { display: none; }
table.dz-t.lv-kind .lv-pay .rate input, table.dz-t.lv-kind .lv-lim input { width: 48px; text-align: right; }
.lv-prev { margin-top: 14px; border: 1px solid var(--g200); border-radius: 12px; overflow: hidden; }
.lv-prev .hd { display: flex; align-items: center; gap: 8px; padding: 10px 12px; background: var(--g50); font-size: 13px; color: var(--g600); white-space: nowrap; }
.lv-prev .hd input { width: auto; height: 30px; margin: 0; }
.lv-prev .it { display: flex; justify-content: space-between; padding: 8px 12px; border-top: 1px solid var(--g100); font-size: 13px; font-variant-numeric: tabular-nums; }
.lv-prev .it small { color: var(--g500); }
.lv-prev .it b { font-weight: 700; color: var(--g900); }
.psn b .tag { margin-left: 4px; vertical-align: 1px; }
table.dz-t.lv-tbl td, table.dz-t.lv-adjt td { white-space: nowrap; }

/* ---------- 근무표(시안 적용): 근로 유형, 계획 대 소정, 칸 고르기 막대, 추가 창 미리보기, 템플릿 색·휴게 구간 ---------- */
.wp-who-sub { display: flex; align-items: center; gap: 4px; margin-top: 1px; font-size: 11.5px; color: var(--g500); white-space: nowrap; }
.wp-ty { display: inline-block; padding: 0 5px; border-radius: 4px; background: var(--g100); color: var(--g600); font-size: 10.5px; font-weight: 700; line-height: 16px; white-space: nowrap; }
.wp-ty.part { background: var(--blue-50); color: var(--blue-d); }
.wp-ty.ultra { background: #fff3e0; color: #d97400; }
table.wp-grid td.sum b { font-weight: 700; }
table.wp-grid td.wp-diff { font-weight: 700; }
table.wp-grid td.wp-diff.up { color: #d97400; }
table.wp-grid td.wp-diff.down { color: var(--g500); }
table.wp-grid td.wp-diff.zero { color: var(--g300); }
table.wp-grid td.c.sel { outline: 0; background: var(--blue-50) !important; box-shadow: inset 0 0 0 1.5px var(--blue); }
.wp-notes { display: flex; flex-direction: column; gap: 6px; padding: 10px 16px 14px; border-top: 1px solid var(--g100); }
.wp-notes > div { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--g700); }
.wp-notes i { flex: none; margin-top: 1px; padding: 1px 6px; border-radius: 4px; background: #fff3e0; color: #d97400; font-size: 11px; font-style: normal; font-weight: 700; }
.wp-notes b { font-weight: 600; color: var(--g900); }
.wp-sel { position: fixed; left: 50%; bottom: 22px; z-index: 30; display: flex; align-items: center; gap: 6px; padding: 8px 10px 8px 16px; border-radius: 14px; background: var(--g900); color: #fff; font-size: 13px; box-shadow: 0 8px 24px rgba(0, 0, 0, .18); transform: translateX(-50%); }
.wp-sel[hidden] { display: none; }
.wp-sel > b { margin-right: 6px; font-weight: 700; white-space: nowrap; }
.wp-sel button { display: inline-flex; align-items: center; height: 30px; padding: 0 10px; border: 0; border-radius: 8px; background: rgba(255, 255, 255, .12); color: #fff; font-size: 13px; cursor: pointer; white-space: nowrap; }
.wp-sel button:hover { background: rgba(255, 255, 255, .22); }
.wp-sel button .wp-dot { min-width: 20px; line-height: 20px; }
.wp-sel .div { width: 1px; height: 20px; margin: 0 2px; background: rgba(255, 255, 255, .2); }
.wp-impact { margin: 12px 0 4px; border: 1px solid var(--g200); border-radius: 12px; overflow: hidden; }
.wp-impact .hd { padding: 9px 12px; background: var(--g50); font-size: 12.5px; font-weight: 600; color: var(--g600); }
.wp-impact .it { display: grid; grid-template-columns: 90px 1fr 1fr 100px; gap: 8px; align-items: center; padding: 8px 12px; border-top: 1px solid var(--g100); font-size: 13px; font-variant-numeric: tabular-nums; }
.wp-impact .ar { margin: 0 4px; color: var(--g400); }
.wp-impact .up { color: #d97400; font-weight: 700; }

.wp-tl { border-top: 1px solid var(--g200); }
.wp-tr { display: grid; grid-template-columns: 92px 140px 170px minmax(0, 1fr) 80px 56px 92px 62px; gap: 10px; align-items: center; padding: 10px 4px; border-bottom: 1px solid var(--g100); }
.wp-tr.head { padding: 9px 4px; background: var(--g50); font-size: 12px; font-weight: 600; color: var(--g600); }
.wp-tr .num { text-align: right; font-variant-numeric: tabular-nums; }
.wp-tr input:not([type=checkbox]), .wp-tr select { width: 100%; height: 34px; margin: 0; padding: 0 10px; border: 0; border-radius: 8px; background: var(--g100); font: inherit; font-size: 13px; }
.wp-codebox { position: relative; display: inline-flex; align-items: center; gap: 6px; }
.wp-tr .wp-codebox input.wp-code { width: 40px; padding: 0; text-align: center; font-weight: 800; }
.wp-swatch { width: 22px; height: 22px; padding: 0; border: 1px solid var(--g300); border-radius: 6px; background: conic-gradient(#3182f6 0 25%, #6b5bd2 0 50%, #03a35f 0 75%, #d97400 0); cursor: pointer; }
.wp-pal { position: absolute; top: 40px; left: 0; z-index: 5; display: flex; gap: 6px; padding: 8px; border: 1px solid var(--g200); border-radius: 10px; background: #fff; box-shadow: 0 6px 18px rgba(0, 0, 0, .1); }
.wp-pal[hidden] { display: none; }
.wp-pal span { width: 22px; height: 22px; border-radius: 6px; cursor: pointer; }
.wp-time { display: flex; align-items: center; gap: 4px; }
.wp-tr .wp-time input { width: 74px; text-align: center; }
.wp-brks { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.wp-brk { display: inline-flex; align-items: center; gap: 4px; height: 32px; padding: 0 6px; border-radius: 8px; background: var(--g100); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.wp-tr .wp-brk input { width: 54px; height: 24px; padding: 0 4px; background: #fff; text-align: center; }
.wp-tr .wp-brk select { width: auto; height: 24px; padding: 0 4px; background: #fff; font-size: 12px; }
.wp-brk .x { padding: 0 2px; color: var(--g400); font-size: 15px; cursor: pointer; text-decoration: none; }
.wp-brk .x:hover { color: var(--red); }
.wp-addb { font-size: 12.5px; font-weight: 600; color: var(--blue-d); cursor: pointer; white-space: nowrap; }
.wp-chk { display: inline-flex; align-items: center; gap: 4px; margin: 0; font-size: 12.5px; color: var(--g600); white-space: nowrap; }
#wp-members .att-grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
#wp-members .att-grid label { white-space: nowrap; }
#wp-members .att-grid .wp-ty { margin-left: 4px; }

/* ---------- 근태 입력 방식(달마다 날짜별·집계표), 안내 카드, 집계표 달 띠, 바꾸기·넣기 창 ---------- */
.att-mode-lab { font-size: 12.5px; color: var(--g500); margin-right: 2px; white-space: nowrap; }
.att-mode { display: inline-flex; align-items: center; gap: 2px; padding: 3px; margin-right: 6px; border-radius: 10px; background: var(--g100); }
.att-mode button { display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 12px; border: 0; border-radius: 8px; background: transparent; color: var(--g600); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.att-mode button:hover:not(:disabled) { color: var(--g900); }
.att-mode button.on { background: #fff; color: var(--g900); box-shadow: 0 1px 2px rgba(0, 0, 0, .08); cursor: default; }
.att-mode button:disabled:not(.on) { cursor: not-allowed; }
.att-mode.off { opacity: .55; }
.att-mode i { flex: none; width: 14px; height: 14px; border: 1.5px solid currentColor; border-radius: 3px; box-sizing: border-box; opacity: .75; }
.att-mode i.ic-day { background: linear-gradient(currentColor, currentColor) 0 3.5px / 14px 1.5px no-repeat, linear-gradient(currentColor, currentColor) 0 7px / 14px 1.5px no-repeat, linear-gradient(currentColor, currentColor) 3.5px 0 / 1.5px 14px no-repeat, linear-gradient(currentColor, currentColor) 7.5px 0 / 1.5px 14px no-repeat; }
.att-mode i.ic-sheet { background: linear-gradient(currentColor, currentColor) 2px 2.5px / 7px 1.5px no-repeat, linear-gradient(currentColor, currentColor) 2px 5.5px / 7px 1.5px no-repeat, linear-gradient(currentColor, currentColor) 2px 8.5px / 4px 1.5px no-repeat; }

.att-offer { display: flex; align-items: center; gap: 16px; margin: 0 0 12px; padding: 14px 14px 14px 18px; border: 1px solid #cfe3ff; border-radius: 14px; background: linear-gradient(90deg, #f5f9ff, #fff 70%); }
.att-offer .ico { flex: none; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 1px solid #cfe3ff; border-radius: 12px; background: #fff; }
.att-offer .ico i { width: 18px; height: 18px; border: 2px solid var(--blue); border-radius: 4px; box-sizing: border-box; background: linear-gradient(var(--blue), var(--blue)) 2px 3px / 10px 2px no-repeat, linear-gradient(var(--blue), var(--blue)) 2px 7px / 10px 2px no-repeat, linear-gradient(var(--blue), var(--blue)) 2px 11px / 6px 2px no-repeat; }
.att-offer .tx { flex: 1; min-width: 0; }
.att-offer .tx b { display: block; font-size: 14.5px; font-weight: 700; color: var(--g900); }
.att-offer .tx span { display: block; margin-top: 2px; font-size: 13px; color: var(--g600); }
.att-offer .x { width: 28px; height: 28px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: var(--g400); font-size: 18px; line-height: 1; cursor: pointer; }
.att-offer .x:hover { background: var(--g100); color: var(--g600); }
.btn.soft { border: 0; background: var(--blue-50); color: var(--blue-d); }
.btn.soft:hover { background: var(--blue-100, #c9e2ff); }

.da-state.sheet { background: #f5f9ff; border-color: #cfe3ff; }
.da-state.sheet > i { background: var(--blue); }
.da-state .da-link { padding: 0; border: 0; background: none; color: var(--blue-d); font: inherit; font-weight: 600; cursor: pointer; }
.da-state a + a { margin-left: 14px; }

.att-dlg.ask-dialog { width: min(540px, 94vw); }
.att-dlg form { margin: 0; padding: 22px 24px 18px; }
.att-dlg h2 { margin: 0 0 4px; font-size: 18px; letter-spacing: -0.02em; }
.att-dlg .lead { margin: 0 0 14px; font-size: 13.5px; line-height: 1.6; color: var(--g600); }
.att-facts { margin: 0; border: 1px solid var(--g200); border-radius: 12px; overflow: hidden; }
.att-facts > div { display: flex; gap: 12px; padding: 10px 14px; border-top: 1px solid var(--g100); font-size: 13px; }
.att-facts > div:first-child { border-top: 0; }
.att-facts dt { flex: none; width: 96px; font-weight: 700; color: var(--g900); }
.att-facts dd { margin: 0; line-height: 1.55; color: var(--g700); }
.att-facts select { width: auto; height: 30px; margin: 0; }
.att-dlg-foot { justify-content: flex-end; gap: 8px; margin: 16px 0 0; }
.att-offer button.btn.soft, .att-offer button.btn.soft:hover { background: var(--blue-50); color: var(--blue-d) !important; opacity: 1; }
.att-offer button.btn.soft:hover { background: #d6e9ff; }
.da-state .da-link { text-decoration: none; }
