/* =====================================================================
   AWASOFT 인트라넷 — SafetyTalk-V2 관리자 웹 현장관리자(P 모드) 디자인 기준
   - 글꼴 Pretendard, 주 색상 #005cfc, 글자 #343a3f, 회색 단계 gray50~900 (design.css :root 와 같은 값)
   - 헤더(대메뉴 GNB) + 왼쪽 메뉴(LNB, 240/208px) + 회색 바탕 본문 위 흰 카드(그림자, 모서리 16px)
   - 페이지 머리: 24px·800 제목 + 14px 회색 설명
   - 반응형: 1440 이상 / 1439 이하 / 1024 이하(서랍 메뉴) / 600 이하(휴대폰)
   클래스 이름은 기존 화면과 같다 (화면 마크업은 그대로 두고 모양만 바꾼다)
   ===================================================================== */
:root {
  /* 회색 단계 (SafetyTalk design.css) */
  --gray50: #f8f9fc; --gray100: #f1f4f9; --gray200: #ebeff5; --gray250: #e1e6ec; --gray300: #d6dbe1; --gray400: #b9c1c9;
  --gray500: #808892; --gray600: #565c63; --gray700: #343a3f; --gray800: #23282c; --gray900: #121619;
  /* 역할 색 */
  --bg: var(--gray50); --surface: #ffffff; --surface-hover: var(--gray100); --line: var(--gray250); --line-soft: var(--gray200);
  --line-strong: var(--gray300); --ink: var(--gray700); --head: var(--gray900); --muted: var(--gray600); --cap: var(--gray500);
  --brand: #005cfc; --accent: #005cfc; --accent-deep: #0042a6; --on-accent: #ffffff; --accent-soft: #eaf1ff;
  --th-bg: #dde6f3; --th-ink: #18253a; --th-line: #c3d0e3;   /* 표 머리줄 (연한 파랑회색 — 합계줄 회색과 구분) */
  --danger: #dc2626; --danger-soft: #fdecec; --ok: #15803d; --ok-soft: #e7f6ec; --warn: #b45309; --warn-soft: #fdf3e3;
  --danger-line: #f3b4b4; --ok-line: #b6dfc3; --toast-bg: var(--gray900); --toast-ink: #ffffff; --on-danger: #ffffff;   /* 알림 상자 테두리 · 화면 아래 알림 */
  --shadow: 1px 1px 10px rgba(52, 58, 63, .1);
  --shadow-pop: 0 12px 40px rgba(18, 22, 25, .16);
  --sans: Pretendard, "Pretendard Variable", -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Consolas, "Malgun Gothic", monospace;
  /* 모서리: 카드 16 · 버튼/입력 12 · 작은 칩 8 */
  --r-card: 16px; --r-ctl: 12px; --r-sm: 8px;
  --ctl-h: 42px;
  --top: 72px; --side: 240px; --side-col: 76px;
  --pad-t: 28px; --pad-r: 28px; --pad-b: 40px; --pad-l: 38px;
  color-scheme: light;
}

/* ---------------------------------------------------------------- 다크 모드
   기본은 기기(OS·브라우저) 설정을 따르고, 상단 해·달 단추로 고르면 그 브라우저에 기억한다 (html[data-theme])
   회색 단계를 거꾸로(바탕이 어둡고 글자가 밝게) 정의해서 화면 마크업은 그대로 둔다.
   서명 칸·서명 이미지는 검은 잉크라 흰 바탕을 그대로 쓴다. 인쇄는 항상 밝게 */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --gray50: #0e1114; --gray100: #1e2329; --gray200: #262c33; --gray250: #2e353d; --gray300: #3a424b; --gray400: #56606b;
    --gray500: #8d96a0; --gray600: #aab3bc; --gray700: #d2d8de; --gray800: #e4e8ec; --gray900: #f2f4f6;
    --bg: #0e1114; --surface: #171b20; --surface-hover: #1e2329;
    --brand: #5b93ff; --accent: #5b93ff; --accent-deep: #8bb2ff; --on-accent: #0b1220; --accent-soft: #172745;
    --th-bg: #1e2938; --th-ink: #dbe5f3; --th-line: #2d3b4f;
    --danger: #f87171; --danger-soft: #3a1c1e; --danger-line: #6b2b2e; --ok: #4ade80; --ok-soft: #12301d; --ok-line: #23573a;
    --warn: #fbbf24; --warn-soft: #36290f;
    --toast-bg: #e4e8ec; --toast-ink: #121619; --on-danger: #1a0b0b;
    --shadow: 0 1px 10px rgba(0, 0, 0, .45); --shadow-pop: 0 12px 40px rgba(0, 0, 0, .6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --gray50: #0e1114; --gray100: #1e2329; --gray200: #262c33; --gray250: #2e353d; --gray300: #3a424b; --gray400: #56606b;
  --gray500: #8d96a0; --gray600: #aab3bc; --gray700: #d2d8de; --gray800: #e4e8ec; --gray900: #f2f4f6;
  --bg: #0e1114; --surface: #171b20; --surface-hover: #1e2329;
  --brand: #5b93ff; --accent: #5b93ff; --accent-deep: #8bb2ff; --on-accent: #0b1220; --accent-soft: #172745;
  --th-bg: #1e2938; --th-ink: #dbe5f3; --th-line: #2d3b4f;
  --danger: #f87171; --danger-soft: #3a1c1e; --danger-line: #6b2b2e; --ok: #4ade80; --ok-soft: #12301d; --ok-line: #23573a;
  --warn: #fbbf24; --warn-soft: #36290f;
  --toast-bg: #e4e8ec; --toast-ink: #121619; --on-danger: #1a0b0b;
  --shadow: 0 1px 10px rgba(0, 0, 0, .45); --shadow-pop: 0 12px 40px rgba(0, 0, 0, .6);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font: 400 14px/1.5 var(--sans); letter-spacing: -.02em; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
h1, h2, h3, h4 { margin: 0; text-wrap: balance; color: var(--head); }
hr { border: 0; border-top: 1px solid var(--line); margin: 16px 0; }
svg.i { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.mono { font-family: var(--mono); font-size: 12.5px; letter-spacing: 0; }
.muted { color: var(--muted); }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.nowrap { white-space: nowrap; }
.pre { white-space: pre-wrap; word-break: break-word; }
[hidden] { display: none !important; }

/* ---------- 헤더 (로고 · 대메뉴 · 사용자) ---------- */
.topbar { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 24px; height: var(--top);
  padding: 0 32px 0 24px; background: var(--surface); border-bottom: 1px solid var(--line); }
/* 로고: www.awasoft.co.kr 회사 로고(272×148) + 구분선 + "인트라넷" */
.topbar .brand { display: flex; align-items: center; gap: 12px; color: var(--head); white-space: nowrap; flex: none; }
.topbar .brand:hover { text-decoration: none; }
.brand .logo { display: block; height: 44px; width: auto; flex: none; }
.brand .brand-txt { padding-left: 12px; border-left: 1px solid var(--line); font-size: 17px; font-weight: 800; line-height: 22px; color: var(--gray900); }
.icon-btn.menu-toggle { display: none; }  /* 넓은 화면에선 숨김 — 두 클래스로 지정해 뒤에 오는 .icon-btn 의 display:grid 보다 우선 */
/* 대메뉴: 18px, 지금 메뉴는 주 색상 + 아래 막대 */
.gnb { display: flex; align-items: stretch; gap: 40px; height: 100%; margin-left: 24px; flex: none; }
.gnb a { position: relative; display: flex; align-items: center; font-size: 17px; font-weight: 600; color: var(--gray900); white-space: nowrap; }
.gnb a:hover { color: var(--accent); text-decoration: none; }
.gnb a.on { color: var(--accent); font-weight: 700; }
.gnb a.on::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--accent); }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 6px; min-width: 0; }
.top-search { width: 260px; display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; margin-right: 6px;
  border: 1px solid var(--line); border-radius: var(--r-ctl); background: var(--gray50); color: var(--cap); }
.top-search:focus-within { border-color: var(--accent); background: var(--surface); }
.top-search .i { width: 16px; height: 16px; }
.top-search input { border: 0; background: transparent; flex: 1; min-width: 0; font: inherit; color: var(--ink); outline: none; height: 100%; }
.icon-btn { position: relative; width: 40px; height: 40px; border-radius: var(--r-ctl); display: grid; place-items: center;
  color: var(--gray600); border: 1px solid transparent; background: none; cursor: pointer; flex: none; }
.icon-btn:hover { background: var(--gray100); text-decoration: none; }
.icon-btn .i { width: 20px; height: 20px; }
.icon-btn .dot { position: absolute; top: 4px; right: 3px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px;
  background: var(--danger); color: var(--on-danger); font-size: 10px; line-height: 17px; font-weight: 700; text-align: center; letter-spacing: 0; }
.me { display: flex; align-items: center; gap: 10px; padding: 0 6px 0 14px; margin-left: 4px; border-left: 1px solid var(--line);
  font-size: 15px; white-space: nowrap; color: var(--gray900); min-width: 0; }
.me:hover { text-decoration: none; }
.me-txt { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.me-txt b { font-weight: 700; }
.me-txt em { font-style: normal; color: var(--cap); font-size: 13px; margin-left: 8px; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--accent-soft); color: var(--accent);
  display: inline-grid; place-items: center; font-weight: 700; font-size: 13px; flex: none; letter-spacing: 0; }
.avatar.sm { width: 22px; height: 22px; font-size: 11px; }
.avatar.lg { width: 56px; height: 56px; font-size: 20px; }

/* ---------- 본체: 왼쪽 메뉴 + 본문 ---------- */
.shell { display: flex; min-height: calc(100vh - var(--top)); }
/* 왼쪽 메뉴 (LNB) — 흰 바탕 + 그림자, 대메뉴 제목 18px·800 + 주 색상 아이콘, 항목 15px */
.lnb { position: sticky; top: var(--top); height: calc(100vh - var(--top)); width: var(--side); flex: none; z-index: 30;
  background: var(--surface); box-shadow: var(--shadow); display: flex; flex-direction: column; transition: width .25s; }
.lnb-in { flex: 1 1 0; min-height: 0; overflow-y: auto; overflow-x: hidden; padding: 28px 16px 40px; }
.lnb-ttl { display: flex; align-items: center; gap: 8px; padding: 4px 12px 12px; font-size: 18px; font-weight: 800; color: var(--gray900); white-space: nowrap; }
.lnb-ttl .i { width: 20px; height: 20px; color: var(--accent); }
.nav { display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 9px 12px; border-radius: var(--r-ctl); color: var(--gray700);
  font-size: 15px; line-height: 1.4; white-space: nowrap; transition: background-color .12s, color .12s; }
.nav .i { color: var(--gray500); }
.nav:hover { background: var(--gray50); color: var(--gray900); text-decoration: none; }
.nav.on { background: var(--gray100); color: var(--accent); font-weight: 700; }
.nav.on .i { color: var(--accent); }
.nav span, .lnb-ttl span { overflow: hidden; text-overflow: ellipsis; }
/* 지금 대메뉴만 보인다 / 대메뉴 밖 화면(.all)은 전체를 그룹 이름(작은 회색 글씨)으로 나눠 보여 준다 */
.lnb:not(.all) .lnb-grp:not(.cur) { display: none; }
.lnb.all .lnb-grp + .lnb-grp { margin-top: 18px; }
.lnb.all .lnb-ttl { font-size: 12px; font-weight: 700; color: var(--gray500); padding: 0 12px 6px; }
.lnb.all .lnb-ttl .i { display: none; }
/* 내 정보(/mypage)는 왼쪽 메뉴 없이 (사용자 요청 2026-11-20) — 넓은 화면만, 좁은 화면의 메뉴 서랍(햄버거)은 그대로 */
@media (min-width: 1025px) { body.no-lnb .lnb { display: none; } }
/* 접기 버튼 — 메뉴 오른쪽 가장자리에 걸친 원형 화살표 */
.lnb-fold { position: absolute; top: 34px; right: -12px; z-index: 1; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 50%;
  background: var(--gray700); cursor: pointer; display: grid; place-items: center; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); }
.lnb-fold::before { content: ""; width: 6px; height: 6px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: translateX(1px) rotate(45deg); }
/* 접힌 상태: 아이콘만 (이름은 툴팁) */
.lnb-col .lnb { width: var(--side-col); }
.lnb-col .lnb-in { padding: 28px 12px 40px; }
.lnb-col .lnb .nav, .lnb-col .lnb .lnb-ttl { justify-content: center; padding-left: 0; padding-right: 0; gap: 0; }
.lnb-col .lnb .nav span, .lnb-col .lnb .lnb-ttl span { display: none; }
.lnb-col .lnb.all .lnb-ttl { display: block; height: 1px; padding: 0; margin: 0 8px 10px; background: var(--line); font-size: 0; }
.lnb-col .lnb .lnb-fold::before { transform: translateX(-1px) rotate(-135deg); }
.nav-dim { display: none; }

/* 본문 — 회색 바탕, 여백: 상·우·하 같게 + 왼쪽 10px 더 (메뉴 그림자 보정) */
.main { flex: 1 1 0; min-width: 0; padding: var(--pad-t) var(--pad-r) var(--pad-b) var(--pad-l); display: grid; gap: 20px; align-content: start; }

/* 페이지 머리: 제목 24px·800, 설명 14px 회색 */
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 20px; }
.page-head h1 { font-size: 24px; line-height: 1.3; font-weight: 800; letter-spacing: -.03em; color: var(--gray900); }
.page-head p { margin: 6px 0 0; color: var(--cap); font-size: 14px; }
.crumb { font-size: 13px; color: var(--cap); margin-bottom: 4px; }
.crumb a { color: var(--gray600); }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* ---------- 버튼·입력 (높이 42 · 모서리 12) ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: var(--ctl-h); padding: 0 20px;
  border-radius: var(--r-ctl); font: 500 14px var(--sans); letter-spacing: -.02em; border: 1px solid var(--line); background: var(--surface);
  color: var(--gray800); cursor: pointer; white-space: nowrap; flex-shrink: 0; transition: background-color .12s, border-color .12s, color .12s; }
.btn:hover { background: var(--gray50); border-color: var(--gray300); text-decoration: none; }
.btn.pri { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn.pri:hover { background: var(--accent-deep); border-color: var(--accent-deep); }
.btn.line { border-color: var(--accent); color: var(--accent); }
.btn.danger { color: var(--danger); border-color: var(--danger-line); }
.btn.danger:hover { background: var(--danger-soft); }
.btn.sm { height: 34px; padding: 0 12px; font-size: 13px; border-radius: 10px; }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.ghost:hover { background: var(--gray100); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
label.lbl, .lbl { display: block; font-size: 13px; font-weight: 600; color: var(--gray800); margin-bottom: 6px; }
.req::after { content: " *"; color: var(--danger); }
.inp, select.inp, textarea.inp { width: 100%; height: var(--ctl-h); padding: 0 14px; border: 1px solid var(--line); border-radius: var(--r-ctl);
  background: var(--surface); color: var(--ink); font: inherit; letter-spacing: inherit; transition: border-color .12s; }
select.inp { appearance: none; -webkit-appearance: none; padding-right: 38px;
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23808892' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center / 16px; }
/* 날짜·시각 칸: 아이폰(사파리)은 기본 최소 너비가 있고 width:100% 를 무시해 화면 밖으로 나간다 (사용자 요청 2026-11-24 — 모바일 기안일자).
   최소 너비를 풀고 글자는 왼쪽 정렬. 원래 너비를 정한 칸(style="max-width:…")은 그대로 */
input.inp[type="date"], input.inp[type="month"], input.inp[type="time"], input.inp[type="datetime-local"] { min-width: 0; max-width: 100%; }
/* 휴대폰·태블릿(아이폰 사파리): 기기 모양을 끄고 글자를 칸 세로 가운데로 — 그냥 두면 글자가 칸 위로 붙는다 (사용자 요청 2026-11-24).
   사파리는 글자를 안쪽 ::-webkit-date-and-time-value 에 그리므로 거기에도 높이·줄 높이를 직접 준다 (inherit 는 안 먹는 경우가 있음) */
@media (pointer: coarse) {
  input.inp[type="date"], input.inp[type="month"], input.inp[type="time"], input.inp[type="datetime-local"] {
    -webkit-appearance: none; appearance: none; display: flex; align-items: center;
    padding-top: 0; padding-bottom: 0; line-height: calc(var(--ctl-h) - 2px); }
  input.inp[type="date"]::-webkit-date-and-time-value, input.inp[type="month"]::-webkit-date-and-time-value,
  input.inp[type="time"]::-webkit-date-and-time-value, input.inp[type="datetime-local"]::-webkit-date-and-time-value {
    height: calc(var(--ctl-h) - 2px); line-height: calc(var(--ctl-h) - 2px); min-height: 0; margin: 0; padding: 0; text-align: center; }
  input.inp[type="date"]::-webkit-datetime-edit, input.inp[type="month"]::-webkit-datetime-edit,
  input.inp[type="time"]::-webkit-datetime-edit, input.inp[type="datetime-local"]::-webkit-datetime-edit { padding: 0; line-height: calc(var(--ctl-h) - 2px); }
}
input.inp[type="date"]::-webkit-date-and-time-value, input.inp[type="month"]::-webkit-date-and-time-value,
input.inp[type="time"]::-webkit-date-and-time-value, input.inp[type="datetime-local"]::-webkit-date-and-time-value { text-align: center; }   /* 날짜·시각은 가운데 (정렬 규칙, 2026-11-24) */
textarea.inp { height: auto; min-height: 96px; padding: 10px 14px; line-height: 1.6; resize: vertical; }
.inp:hover { border-color: var(--gray300); }
.inp:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(0, 92, 252, .12); }
.inp[readonly] { background: var(--gray50); }
.inp.w-auto { width: auto; }
.help { font-size: 12.5px; color: var(--cap); margin-top: 6px; }
.err { font-size: 12.5px; color: var(--danger); margin-top: 6px; }
.chk { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; cursor: pointer; }
.chk input { width: 18px; height: 18px; accent-color: var(--accent); margin: 0; }

/* ---------- 카드·표 ---------- */
/* 카드: 테두리 없이 그림자, 모서리 16 */
.card { background: var(--surface); border: 0; border-radius: var(--r-card); box-shadow: var(--shadow); min-width: 0; }
.card-h { display: flex; align-items: center; gap: 8px; padding: 18px 22px; border-bottom: 1px solid var(--line-soft); flex-wrap: wrap; }
.card-h h2, .card-h h3 { font-size: 16px; font-weight: 700; }
.card-h .more { margin-left: auto; font-size: 13px; color: var(--gray600); }
.card-b { padding: 22px; }
/* 표 상자: 긴 표는 상자 안에서 스크롤하고 머리줄은 위에 고정 (가로가 넓은 표는 좌우 스크롤)
   높이는 app.js 의 App.fitTables 가 창 높이에 맞춰 정한다 — 아래 max-height 는 스크립트가 돌기 전 기본값 */
.tbl-wrap { overflow: auto; max-height: calc(100vh - var(--top) - 24px); -webkit-overflow-scrolling: touch; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
/* 표 머리: 연회색 바탕, 진한 글씨 */
.tbl th { font-size: 13px; font-weight: 600; color: var(--gray900); text-align: left; padding: 0 14px; height: 44px; background: var(--gray100);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 10px 14px; height: 46px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover td { background: var(--gray50); }
.tbl td.t { min-width: 220px; }
.tbl td.t a { color: var(--gray900); font-weight: 500; }
.tbl .empty td { text-align: center; color: var(--cap); padding: 48px 14px; height: auto; }
.tbl th.c, .tbl td.c { text-align: center; }   /* 상태 칸 가운데 (2026-11-20) */
.tbl.form th { width: 160px; background: var(--gray50); color: var(--gray800); vertical-align: top; padding-top: 13px; height: auto; border-top: 0; }
.tbl.form td { background: var(--surface); }
/* 제목(th)·값(td)이 한 줄에 번갈아 나오는 표 (기성금 회차별 금액 등): 모든 칸에 격자선 */
.tbl.kv { table-layout: fixed; min-width: 760px; }   /* 내용 길이와 관계없이 칸 너비 일정 (colgroup 비율) */
.tbl.kv th, .tbl.kv td, .tbl.kv tr:last-child td { border: 1px solid var(--line); padding-left: 8px; padding-right: 8px; }
.tbl.kv th { background: var(--gray100); color: var(--gray900); text-align: center; }
.tbl.kv tbody tr:hover td { background: transparent; }

.pill { display: inline-block; font-size: 12px; font-weight: 600; line-height: 22px; padding: 0 9px; border-radius: var(--r-sm); white-space: nowrap; letter-spacing: -.01em; }
.p-wait { background: var(--warn-soft); color: var(--warn); }
.p-danger { background: var(--danger-soft); color: var(--danger); }
.p-ok { background: var(--ok-soft); color: var(--ok); }
.p-info { background: var(--accent-soft); color: var(--accent); }
.p-gray { background: var(--gray100); color: var(--gray600); }

/* ---------- 검색 영역 ---------- */
.search-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--line-soft); }
.search-bar .inp { width: auto; min-width: 160px; }
.search-bar .grow { flex: 1; min-width: 220px; }
.list-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 22px; font-size: 13.5px; color: var(--gray600); }
.list-meta b, .list-meta strong { color: var(--accent); }

/* ---------- 페이지 이동 ---------- */
.pager { display: flex; justify-content: center; gap: 4px; padding: 18px; flex-wrap: wrap; }
.pager a, .pager span { min-width: 34px; height: 34px; padding: 0 8px; display: inline-grid; place-items: center; border-radius: 10px;
  border: 1px solid transparent; color: var(--gray700); font-size: 13.5px; font-variant-numeric: tabular-nums; }
.pager a:hover { background: var(--gray100); text-decoration: none; }
.pager .on { background: var(--accent); color: var(--on-accent); font-weight: 700; }

/* ---------- 양식 격자 ---------- */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 22px; }
.form-grid .full { grid-column: 1 / -1; }
.form-grid > * { min-width: 0; }   /* 칸 안 내용(날짜 칸 등)이 길어도 칸 너비를 넘지 않게 (모바일 기안일자 사례, 2026-11-24) */
.form-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form-grid .grp-h { grid-column: 1 / -1; margin: 6px 0 -8px; font-size: 13px; font-weight: 700; color: var(--head); }
.form-grid .grp-h:first-child { margin-top: 0; }
.form-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 16px 22px; border-top: 1px solid var(--line-soft); flex-wrap: wrap; }
.form-foot .left { margin-right: auto; display: flex; gap: 8px; }

/* ---------- 대시보드 ---------- */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.kpi { background: var(--surface); border-radius: var(--r-card); box-shadow: var(--shadow); padding: 20px 22px; display: grid; gap: 4px; color: var(--ink); }
a.kpi:hover { box-shadow: 1px 1px 14px rgba(47, 128, 237, .18); text-decoration: none; }
.kpi .k { font-size: 14px; color: var(--gray600); font-weight: 500; }
.kpi .v { font-size: 28px; line-height: 1.2; font-weight: 800; color: var(--gray900); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.kpi .v small { font-size: 14px; font-weight: 500; color: var(--cap); margin-left: 2px; }
.kpi .s { font-size: 12.5px; color: var(--cap); }
.kpi.alert .v { color: var(--danger); }
.dash { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.col { display: grid; gap: 20px; min-width: 0; }
/* 홈: 두 칸을 5:5 로, 두 칸 높이를 맞추고 각 칸의 마지막 카드가 남는 높이를 채운다 */
.dash.dash-half { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: stretch; }
.dash.dash-half > .col { display: flex; flex-direction: column; gap: 20px; }
.dash.dash-half > .col > .card:last-child { flex: 1 1 auto; }
.list { list-style: none; margin: 0; padding: 8px 0; }
.list li { display: flex; gap: 10px; align-items: baseline; padding: 10px 22px; }
.list li:hover { background: var(--gray50); }
.list .ttl { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--gray900); }
.list .d { font-size: 12.5px; color: var(--cap); font-variant-numeric: tabular-nums; white-space: nowrap; }
.list .empty { color: var(--cap); justify-content: center; padding: 28px; }
.new { font-size: 10px; font-weight: 700; color: var(--danger); margin-left: 4px; }
.people { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 22px 18px; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 4px 10px 4px 4px; background: var(--surface); }
.chip em { font-style: normal; color: var(--cap); font-size: 12px; }
.chip button { border: 0; background: none; color: var(--cap); cursor: pointer; padding: 0 0 0 2px; font-size: 14px; }
.bar { height: 8px; border-radius: 4px; background: var(--gray200); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--accent); border-radius: 4px; }

/* ---------- 탭 ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line-soft); padding: 0 14px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { position: relative; padding: 16px 12px 14px; color: var(--gray600); font-weight: 600; font-size: 15px; white-space: nowrap; }
.tabs a:hover { color: var(--gray900); text-decoration: none; }
.tabs a.on { color: var(--accent); font-weight: 700; }
.tabs a.on::after { content: ""; position: absolute; left: 8px; right: 8px; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--accent); }
.tabs a .cnt { margin-left: 4px; font-size: 12px; color: var(--accent); }

/* ---------- 상세 보기 ---------- */
.view-head { padding: 22px; border-bottom: 1px solid var(--line-soft); display: grid; gap: 8px; }
.view-head h2 { font-size: 20px; line-height: 1.4; font-weight: 700; }
.view-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; color: var(--cap); font-size: 13px; }
.view-body { padding: 24px 22px; min-height: 160px; line-height: 1.8; word-break: break-word; }
.view-body img { max-width: 100%; height: auto; }
.view-body table { border-collapse: collapse; max-width: 100%; }
.view-body td, .view-body th { border: 1px solid var(--line); padding: 4px 8px; }
.files { list-style: none; margin: 0; padding: 14px 22px; border-top: 1px solid var(--line-soft); display: grid; gap: 8px; }
.files li { display: flex; align-items: center; gap: 8px; font-size: 13.5px; }
/* 첨부 삭제 체크: 저장 전에 지워질 파일을 줄을 그어 표시 (2026-11-20 — 체크만 하고 저장 안 해 '삭제가 안 된다'고 보이던 문제) */
.files li:has(input[type=checkbox][name^="del"]:checked) a { text-decoration: line-through; opacity: .5; }
.files li:has(input[type=checkbox][name^="del"]:checked)::after { content: "저장하면 삭제"; font-size: 12px; color: var(--danger); }
.dl { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 12px 18px; padding: 22px; }
.dl dt { color: var(--gray600); font-size: 13.5px; }
.dl dd { margin: 0; color: var(--gray900); }

/* ---------- 결재선 ---------- */
.aprv-line { display: flex; flex-wrap: wrap; gap: 0; padding: 16px 22px; }
.aprv-box { border: 1px solid var(--line); min-width: 100px; text-align: center; margin-left: -1px; background: var(--surface); }
.aprv-box:first-child { margin-left: 0; border-radius: var(--r-ctl) 0 0 var(--r-ctl); }
.aprv-box:last-child { border-radius: 0 var(--r-ctl) var(--r-ctl) 0; }
.aprv-box .h { font-size: 12px; color: var(--gray600); padding: 5px 8px; border-bottom: 1px solid var(--line); background: var(--gray100); }
.aprv-box:first-child .h { border-top-left-radius: var(--r-ctl); }
.aprv-box:last-child .h { border-top-right-radius: var(--r-ctl); }
.aprv-box .sg { height: 44px; display: flex; align-items: center; justify-content: center; padding: 4px 6px 0; }
.aprv-box .sg img { max-height: 40px; max-width: 92px; background: #fff; }
.aprv-box .n { padding: 9px 8px 2px; font-weight: 700; color: var(--gray900); }
.aprv-box .s { padding: 0 8px 8px; font-size: 12px; }
.aprv-box .s.ok { color: var(--ok); } .aprv-box .s.no { color: var(--danger); } .aprv-box .s.turn { color: var(--accent); font-weight: 700; }
.aprv-box .t { font-size: 11px; color: var(--cap); padding-bottom: 6px; font-variant-numeric: tabular-nums; }
.opinion { padding: 14px 22px 16px; border-top: 1px solid var(--line-soft); font-size: 15px; display: grid; gap: 10px; }   /* 결재 의견 — 크게 (2026-11-23) */
.line-edit { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.line-edit li { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: var(--r-ctl); padding: 8px 12px; background: var(--surface); }
.line-edit li .ord { font-family: var(--mono); font-size: 12px; color: var(--cap); width: 20px; }
.line-edit li .nm { flex: 1; }
/* 결재선 순서 끌어서 놓기 (App.dragSort, 2026-11-24) — 놓을 자리는 위·아래 파란 줄 */
.line-edit li .drag-h { cursor: grab; color: var(--cap); font-size: 18px; line-height: 1; user-select: none; -webkit-user-select: none; padding: 2px 2px; border-radius: 4px;
  touch-action: none; -webkit-touch-callout: none; }   /* 터치로 끌 때 화면 스크롤·길게 누르기 메뉴 막기 */
@media (pointer: coarse) { .line-edit li .drag-h { font-size: 22px; padding: 8px 6px; margin: -6px 0 -6px -6px; } }   /* 손가락으로 잡기 쉽게 */
.line-edit li .drag-h:hover, .line-edit li .drag-h:focus-visible { color: var(--accent); }
.line-edit li.dragging { opacity: .45; background: var(--accent-soft); }
.line-edit li.drop-before { box-shadow: 0 -3px 0 var(--accent); }
.line-edit li.drop-after { box-shadow: 0 3px 0 var(--accent); }

/* ---------- 달력 ---------- */
.cal { width: 100%; border-collapse: collapse; table-layout: fixed; }
.cal th { font-size: 12.5px; color: var(--gray600); font-weight: 600; padding: 10px 8px; background: var(--gray100); border-bottom: 1px solid var(--line); text-align: left; }
.cal td { vertical-align: top; height: 112px; border-right: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); padding: 6px 7px; }
.cal td:last-child { border-right: 0; }
.cal .dn { font-size: 12.5px; font-weight: 600; font-variant-numeric: tabular-nums; display: flex; justify-content: space-between; gap: 4px; }
.cal .dn .hn { font-weight: 400; color: var(--danger); font-size: 11px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.cal .sun .dn, .cal .hol .dn { color: var(--danger); }
.cal .sat .dn { color: var(--accent); }
.cal .out { background: var(--gray50); }
.cal .out .dn { opacity: .45; }
.cal .today { background: var(--accent-soft); }
.cal .ev { display: block; font-size: 12px; line-height: 20px; padding: 0 6px; margin-top: 3px; border-radius: 6px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--gray800); background: var(--gray100); border-left: 3px solid var(--gray400); }
.cal .ev.PSNL { border-left-color: var(--brand); }
.cal .ev.DEPT { border-left-color: var(--ok); }
.cal .ev.COMP { border-left-color: var(--warn); }
.cal .ev.VAC { border-left-color: var(--danger); background: var(--danger-soft); }
/* 부서 일간 현황 주 달력 (2026-11-20) — 날짜 칸을 누르면 그날 표, 고른 날은 테두리 */
.cal.team-week td { height: auto; min-height: 90px; }
.cal.team-week .day-link { display: block; color: inherit; text-decoration: none; padding-bottom: 4px; }
.cal.team-week .day-link:hover .dn { text-decoration: underline; }
.cal.team-week td.sel { box-shadow: inset 0 0 0 2px var(--brand); }
.cal.team-week .cnt { display: block; font-size: 15px; margin-top: 4px; font-variant-numeric: tabular-nums; }
.cal.team-week .cnt.ok { color: var(--ok); }
.mini-cal { width: 100%; border-collapse: collapse; text-align: center; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.mini-cal th { color: var(--cap); font-weight: 600; padding: 4px 0; }
.mini-cal td { padding: 5px 0; }
.mini-cal td span { display: inline-block; min-width: 26px; line-height: 24px; border-radius: 8px; }
.mini-cal .sun, .mini-cal .hol { color: var(--danger); }
.mini-cal .out { opacity: .4; }
.mini-cal .today span { background: var(--accent); color: var(--on-accent); font-weight: 700; }

/* ---------- 조직도 ---------- */
.org-tree { list-style: none; margin: 0; padding-left: 0; }
.org-tree ul { list-style: none; margin: 0; padding-left: 20px; border-left: 1px dashed var(--line); margin-left: 10px; }
.org-tree .node { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: var(--r-sm); }
.org-tree .node.dept { font-weight: 600; }
.org-tree .node a.dept-link { color: var(--gray900); }
.org-tree .node.on { background: var(--gray100); }
.org-tree .node.on a.dept-link { color: var(--accent); }
.org-tree .cnt { color: var(--cap); font-size: 12px; font-weight: 400; }
.mbr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; padding: 22px; }
.mbr { border: 1px solid var(--line-soft); border-radius: var(--r-card); padding: 16px; display: flex; gap: 12px; align-items: flex-start; background: var(--surface); }
.mbr .info { display: grid; gap: 2px; min-width: 0; font-size: 13px; }
.mbr .info b { font-size: 15px; color: var(--gray900); }

/* ---------- 편집기 ---------- */
.editor { border: 1px solid var(--line); border-radius: var(--r-ctl); background: var(--surface); overflow: hidden; }
.editor:focus-within { border-color: var(--accent); }
.editor .tb { display: flex; gap: 2px; padding: 6px; border-bottom: 1px solid var(--line-soft); flex-wrap: wrap; background: var(--gray50); }
.editor .tb button { height: 30px; min-width: 30px; padding: 0 7px; border: 1px solid transparent; border-radius: 6px; background: none; color: var(--gray800); cursor: pointer; font: 600 13px var(--sans); }
.editor .tb button:hover { background: var(--surface); border-color: var(--line); }
.editor .area { min-height: 280px; padding: 14px 16px; outline: none; line-height: 1.8; overflow-wrap: anywhere; }
.editor .area:empty::before { content: attr(data-placeholder); color: var(--cap); }

/* ---------- 대화상자·알림 ---------- */
dialog.dlg { border: 0; border-radius: var(--r-card); padding: 0; background: var(--surface); color: var(--ink); width: min(520px, calc(100vw - 32px)); box-shadow: var(--shadow-pop); }
dialog.dlg::backdrop { background: rgba(18, 22, 25, .45); }
.dlg-h { padding: 20px 22px 14px; font-weight: 700; font-size: 18px; color: var(--gray900); display: flex; align-items: center; }
.dlg-h button { margin-left: auto; }
.dlg-b { padding: 6px 22px 18px; display: grid; gap: 12px; max-height: 60vh; overflow-y: auto; }
.dlg-f { padding: 14px 22px 20px; display: flex; justify-content: flex-end; gap: 8px; }
/* 확인 상자 (App.confirm) — 아이콘·제목·본문 (2026-11-20) */
dialog.dlg.cf-dlg { width: min(440px, calc(100vw - 32px)); }
.cf-body { display: flex; gap: 16px; align-items: flex-start; padding: 26px 26px 10px; }
.cf-ico { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 20px; line-height: 1; background: var(--accent-soft); color: var(--accent); }
.cf-danger .cf-ico { background: var(--danger-soft); color: var(--danger); }
.cf-txt { min-width: 0; padding-top: 2px; }
.cf-ttl { font-size: 17px; font-weight: 700; color: var(--gray900); margin-bottom: 6px; }
.cf-msg { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--gray700); white-space: pre-line; word-break: keep-all; overflow-wrap: anywhere; }
.cf-dlg .dlg-f { padding: 16px 26px 22px; }
.cf-dlg .dlg-f .btn { min-width: 84px; }
/* 업적 승인·반려 팝업 — 머리(아이콘·제목·대상·단추)와 본문 */
.kd-head { display: flex; gap: 14px; align-items: flex-start; padding: 24px 24px 14px; border-bottom: 1px solid var(--line-soft); }
.kd-head .cf-txt { flex: 1; }
.kd-names { display: flex; flex-wrap: wrap; gap: 6px; }
.kd-names .chip { padding: 3px 10px; font-size: 13px; }
.kd-acts { display: flex; gap: 6px; flex: none; }
.kd-acts .btn { min-width: 72px; }
.kd-body { padding: 18px 24px 24px; display: grid; gap: 14px; }
.kd-body .cf-msg { font-size: 14px; }
@media (max-width: 560px) { .kd-head { flex-wrap: wrap; } .kd-acts { width: 100%; justify-content: flex-end; } }
.pick-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--r-ctl); max-height: 300px; overflow-y: auto; }
.pick-list li { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--line-soft); cursor: pointer; font-size: 13.5px; }
.pick-list li:last-child { border-bottom: 0; }
.pick-list li:hover { background: var(--gray50); }
.pick-list li.sel { background: var(--accent-soft); }
.toast { position: fixed; right: max(16px, env(safe-area-inset-right, 0px)); bottom: max(24px, env(safe-area-inset-bottom, 0px)); z-index: 60; padding: 14px 18px; border-radius: var(--r-ctl);
  background: var(--toast-bg); color: var(--toast-ink); font-size: 14px; max-width: min(420px, calc(100vw - 32px)); box-shadow: var(--shadow-pop); }
.toast.err { background: var(--danger); }
.alert-box { padding: 14px 18px; border-radius: var(--r-ctl); font-size: 14px; border: 1px solid var(--line); background: var(--gray50); }
.alert-box.err { border-color: var(--danger-line); color: var(--danger); background: var(--danger-soft); }
.alert-box.ok { border-color: var(--ok-line); color: var(--ok); background: var(--ok-soft); }

/* ---------- 로그인 ---------- */
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; background: var(--gray50); }
.login { width: min(420px, 100%); display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.login .brand { display: flex; align-items: center; justify-content: center; gap: 14px; color: var(--gray900); }
.login .brand .logo { width: min(100%, 394px); height: auto; }   /* 높이 64px 기준, 좁은 화면에서는 비율대로 줄어든다 */
.login .brand .brand-txt { padding-left: 14px; font-size: 20px; line-height: 26px; }
.login .card { padding: 32px; display: grid; gap: 18px; }
.login h1 { font-size: 24px; line-height: 1.3; font-weight: 800; }
.login .btn { width: 100%; height: 46px; font-size: 15px; }

/* 검색형 셀렉트 (select[data-search]) */
.combo { position: relative; }
.combo-list { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 30; background: var(--surface); box-shadow: var(--shadow-pop); max-height: 320px; }
.combo-list li[aria-selected="true"] { font-weight: 700; color: var(--accent); }
.search-bar .combo { min-width: 200px; }
.inp.ro { background: var(--gray50); display: flex; align-items: center; }

/* 결재 목록의 PDF 보기 아이콘 (제목 옆) */
.pdf-ico { display: inline-grid; place-items: center; width: 24px; height: 24px; margin-left: 6px; vertical-align: -6px; border-radius: 6px; color: var(--danger); }
.pdf-ico svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
.pdf-ico:hover { background: var(--danger-soft); text-decoration: none; }
/* PDF 열: 좁게, 가운데 */
.tbl th.ico-col, .tbl td.ico-col { width: 56px; text-align: center; padding-left: 4px; padding-right: 4px; }
.tbl td.ico-col .pdf-ico { margin-left: 0; }

/* 평가 점수 고르기 (1~5) — 붙어 있는 버튼 모양 라디오 */
.score-pick { display: inline-flex; border: 1px solid var(--line); border-radius: var(--r-ctl); overflow: hidden; background: var(--surface); flex: none; }
.score-pick label { position: relative; cursor: pointer; }
.score-pick label + label { border-left: 1px solid var(--line); }
.score-pick input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.score-pick span { display: grid; place-items: center; width: 40px; height: 38px; font-weight: 600; color: var(--gray700); font-variant-numeric: tabular-nums; }
.score-pick input:checked + span { background: var(--accent); color: var(--on-accent); }
.score-pick input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: -2px; }
.score-pick input:disabled { cursor: default; }
.score-pick input:disabled:not(:checked) + span { color: var(--gray400); }
.score-pick label:hover input:not(:disabled):not(:checked) + span { background: var(--gray100); }
@media (max-width: 600px) { .score-pick span { width: 44px; height: 44px; } }
/* 평가 항목 관리: 유형별 가중치 합 */
.rate-ok { color: var(--ok); font-weight: 700; }
.rate-bad { color: var(--danger); font-weight: 700; }

/* 법인카드: 1~12월 정산 칸 */
.card-months { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.card-months .month { display: grid; gap: 6px; align-content: start; justify-items: start; min-height: 112px; padding: 14px; border: 1px solid var(--line-soft);
  border-radius: var(--r-ctl); background: var(--gray50); color: var(--ink); }
.card-months .month .m { font-weight: 700; color: var(--gray900); }
.card-months .month .a { font-size: 15px; color: var(--gray900); font-variant-numeric: tabular-nums; }
.card-months a.month { background: var(--surface); border-color: var(--line); }
.card-months a.month:hover { border-color: var(--accent); text-decoration: none; box-shadow: 0 0 0 3px rgba(0, 92, 252, .08); }
@media (max-width: 1279.98px) { .card-months { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 860px) { .card-months { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 600px) { .card-months { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } .card-months .month { min-height: 96px; padding: 12px; } }
/* 법인카드: 입력 안 한 행 · 통계 막대 칸 */
.tbl tr.todo td:first-child { box-shadow: inset 3px 0 0 var(--warn); }
.stat-tbl .bar-col { width: 180px; min-width: 120px; }
.stat-tbl .bar-col .bar { display: block; height: 8px; }
.stat-tbl .bar-col .bar i { border-radius: 4px; }
.tbl tfoot th { background: var(--gray50); border-top: 1px solid var(--line); text-align: right; }
.tbl tfoot th:first-child { text-align: left; }
/* 수익현황: 합계·소계 행, 음수 */
.profit-tbl tr.row-total td { background: var(--gray100); font-weight: 700; color: var(--gray900); border-bottom: 1px solid var(--line); }
.profit-tbl tr.row-sub td { background: var(--gray50); font-weight: 600; color: var(--gray900); }
.tbl td.neg, .tbl td.neg b { color: var(--danger); }
/* 경영현황: 항목 × 부서 */
.mgmt-tbl th[scope="row"] { background: none; border-top: 0; height: auto; padding: 10px 14px; text-align: left; font-weight: 600; color: var(--gray900); white-space: nowrap; }
.mgmt-tbl tr.sub th[scope="row"] { padding-left: 34px; font-weight: 400; color: var(--gray600); }
.mgmt-tbl tr.sub td { color: var(--gray600); }
.mgmt-tbl tr.row-head td { font-weight: 600; color: var(--gray900); }
.mgmt-tbl tr.row-profit th, .mgmt-tbl tr.row-profit td { background: var(--gray100); font-weight: 700; border-top: 1px solid var(--line); }
.mgmt-tbl .col-total { background: var(--gray50); }
.mgmt-tbl thead th { white-space: nowrap; }
.mgmt-tbl .calc-mon { font-size: 12px; color: var(--cap); }
/* 매출현황: 기간별 총매출 막대 (한 계열, 기준선에 붙은 둥근 끝) · 표 */
.sales-chart { display: flex; align-items: flex-end; gap: 2px; height: 200px; padding: 8px 0 0; border-bottom: 1px solid var(--line); }
.sales-chart .col { flex: 1 1 0; min-width: 0; height: 100%; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.sales-chart .bar-wrap { flex: 1 1 auto; width: 100%; display: flex; align-items: flex-end; justify-content: center; }
.sales-chart .bar-v { width: min(56px, 70%); min-height: 1px; background: var(--accent); border-radius: 4px 4px 0 0; cursor: default; }
.sales-chart .col:hover .bar-v { background: var(--accent-deep); }
.sales-chart .lbl-x { font-size: 12px; color: var(--gray600); white-space: nowrap; margin-bottom: -22px; }
.sales-chart { margin-bottom: 24px; }
.sales-tbl th[scope="rowgroup"] { background: none; border-top: 0; text-align: left; vertical-align: middle; font-weight: 600; color: var(--gray900); padding: 0 14px; white-space: nowrap; }
.sales-tbl td.k { width: 1%; color: var(--gray500); font-size: 12.5px; padding-left: 4px; padding-right: 8px; }
.sales-tbl tr.n td { color: var(--gray600); border-bottom-color: var(--line); }
.sales-tbl tr.g td { border-bottom: 0; }
.sales-tbl tr.row-total th, .sales-tbl tr.row-total td { background: var(--gray100); font-weight: 700; }
/* 고마워요 */
.thx-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 16px; }
.thx-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 16px; margin-bottom: 16px; align-items: start; }
.thx-grid .card { margin: 0; }
.thx-kind { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.thx-kind legend { padding: 0; margin-bottom: 6px; }
@media (max-width: 900px) { .thx-grid, .thx-kpis { grid-template-columns: minmax(0, 1fr); } }
.clnt-pick summary { cursor: pointer; color: var(--gray700); font-size: 14px; }
.clnt-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 6px 14px; margin-top: 10px; max-height: 240px; overflow-y: auto; }

/* =====================================================================
   반응형 — SafetyTalk web-responsive.css 구간 기준 + 태블릿·휴대폰
   ===================================================================== */
/* 넓은 화면: 정보 목록(dl) 항목 이름 칸을 키운다 */
@media (min-width: 1920px) {
  .dl { grid-template-columns: 180px minmax(0, 1fr); }
}
/* 1599 이하: 대메뉴 간격·글자 축소, 직원 검색 칸 축소 */
@media (max-width: 1599.98px) {
  .gnb { gap: 32px; }
  .gnb a { font-size: 16px; }
  .top-search { width: 220px; }
}
/* 1439 이하: 왼쪽 메뉴 208px, 본문 여백 26/36 */
@media (max-width: 1439.98px) {
  :root { --side: 208px; --pad-t: 26px; --pad-r: 26px; --pad-b: 36px; --pad-l: 36px; }
  .topbar { padding: 0 24px 0 20px; gap: 16px; }
  .gnb { gap: 24px; margin-left: 8px; }
  .me-txt em { display: none; }
  .search-bar .inp { min-width: 140px; }
  .search-bar .grow { min-width: 180px; }
}
@media (max-width: 1279.98px) {
  .top-search { display: none; }
  .form-grid.three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-grid.three.keep3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }   /* 내 정보: 분류마다 한 줄 3칸 유지 (2026-11-23) */
  .search-bar .combo { min-width: 160px; }
  .dash, .dash.dash-half { grid-template-columns: minmax(0, 1fr); }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* 1024 이하(태블릿·휴대폰): 대메뉴 숨김 → 햄버거로 전체 메뉴 서랍 */
@media (max-width: 1024px) {
  :root { --top: 60px; --pad-t: 20px; --pad-r: 20px; --pad-b: 40px; --pad-l: 20px; }
  .topbar { padding: 0 12px; gap: 8px; }
  .icon-btn.menu-toggle { display: grid; }
  .gnb { display: none; }
  .topbar .brand { gap: 10px; }
  .brand .logo { height: 38px; }
  .brand .brand-txt { padding-left: 10px; font-size: 16px; }
  .me { border-left: 0; padding-left: 4px; margin-left: 0; }
  .me-txt { display: none; }
  /* 서랍 메뉴: 모든 대메뉴를 그룹 제목으로 나눠 보여 준다 */
  .lnb, .lnb-col .lnb { position: fixed; left: 0; top: var(--top); bottom: 0; height: auto; width: min(300px, 86vw); z-index: 45;
    transform: translateX(-100%); visibility: hidden; transition: transform .25s, visibility 0s .25s; box-shadow: var(--shadow-pop); }
  body.nav-open .lnb { transform: none; visibility: visible; transition: transform .25s; }
  .lnb-fold { display: none; }
  .lnb-col .lnb-in, .lnb-in { padding: 20px 14px max(40px, env(safe-area-inset-bottom, 0px)); }
  .lnb .lnb-grp, .lnb:not(.all) .lnb-grp:not(.cur) { display: block; }
  .lnb .lnb-grp + .lnb-grp { margin-top: 18px; }
  .lnb .lnb-ttl, .lnb-col .lnb .lnb-ttl { display: flex; justify-content: flex-start; height: auto; margin: 0; background: none;
    font-size: 12.5px; font-weight: 700; color: var(--gray500); padding: 0 12px 6px; gap: 6px; }
  .lnb .lnb-ttl .i { display: none; }
  .lnb-col .lnb .nav { justify-content: flex-start; padding: 9px 12px; gap: 10px; }
  .lnb-col .lnb .nav span, .lnb-col .lnb .lnb-ttl span { display: inline; }
  .nav-dim { display: block; position: fixed; inset: var(--top) 0 0 0; z-index: 44; background: rgba(18, 22, 25, .4); opacity: 0; visibility: hidden; transition: opacity .2s, visibility 0s .2s; }
  body.nav-open .nav-dim { opacity: 1; visibility: visible; transition: opacity .2s; }
  body.nav-open { overflow: hidden; }
  .card-h, .card-b, .search-bar, .list-meta, .form-foot, .view-head, .view-body, .files, .dl, .aprv-line, .opinion { padding-left: 18px; padding-right: 18px; }
  .page-head h1 { font-size: 22px; }
}
@media (max-width: 860px) {
  .form-grid, .form-grid.three, .form-grid.three.keep3 { grid-template-columns: minmax(0, 1fr); }
  .dl { grid-template-columns: minmax(0, 1fr); gap: 2px 0; }
  .dl dd { margin-bottom: 12px; }
  .tbl.form th { width: 110px; }
  .cal td { height: 78px; padding: 4px; }
  .cal .ev { font-size: 11px; padding: 0 4px; }
}
/* 600 이하(휴대폰): 검색 줄 입력칸은 한 줄씩, 페이지 버튼은 꽉 차게, 여백 16 */
@media (max-width: 600px) {
  :root { --ctl-h: 44px; --pad-t: 16px; --pad-r: max(16px, env(safe-area-inset-right, 0px)); --pad-b: 40px; --pad-l: max(16px, env(safe-area-inset-left, 0px)); }
  .main { gap: 16px; }
  .brand .logo { height: 34px; }
  .brand .brand-txt { font-size: 15px; }
  .page-head { align-items: stretch; }
  .page-head h1 { font-size: 20px; }
  .page-head .actions { width: 100%; }
  .page-head .actions > .btn, .page-head .actions > form, .page-head .actions > a.btn { flex: 1 1 auto; }
  .search-bar { padding: 14px 16px; gap: 8px; }
  .search-bar .inp, .search-bar .grow, .search-bar .combo { min-width: 0; flex: 1 1 100%; width: 100%; }
  .search-bar .btn { flex: 1 1 auto; }
  .card { border-radius: 14px; }
  .card-h, .card-b, .list-meta, .form-foot, .view-head, .view-body, .files, .dl, .aprv-line, .opinion { padding-left: 16px; padding-right: 16px; }
  .form-foot .btn { flex: 1 1 auto; }
  .kpis { gap: 10px; }
  .kpi { padding: 16px; }
  .kpi .v { font-size: 24px; }
  .tbl th, .tbl td { padding-left: 10px; padding-right: 10px; }
  .tbl td.t { min-width: 180px; }
  .aprv-box { min-width: 84px; }
  .tabs { padding: 0 6px; }
  .tabs a { padding: 14px 10px 12px; font-size: 14px; }
  .toast { left: 16px; right: 16px; max-width: none; }
}
@media (max-width: 420px) { .kpis { grid-template-columns: minmax(0, 1fr); } }

/* ---------- 화면별 인라인 style 보정 (휴대폰에서 인라인 고정 폭·2단 격자가 반응형 규칙을 이기지 않게) ---------- */
/* 1024 이하: 2단 화면(조직도·공통코드·부서)은 한 줄에 하나씩 */
@media (max-width: 1024px) {
  .dash[style] { grid-template-columns: minmax(0, 1fr) !important; }
}
/* 860 이하: 표 안 입력칸이 찌그러지지 않게 최소 폭을 주고, 표는 가로로 밀어서 본다 */
@media (max-width: 860px) {
  .tbl-wrap .tbl td > .inp, .tbl-wrap .tbl td > select.inp { min-width: 120px; }
  .tbl-wrap .tbl td > .inp.num { min-width: 100px; }
  .tbl-wrap .tbl td > .inp[type="date"] { min-width: 140px; }
  .tbl-wrap .tbl td > .inp[type="time"] { min-width: 100px; }
  .tbl-wrap .tbl th[style*="width"] { width: auto !important; }
  .tbl-wrap .tbl td.t { min-width: 200px; }
}
/* 600 이하(휴대폰) */
@media (max-width: 600px) {
  /* iOS 는 16px 미만 입력칸에 초점이 가면 화면을 확대한다 */
  .inp, select.inp, textarea.inp, .top-search input { font-size: 16px; }
  /* 검색 줄: 인라인 폭을 준 칸(기간·금액 범위 등)은 두 칸씩, 나머지는 한 줄씩 */
  .search-bar .inp[style*="width"] { width: auto !important; min-width: 0 !important; flex: 1 1 calc(50% - 20px) !important; }
  /* 페이지 머리의 검색(조직도 등)은 남은 폭을 채운다 */
  .page-head .actions > .inp, .page-head form.actions > .inp { flex: 1 1 auto; width: auto !important; min-width: 0; }
  /* 양식 표(제목|값)는 위아래로 쌓는다 */
  .tbl.form, .tbl.form tbody, .tbl.form tr, .tbl.form th, .tbl.form td { display: block; width: auto; }
  .tbl.form th { height: auto; padding: 12px 16px 4px; border: 0; background: none; color: var(--gray600); font-size: 12.5px; }
  .tbl.form td { padding: 0 16px 12px; height: auto; border-bottom: 1px solid var(--line-soft); }
  /* 카드 안 가로 배치(기간 ~ 기간, ○ 외 ○명)는 줄바꿈 허용 */
  .card-b [style*="display:flex"] { flex-wrap: wrap; }
  .card-b [style*="max-width"] { min-width: 0; }
  /* 결재선 상자는 가로 스크롤 */
  .aprv-line { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .aprv-box { flex: none; }
  /* 상세 보기 이미지·표가 화면 밖으로 나가지 않게 */
  .view-body { overflow-x: auto; }
  dialog.dlg { width: calc(100vw - 24px); }
  .dlg-b { max-height: 70vh; }
  .dlg-f .btn { flex: 1 1 auto; }
}
/* 400 이하: 헤더 로고 글자 말줄임, 아이콘 간격 축소 */
@media (max-width: 400px) {
  .topbar { gap: 4px; padding: 0 8px; }
  .topbar .brand { min-width: 0; gap: 8px; }
  .topbar .brand .brand-txt { min-width: 0; overflow: hidden; text-overflow: ellipsis; padding-left: 8px; }
  .top-right { gap: 2px; }
  .icon-btn { width: 38px; height: 38px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* 외주 프로젝트 현황 — 외주처 묶음 줄 · 계약 줄 */
.otsrc-tbl tr.vndr td { background: var(--gray50); border-top: 1px solid var(--line); }
.otsrc-tbl td.sub { padding-left: 28px; }
.otsrc-files a { display: block; max-width: 220px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 13px; }
/* 세금계산서 수금 — 미수금 있는 프로젝트 · 부서 소계 */
.taxbill-tbl tr.has-open td { background: var(--danger-soft); }
.taxbill-tbl tr.has-open td.open { color: var(--danger); font-weight: 700; }
.taxbill-tbl tr.row-sub td { background: var(--gray50); font-weight: 600; border-top: 1px solid var(--line); }
.taxbill-tbl tr.row-total td { background: var(--gray100); font-weight: 700; }
/* 복지 지원 — 수령 서명 이미지 · 서명 칸 · 금액 입력 */
.sign-img { height: 34px; max-width: 120px; vertical-align: middle; background: #fff; border-radius: 4px; }
.sign-pad { width: 100%; height: auto; aspect-ratio: 23 / 10; background: #fff; border: 1px dashed var(--line); border-radius: var(--r-ctl); touch-action: none; cursor: crosshair; }
.wlfr-tbl .amt-inp { width: 110px; text-align: right; }
.wlfr-tbl input[name="memo"] { min-width: 160px; }
tr.sel td { background: var(--accent-soft); }
.otsrc-up { display: inline; margin: 0; } .otsrc-up label { cursor: pointer; margin-top: 4px; }
.ctrt-tbl tr.has-miss td { background: var(--warn-soft); }
/* 홈: 넓은 화면에서는 왼쪽 메뉴를 감춘다 (위쪽 대메뉴로 이동). 1024px 이하는 ☰ 서랍 메뉴 그대로 */
@media (min-width: 1024.02px) { body.is-home .lnb { display: none; } }
/* 내 정보 — 서명 */
.sign-box { display: grid; gap: 14px; }
.sign-cur { display: flex; align-items: center; gap: 12px; min-height: 64px; }
.sign-cur img { height: 64px; max-width: 240px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-ctl); padding: 4px; }
.my-sign { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.my-sign img { height: 48px; max-width: 200px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-ctl); padding: 3px; }
/* 표 머리줄: 위에 고정 · 가운데 정렬 (사용자 요청 2026-11-18)
   thead 전체를 고정해 두 줄 머리(수금/지급 등)도 함께 붙는다. 상자(.tbl-wrap) 안이면 상자 위, 상자 밖이면 위쪽 메뉴 바로 아래 */
.tbl thead { position: sticky; top: var(--top); z-index: 3; }
.tbl-wrap .tbl thead { top: 0; }
/* 상자 스크롤 없는 표 (결재현황): 표 전체를 펼쳐 페이지로 스크롤, 머리줄은 위쪽 메뉴 바로 아래에 고정. 휴대폰 폭에서만 가로로 밀어서 본다 */
.tbl-wrap.no-scroll { overflow: visible; max-height: none !important; }
.tbl-wrap.no-scroll .tbl thead { top: var(--top); }
@media (max-width: 860px) { .tbl-wrap.no-scroll { overflow-x: auto; } .tbl-wrap.no-scroll .tbl thead { position: static; } }
/* 스크롤 없는 표에 가로 스크롤(style=overflow-x)을 주면 그 상자가 머리줄의 기준이 돼 메뉴 높이만큼 내려와 줄을 가린다 → 표 맨 위에 둔다 (2026-11-20) */
.tbl-wrap.no-scroll[style*="overflow-x"] .tbl thead { top: 0; }
/* 팝업 안 표는 팝업 위쪽에 붙인다 — 상단 메뉴 높이만큼 내려와 첫 줄을 가리던 문제 (2026-11-20) */
dialog .tbl thead, dialog .tbl-wrap .tbl thead, dialog .tbl-wrap.no-scroll .tbl thead { top: 0; }
.tbl thead th { text-align: center; background: var(--th-bg); color: var(--th-ink); font-weight: 700;
  border-top-color: var(--th-line); border-bottom-color: var(--th-line); box-shadow: inset 0 -1px 0 var(--th-line); }
/* 메일 발송 이력 */
.mail-off { background: var(--warn-soft); }
.mail-cn { white-space: pre-wrap; font-family: var(--sans); font-size: 13px; color: var(--gray700); margin: 8px 0 0; }

/* 재무팀 알림 발송 */
.ntc-cn { white-space: pre-wrap; word-break: break-word; line-height: 1.7; font-size: 14px; }
.ntc-depts { display: flex; flex-direction: column; gap: 4px; max-height: 320px; overflow: auto; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 8px 12px; }

/* 상단 알림 팝업 */
.ntcn-wrap { position: relative; }
.ntcn-pop { position: absolute; top: calc(100% + 8px); right: -8px; z-index: 50; width: 380px; max-width: calc(100vw - 32px);
  background: var(--surface); border-radius: var(--r-card); box-shadow: var(--shadow-pop); border: 1px solid var(--line-soft); overflow: hidden; }
.ntcn-pop[hidden] { display: none; }
.ntcn-h { display: flex; align-items: center; gap: 6px; padding: 12px 16px; border-bottom: 1px solid var(--line-soft); font-size: 13.5px; }
.ntcn-h b { font-size: 15px; color: var(--head); }
.ntcn-h .btn { margin-left: auto; }
.ntcn-list { max-height: min(420px, 60vh); overflow-y: auto; padding: 4px 0; }
.ntcn-list li { padding: 9px 16px; }
.ntcn-list li.unread .ttl { font-weight: 600; }
.ntcn-f { display: block; text-align: center; padding: 11px; border-top: 1px solid var(--line-soft); font-size: 13.5px; }
@media (max-width: 600px) {
  .ntcn-wrap { position: static; }
  .ntcn-pop { position: fixed; top: calc(var(--top) + 4px); left: 16px; right: 16px; width: auto; max-width: none; }
}

/* 조직구성도 (/org/chart) — 위아래 나무 그림. 끝 부서(팀)는 상위 칸 아래 세로로 쌓는다 */
.oc-tools { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 22px; border-bottom: 1px solid var(--line-soft); }
.oc-zoom { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; }
.oc-zoom #ocZoomTxt { min-width: 44px; text-align: center; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.oc-wrap { overflow: auto; padding: 24px 16px 32px; max-height: calc(100vh - var(--top) - 200px); min-height: 360px; }
/* 조직도 마우스로 끌어 움직이기 (2026-11-23) */
.oc-wrap { cursor: grab; }
.oc-wrap.panning { cursor: grabbing; user-select: none; }
.oc-wrap.panning a { cursor: grabbing; }
.oc { width: max-content; margin: 0 auto; }
.oc ul { list-style: none; margin: 0; padding: 0; }
.oc-tree, .oc-ch { display: flex; justify-content: center; position: relative; }
.oc .oc-ch { padding-top: 22px; }   /* .oc ul { padding:0 } 보다 앞서게 — 부모 칸과 가로줄 사이 간격 */
.oc-n { position: relative; display: flex; flex-direction: column; align-items: center; padding: 22px 6px 0; }
.oc-tree > .oc-n { padding-top: 0; }
/* 연결선: 형제 사이 가로줄 + 각 칸으로 내려오는 줄 */
.oc-n::before, .oc-n::after { content: ""; position: absolute; top: 0; right: 50%; width: 50%; height: 22px; border-top: 2px solid var(--line-strong); }
.oc-n::after { right: auto; left: 50%; border-left: 2px solid var(--line-strong); }
.oc-n:only-child::before { display: none; }
.oc-n:only-child::after { border-top: 0; }
.oc-tree > .oc-n::before, .oc-tree > .oc-n::after { display: none; }
.oc-n:first-child::before, .oc-n:last-child::after { border: 0; }
.oc-n:last-child::before { border-right: 2px solid var(--line-strong); border-radius: 0 8px 0 0; }
.oc-n:first-child::after { border-radius: 8px 0 0 0; }
.oc-n:only-child::after { border-radius: 0; }
.oc-ch::before { content: ""; position: absolute; top: 0; left: 50%; height: 22px; border-left: 2px solid var(--line-strong); }
/* 칸 */
.oc-card { width: 188px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; text-align: left; position: relative; z-index: 1; }
.oc-h { display: flex; align-items: baseline; gap: 6px; padding: 9px 12px; border-bottom: 1px solid var(--line-soft); }
.oc-dept { flex: 1; min-width: 0; font-weight: 700; color: var(--head); font-size: 14px; line-height: 1.35; word-break: keep-all; }
.oc-cnt { font-size: 12px; color: var(--cap); white-space: nowrap; font-variant-numeric: tabular-nums; }
.oc-card.lv0 { width: 200px; border-color: var(--accent); }
.oc-card.lv0 .oc-h { background: var(--accent); border-radius: 11px 11px 0 0; border-bottom-color: var(--accent); }
.oc-card.lv0 .oc-dept, .oc-card.lv0 .oc-cnt { color: var(--on-accent); }
.oc-card.lv1 { border-top: 4px solid var(--accent); }
.oc-card.lv2 .oc-h { background: var(--accent-soft); border-radius: 11px 11px 0 0; }
.oc-card.lv3 .oc-h { background: var(--gray50); border-radius: 11px 11px 0 0; }
.oc-head { display: flex; align-items: center; gap: 7px; padding: 8px 12px; color: var(--ink); font-size: 13px; }
.oc-head:hover, .oc-mbrs a:hover { background: var(--gray50); text-decoration: none; }
.oc-head .oc-nm { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.oc-head b { color: var(--head); }
.oc-head em, .oc-mbrs em { font-style: normal; font-size: 11.5px; font-weight: 600; color: var(--accent); white-space: nowrap; }
.oc-mbrs { padding: 4px 0 6px !important; border-top: 1px dashed var(--line-soft); }
.oc-mbrs a { display: flex; gap: 5px; align-items: baseline; padding: 3px 12px; font-size: 12.5px; color: var(--ink); white-space: nowrap; }
.oc-mbrs a b { font-weight: 500; color: var(--head); }
.oc-mbrs a span { color: var(--cap); }
.oc-mbrs em { margin-left: auto; }
.oc.no-mbr .oc-mbrs { display: none; }
/* 끝 부서를 세로로 쌓기 */
.oc-n.stack > .oc-ch { flex-direction: column; align-items: stretch; padding: 0 0 0 14px; width: 188px; }
.oc-n.stack > .oc-ch::before { display: none; }
.oc-n.stack > .oc-ch > .oc-n { padding: 10px 0 0 14px; align-items: stretch; }
.oc-n.stack > .oc-ch > .oc-n > .oc-card { width: auto; }
.oc-n.stack > .oc-ch > .oc-n::before { display: block; top: 0; left: 0; right: auto; width: 0; height: 100%; border: 0; border-left: 2px solid var(--line-strong); border-radius: 0; }
.oc-n.stack > .oc-ch > .oc-n::after { display: block; top: 30px; left: 0; width: 14px; height: 0; border: 0; border-top: 2px solid var(--line-strong); border-radius: 0; }
.oc-n.stack > .oc-ch > .oc-n:last-child::before { height: 31px; }
@media print {
  .topbar, .lnb, .no-print { display: none !important; }
  .oc-wrap { overflow: visible; max-height: none; padding: 0; }
  .card { box-shadow: none; }
  body { background: #fff; }
}

/* 직원 연락처 팝업 (a[data-user-pop]) */
dialog.user-dlg { width: min(460px, calc(100vw - 32px)); }
dialog.user-dlg .dlg-h { padding-bottom: 8px; font-size: 16px; }
dialog.user-dlg .dlg-h .icon-btn { font-size: 22px; line-height: 1; }
.user-dlg-b .card-b { padding: 8px 22px 18px; }
.user-dlg-b .dl { grid-template-columns: 96px minmax(0, 1fr); padding: 18px 22px 4px; }
.user-card .dl a { color: var(--gray900); }

/* 직원 이름 링크 (fragments/common :: userPop) — 글자는 그대로, 올리면 밑줄 */
a.u-pop { color: inherit; font-weight: inherit; text-decoration: none; cursor: pointer; }
a.u-pop:hover, a.u-pop:focus-visible { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

/* 직원 사진 (연락처 카드·내 정보) */
.user-photo { width: 88px; height: 110px; flex: none; object-fit: cover; border-radius: 12px; background: var(--gray100); border: 1px solid var(--line-soft); }
.user-photo.none { display: grid; place-items: center; font-size: 28px; font-weight: 700; color: var(--accent); background: var(--accent-soft); border: 0; }
.photo-box { display: grid; gap: 12px; }
.photo-row { display: flex; gap: 18px; align-items: flex-start; }
.photo-ctl { display: grid; gap: 10px; min-width: 0; flex: 1; }
/* 내 정보 서명 — 사진과 같은 줄 배치, 왼쪽 그림 칸 (2026-11-23) */
.sign-thumb { flex: none; width: 200px; height: 80px; object-fit: contain; background: #fff; border: 1px solid var(--line); border-radius: var(--r-ctl); padding: 4px; }
.sign-thumb.none { display: grid; place-items: center; background: transparent; color: var(--muted); font-size: 13px; border-style: dashed; }
@media (max-width: 560px) { .sign-thumb { width: 140px; height: 60px; } }
/* 사진 등록 팝업 (2026-11-20) — 미리 보기 가운데 */
dialog.photo-dlg { width: min(440px, calc(100vw - 32px)); }
.photo-prev { display: flex; justify-content: center; padding: 4px 0 6px; }
.photo-prev .user-photo { width: 120px; height: 150px; }

/* 서명 그리기 팝업 (내 정보) */
dialog.sign-dlg { width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow-y: auto; }   /* 그리기 + 이미지 올리기 (2026-11-20) */
dialog.sign-dlg form + form .dlg-b { padding-top: 14px; }
dialog.sign-dlg .dlg-b { max-height: none; overflow: visible; }

/* 조직구성도 — 대표 직속 부서(재무팀·사업개발부·영업본부): 대표 아래 줄기에서 오른쪽으로 가지를 내고 칸마다 내려 잇는다 */
.oc-top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: start; width: 100%; position: relative; z-index: 1; }
.oc-stem { justify-self: center; align-self: stretch; width: 0; min-height: 24px; }
/* 대표 아래 줄기는 칸(.oc-top) 가운데 50% 에 그린다 — 아래 하위 부서로 내려가는 줄(.oc-ch::before, left:50%)과 같은 기준이라 어긋나지 않음 (2026-11-23 줄기가 1~2px 어긋나 보이던 사례: 격자 칸 가운데와 50% 위치의 반올림이 달랐음) */
.oc-top::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; border-left: 2px solid var(--oc-line); }
.oc-side { position: relative; justify-self: start; display: flex; align-items: flex-start; gap: 16px; padding: 0 0 12px; }
.oc .oc-side-i { position: relative; padding-top: 36px; }   /* .oc ul { padding:0 } 보다 앞서게 */
/* 가지(가로줄): 첫 칸은 줄기(대표 칸 폭 200px 의 절반 왼쪽)부터, 마지막 칸은 칸 가운데까지 */
.oc-side-i::before { content: ""; position: absolute; top: 18px; left: -16px; width: calc(100% + 16px); border-top: 2px solid var(--oc-line); }
.oc-side-i:first-child::before { left: -100px; width: calc(100% + 100px); }
.oc-side-i:last-child::before { width: calc(50% + 16px); }
.oc-side-i:first-child:last-child::before { width: calc(50% + 100px); }
/* 칸으로 내려오는 줄 */
.oc-side-i::after { content: ""; position: absolute; top: 18px; left: 50%; height: 18px; border-left: 2px solid var(--oc-line); }
.oc-side-i > .oc-n > .oc-card { border-top: 4px solid var(--gray500); }

/* 조직구성도 다듬기 — 바탕은 연한 회색, 칸은 흰색에 옅은 그림자, 연결선은 한 가지 색 */
.oc-wrap { --oc-line: var(--gray300); background: var(--gray50); background-image: radial-gradient(var(--gray200) 1px, transparent 1px); background-size: 20px 20px; }
.oc-n::before, .oc-n::after, .oc-ch::before { border-color: var(--oc-line) !important; }
.oc-card { box-shadow: 0 1px 2px rgba(18, 22, 25, .06), 0 2px 8px rgba(18, 22, 25, .05); border-color: var(--line-soft); transition: box-shadow .15s, transform .15s; }
.oc-card:hover { box-shadow: 0 4px 16px rgba(18, 22, 25, .12); }
.oc-card.lv0 { box-shadow: 0 6px 20px rgba(0, 92, 255, .18); }
.oc-cnt { background: var(--gray100); color: var(--gray600); border-radius: 10px; padding: 0 7px; line-height: 18px; font-size: 11.5px; }
.oc-card.lv0 .oc-cnt { background: color-mix(in srgb, var(--on-accent) 18%, transparent); color: var(--on-accent); }
.oc-head .oc-ph { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; flex: none; background: var(--gray100); }
.oc-card.lv0 .oc-head { padding: 10px 12px; }
.oc-card.lv0 .oc-head .oc-ph, .oc-card.lv0 .oc-head .avatar { width: 32px; height: 32px; }
@media print { .oc-wrap { background: #fff; } .oc-card { box-shadow: none; } }

/* 부서별 직원 카드 사진 (org/org.html) — 세로 사진, 없으면 이름 첫 글자 */
.mbr-photo { width: 56px; height: 70px; flex: none; object-fit: cover; border-radius: 10px; background: var(--gray100); border: 1px solid var(--line-soft); }

/* 부서별 직원 — 왼쪽 부서 나무 (org/org.html .dtree): ㄴ자 연결선, 접기·펴기 */
.dtree, .dtree ul { list-style: none; margin: 0; padding: 0; border: 0; }
.dtree ul { margin-left: 13px; padding-left: 14px; }   /* 연결선이 접기 단추 가운데(13px)에서 내려오게 */
.dtree li { position: relative; }
.dtree ul > li::before { content: ""; position: absolute; left: -14px; top: 0; width: 12px; height: 18px; border-left: 1px solid var(--gray300); border-bottom: 1px solid var(--gray300); border-bottom-left-radius: 6px; }
.dtree ul > li:not(:last-child)::after { content: ""; position: absolute; left: -14px; top: 18px; bottom: 0; border-left: 1px solid var(--gray300); }
.dtree .node { gap: 4px; padding: 6px 8px 6px 2px; min-height: 36px; }
.dtree .node .dept-link { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dtree .node:hover { background: var(--gray50); }
.dtree .node.on { background: var(--accent-soft); }
.dtree .cnt { font-size: 12px; font-weight: 500; color: var(--gray600); background: var(--gray100); border-radius: 10px; padding: 0 7px; line-height: 18px; font-variant-numeric: tabular-nums; }
.dtree .node.on .cnt { background: var(--surface); color: var(--accent); }
.dt-tg { width: 22px; height: 22px; flex: none; display: grid; place-items: center; padding: 0; border: 0; border-radius: 6px; background: transparent; color: var(--gray500); cursor: pointer; }
.dt-tg:hover { background: var(--gray200); color: var(--gray900); }
.dt-tg svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .15s; }
.dtree li[aria-expanded="true"] > .node .dt-tg svg { transform: rotate(90deg); }
.dt-sp { width: 22px; flex: none; }

/* 조직구성도 직원 줄 사진 — 작은 동그라미, 없으면 이름 첫 글자 */
.oc-mbrs a { align-items: center; }
.oc-mph { width: 20px; height: 20px; flex: none; border-radius: 50%; object-fit: cover; background: var(--gray100); }
.oc-mbrs a span.oc-mph.none { display: grid; place-items: center; font-size: 10px; font-weight: 700; color: var(--accent); background: var(--accent-soft); }
.oc-mbrs a span.oc-mph.none[hidden] { display: none; }

/* 결재 일괄 내려받기 진행 표시 (approval/list.html .dl-bar) */
.dl-bar { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.dl-status { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--accent); font-weight: 500; }
.dl-bar.busy button { cursor: progress; }
.spin { width: 14px; height: 14px; flex: none; border-radius: 50%; border: 2px solid var(--accent-soft); border-top-color: var(--accent); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spin { animation-duration: 2.4s; } }

/* 법인카드 명세 여러 건 올리기 (card/main.html) */
.up-pick { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.up-tbl td { vertical-align: middle; }
.up-tbl .inp { width: 100%; min-width: 0; }
.up-tbl tr.up-check td { background: var(--warn-soft); }   /* 카드를 짐작하지 못한 줄 */

/* 화면을 팝업으로 열기 (a[data-frame-pop] — 내 정보 등) */
dialog.frame-dlg { width: min(1100px, calc(100vw - 32px)); height: min(860px, calc(100vh - 48px)); max-height: none; display: flex; flex-direction: column; overflow: hidden; }
dialog.frame-dlg:not([open]) { display: none; }
dialog.frame-dlg .dlg-h { gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line-soft); font-size: 16px; }
dialog.frame-dlg .dlg-h span { flex: 1; }
dialog.frame-dlg .dlg-h .icon-btn { font-size: 22px; line-height: 1; margin-left: 0; }
dialog.frame-dlg .frame-body { flex: 1; width: 100%; border: 0; background: var(--bg); }
@media (max-width: 600px) { dialog.frame-dlg { width: 100vw; height: 100vh; max-width: none; border-radius: 0; } }
/* 팝업 안에 열린 화면 — 상단·왼쪽 메뉴 숨김 */
html.in-frame .topbar, html.in-frame .lnb, html.in-frame .lnb-fold { display: none !important; }
html.in-frame .main { padding: 20px 24px 32px; }
html.in-frame body { background: var(--bg); }

/* 직원 연락처 카드 — 알림 보내기 */
.ntcn-send { margin: 0; padding: 14px 22px 18px; border-top: 1px solid var(--line-soft); display: grid; gap: 6px; }
.ntcn-send-row { display: flex; gap: 8px; align-items: flex-end; }
.ntcn-send-row textarea { min-height: 64px; }
.ntcn-res { margin: 0; font-size: 13px; color: var(--ok); }
.ntcn-res.err { color: var(--danger); }
.ntcn-res:empty { display: none; }

/* 표 머리 정렬 단추 (app.js App.initSortTables) */
.th-sort { all: unset; display: inline-flex; align-items: center; gap: 4px; cursor: pointer; font: inherit; color: inherit; border-radius: 4px; }
.th-sort:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.th-sort svg { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; opacity: .35; flex: none; }
.th-sort:hover svg { opacity: .7; }
th[aria-sort="ascending"] .th-sort, th[aria-sort="descending"] .th-sort { color: var(--accent); }
th[aria-sort="ascending"] .th-sort svg path, th[aria-sort="descending"] .th-sort svg path { opacity: 1; }
th[aria-sort="ascending"] .th-sort svg { opacity: 1; }
th[aria-sort="ascending"] .th-sort svg path { d: path("M3 7.5 6 4.5l3 3"); }
th[aria-sort="descending"] .th-sort svg { opacity: 1; }
th[aria-sort="descending"] .th-sort svg path { d: path("M3 4.5l3 3 3-3"); }
th.num .th-sort { flex-direction: row-reverse; }

/* 화면 색 단추 — 밝을 때 달, 어두울 때 해 */
#themeBtn .th-sun { display: none; }
#themeBtn[aria-pressed="true"] .th-sun { display: block; }
#themeBtn[aria-pressed="true"] .th-moon { display: none; }
/* 인쇄는 항상 밝게 */
@media print {
  :root, :root[data-theme="dark"], :root:not([data-theme="light"]) {
    --gray50: #f8f9fc; --gray100: #f1f4f9; --gray200: #ebeff5; --gray250: #e1e6ec; --gray300: #d6dbe1; --gray400: #b9c1c9;
    --gray500: #808892; --gray600: #565c63; --gray700: #343a3f; --gray800: #23282c; --gray900: #121619;
    --bg: #fff; --surface: #fff; --surface-hover: #f1f4f9; --accent: #005cfc; --on-accent: #fff; --accent-soft: #eaf1ff;
    --th-bg: #dde6f3; --th-ink: #18253a; --th-line: #c3d0e3; --danger: #dc2626; --ok: #15803d; --warn: #b45309; color-scheme: light;
  }
}

/* 결재 작성 — 긴급 문서 체크와 설명 */
.urgent-opt { display: grid; gap: 4px; align-content: end; }
.urgent-opt .help { margin: 0; font-size: 12.5px; line-height: 1.5; word-break: keep-all; }

/* 프로젝트 연차별 계약 표 */
.annu-tbl { width: auto; margin: 4px 0 8px; }
.annu-tbl td, .annu-tbl th { padding: 6px 10px; }
.annu-tbl tr.cur td { font-weight: 600; background: var(--accent-soft, rgba(0,0,0,.04)); }

/* 홈 알림 카드: 안 읽은 알림은 굵게 */
.home-ntcn li.unread .ttl { font-weight: 600; color: var(--ink); }
.home-ntcn li:not(.unread) .ttl { color: var(--muted); }
.card-h h2 .cnt { margin-left: 6px; font-size: 12px; font-weight: 600; color: var(--accent); }

/* 로고: 밝은 화면은 남색 글자, 다크 모드는 밝은 글자 로고로 바꿔 보인다 (흰 바탕 상자 없이) */
.brand img.logo-dark { display: none; }
:root[data-theme="dark"] .brand img.logo-light { display: none; }
:root[data-theme="dark"] .brand img.logo-dark { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .brand img.logo-light { display: none; }
  :root:not([data-theme="light"]) .brand img.logo-dark { display: block; }
}
@media print {
  .brand img.logo-light { display: block !important; }
  .brand img.logo-dark { display: none !important; }
}

/* 게시판 댓글 수 (제목 옆 작은 말풍선 숫자) */
.cmnt-cnt { display: inline-flex; align-items: center; gap: 2px; margin-left: 6px; padding: 0 6px; border-radius: 10px;
  font-size: 11px; font-weight: 700; line-height: 18px; color: var(--accent); background: var(--accent-soft); vertical-align: 1px; }
.cmnt-cnt::before { content: ""; width: 10px; height: 10px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2 3.5A1.5 1.5 0 0 1 3.5 2h9A1.5 1.5 0 0 1 14 3.5v6A1.5 1.5 0 0 1 12.5 11H7l-3 3v-3h-.5A1.5 1.5 0 0 1 2 9.5z'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2 3.5A1.5 1.5 0 0 1 3.5 2h9A1.5 1.5 0 0 1 14 3.5v6A1.5 1.5 0 0 1 12.5 11H7l-3 3v-3h-.5A1.5 1.5 0 0 1 2 9.5z'/%3E%3C/svg%3E") center/contain no-repeat; }

/* 게시글 댓글: 쓴 사람 사진 (누르면 직원 카드 — 연락처·알림 보내기) */
.cmnt-who { flex: none; display: inline-flex; border-radius: 50%; }
.cmnt-who:hover { text-decoration: none; box-shadow: 0 0 0 2px var(--accent-soft); }
.cmnt-photo { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; display: block; background: var(--gray100); }
.cmnt-ntcn { margin-left: 4px; padding: 0 8px; min-height: 24px; height: 24px; font-size: 12px; vertical-align: 1px; }
.cmnt-who .avatar.sm { width: 32px; height: 32px; font-size: 13px; }

/* 법인카드 등록 팝업 — 두 칸 배치, 소지자 검색 목록이 잘리지 않게 */
dialog.card-reg-dlg { width: min(640px, calc(100vw - 32px)); overflow: visible; }
.card-reg-dlg .dlg-b { grid-template-columns: repeat(2, minmax(0, 1fr)); max-height: none; overflow: visible; }
@media (max-width: 560px) { .card-reg-dlg .dlg-b { grid-template-columns: minmax(0, 1fr); } }
/* 끌어서 순서 바꾸기 (공통코드, 2026-11-23) */
.tbl td.drag-h { cursor: grab; color: var(--cap); text-align: center; font-size: 18px; user-select: none; -webkit-user-select: none; padding-left: 6px; padding-right: 6px;
  touch-action: none; -webkit-touch-callout: none; }   /* 휴대폰에서 손잡이를 끄는 동안 화면 스크롤·길게 누르기 메뉴 막기 (App.touchDrag, 2026-11-24) */
.tbl td.drag-h:not([draggable="true"]):empty { touch-action: auto; }   /* 최상위 부서처럼 손잡이 없는 칸은 스크롤 그대로 */
@media (pointer: coarse) { .tbl td.drag-h { font-size: 22px; min-width: 40px; } }   /* 손가락으로 잡기 쉽게 */
.tbl td.drag-h:hover { color: var(--accent); }
.tbl tr.dragging { opacity: .45; background: var(--accent-soft); }
/* 페이지 크기 고르기 (2026-11-23) — 페이지 번호 오른쪽 */
.pager .pg-size { margin-left: 12px; display: inline-flex; align-items: center; }
.pager .pg-size .inp { width: auto; height: 34px; padding-top: 0; padding-bottom: 0; font-size: 13px; }
/* 머리줄 정렬 (fragments/common :: sortTh, 2026-11-23) */
.tbl th.sort-th a { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.tbl th.sort-th a:hover { color: var(--accent); }
.tbl th.sort-th .sort-ico { font-size: 10px; color: var(--muted); opacity: .6; }
.tbl th.sort-th a.on .sort-ico { color: var(--accent); opacity: 1; }

/* 평가 결과 — 평가 기준 (2026-11-23) */
.evl-crit details { border-top: 1px solid var(--line-soft); padding: 10px 0; }
.evl-crit details:first-child { border-top: 0; }
.evl-crit summary { cursor: pointer; font-weight: 700; color: var(--head); padding: 4px 0; }
.evl-crit details > .tbl-wrap, .evl-crit details > .help, .evl-crit .crit-type { margin-top: 10px; }
.evl-crit .crit-type h3 { font-size: 14px; margin: 14px 0 4px; color: var(--head); }
.evl-crit .crit-items { margin: 0; padding-left: 18px; }
.evl-crit .crit-items li { margin: 2px 0; }
/* 평가 기준은 결과 표 바로 위 (2026-11-23) */
.evl-crit { padding: 0 22px 12px; }
.evl-crit-h { font-size: 15px; margin: 10px 0 2px; color: var(--head); }
.evl-crit-h .muted { font-weight: 400; font-size: 13px; }
/* 평가 입력 — 업적·역량·다면 영역 제목 (2026-11-23) */
.evl-sec-h { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin: 10px 2px -4px; padding-bottom: 6px; border-bottom: 2px solid var(--accent); }
.evl-sec-h h2 { margin: 0; font-size: 17px; color: var(--head); }
.evl-sec-h b { margin-left: 4px; color: var(--accent); }
/* 휴일근무 시각 고르기 — 시 + 10분 단위 (2026-11-23) */
.hm-pick { display: inline-flex; gap: 4px; align-items: center; }
.hm-pick select.inp { width: auto; padding-right: 26px; }
/* 결재 의견 — 반려 의견은 눈에 띄게 (2026-11-23) */
.opinion .opinion-h { font-size: 17px; font-weight: 700; color: var(--head); }
.opinion .opn-item { display: grid; gap: 6px; padding: 12px 16px; border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 10px; background: var(--surface); }
.opinion .opn-who { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 15px; }
.opinion .opn-who .pill { margin: 0; }
.opinion .opn-who .muted { font-size: 13px; }
.opinion .opn-text { font-size: 17px; line-height: 1.6; color: var(--head); font-weight: 500; }
.opinion .opn-reject { border-left-color: var(--danger); background: var(--danger-soft); }
.opinion .opn-reject .opn-text { color: var(--danger); font-weight: 600; }
/* 가로 스크롤 표의 떠 있는 머리줄 (app.js App.floatHeads, 2026-11-23 경영현황) */
.float-head { position: fixed; z-index: 25; overflow: hidden; pointer-events: none; box-shadow: 0 2px 6px rgba(18, 22, 25, .08); }
.float-head .tbl { margin: 0; table-layout: fixed; }
.float-head .tbl thead { position: static; }
@media print { .float-head { display: none !important; } }

/* 홈 게시판 탭 (2026-11-24) — 카드 머리에 탭, 오른쪽 '전체 보기' */
.home-bbs .card-h { gap: 8px; }
.home-bbs .home-bbs-tabs { flex: 1 1 auto; min-width: 0; padding: 0; border-bottom: 0; }
.home-bbs .home-bbs-tabs a { padding: 6px 10px 12px; font-size: 14.5px; }
.home-bbs .home-bbs-tabs a.on::after { left: 6px; right: 6px; }
.home-bbs [role="tabpanel"] { border-top: 1px solid var(--line-soft); }
.home-bbs .card-h { flex-wrap: nowrap; }

/* 연도 달력 (App.initYearPicks, 2026-11-24) — 단추를 감싼 .ypk-wrap 기준으로 아래에 12년 격자 */
.ypk-wrap { position: relative; display: inline-block; }
.year-pick { width: auto; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 600; }
.year-pick::after { content: ""; width: 16px; height: 16px; opacity: .6; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M3 10h18M8 3v4M16 3v4'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M3 10h18M8 3v4M16 3v4'/%3E%3C/svg%3E") center / contain no-repeat; }
.ypk-pop { position: absolute; top: calc(100% + 6px); left: 0; z-index: 60; width: 248px; padding: 10px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-ctl); box-shadow: 0 8px 24px rgba(0,0,0,.14); }
.ypk-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; font-size: 14px; }
.ypk-g { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.ypk-g button { height: 36px; border: 1px solid var(--line-soft); border-radius: 8px; background: var(--surface); color: var(--ink); font: inherit; font-size: 14px; cursor: pointer; }
.ypk-g button:hover, .ypk-g button:focus-visible { border-color: var(--accent); color: var(--accent); outline: none; }
.ypk-g button.now { font-weight: 700; }
.ypk-g button.on { background: var(--accent); border-color: var(--accent); color: #fff; }

/* 입력칸 안 글자도 표와 같은 정렬 규칙 (사용자 요청 2026-11-24): 숫자·금액 → 오른쪽, 날짜·시각·고르기(코드)·전화번호·번호 → 가운데, 글·고르기 칸(select) → 왼쪽.
   번호 칸은 inputmode="numeric" 이면서 num 이 아닌 칸(사업자번호·사번 등). 왼쪽으로 두려면 class="l" */
input.inp[type="date"], input.inp[type="month"], input.inp[type="time"], input.inp[type="datetime-local"], input.inp[type="week"],
input.inp[type="tel"], input.inp[inputmode="tel"], input.inp[inputmode="numeric"]:not(.num):not([data-amount]):not([data-amt]) { text-align: center; }
select.inp { text-align: left; text-align-last: left; }   /* 고르기 칸 글자는 왼쪽 (사용자 요청 2026-11-24) */
input.inp.num, input.inp[type="number"], input.inp[inputmode="decimal"], input.inp[data-amount], input.inp[data-amt] { text-align: right; }   /* data-amount: 금액 입력칸(쉼표 넣기) */
.inp.l, select.inp.l { text-align: left; text-align-last: left; }
/* 가운데 칸 (결재 양식 직원 이름 — 기안자·파견자·출장자, 사용자 요청 2026-11-24). 보기 칸(div.inp, flex)도 가운데 */
.inp.c { text-align: center; justify-content: center; }
/* 복지 지원 대상 골라 만들기 (2026-11-24) — 후보 직원 체크 목록, 길면 상자 안에서 스크롤 */
.trgt-list { list-style: none; margin: 0; padding: 6px 10px; max-height: 320px; overflow-y: auto; border: 1px solid var(--line); border-radius: var(--r-ctl); display: grid; gap: 2px; }
.trgt-list li { padding: 4px 0; }
.trgt-list li[hidden] { display: none; }
/* 단가 파일 띠 (2026-11-24) — 수익현황·경영현황·프로젝트·인건비 단가 위쪽, 올라온 단가 파일 정보와 올리기·내리기 */
.lp-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 12px 16px; margin-bottom: 16px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); font-size: 13.5px; }
.lp-bar.off { background: var(--warn-soft); border-color: transparent; }
.lp-bar .lp-act { margin-left: auto; display: inline-flex; gap: 6px; align-items: center; }
/* 파일 고르기 칸 (2026-11-24 단가 파일 올리기 캡처) — .inp 의 고정 높이·위아래 여백 0 때문에 기본 '파일 선택' 단추가 칸 위쪽에 붙어 깨져 보였다.
   모든 파일 칸을 같은 높이에 단추를 가운데로, 단추 모양은 .btn 과 비슷하게 */
input[type=file].inp { height: var(--ctl-h); padding: calc((var(--ctl-h) - 32px) / 2) 6px; line-height: 30px; cursor: pointer; color: var(--muted); font-size: 13.5px; }
input[type=file].inp::file-selector-button { height: 30px; margin: 0 10px 0 0; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--r-sm);
  background: var(--gray100); color: var(--ink); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; transition: background .12s; }
input[type=file].inp:hover::file-selector-button { background: var(--gray200); }

/* 화면 사용 방법 안내 상자 (사용자 요청 2026-11-25 — 부서 관리·사용자 관리). <details class="page-guide"><summary>사용 방법</summary><ul>…</ul></details> */
.page-guide { margin: 0 0 16px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--accent-soft); font-size: 13px; }
.page-guide summary { cursor: pointer; font-weight: 700; }
.page-guide ul { margin: 8px 0 0; padding-left: 18px; display: grid; gap: 4px; line-height: 1.55; }
