/* 사내 회계 — 공통 모양. 위하고(Smart A 10) 화면과 같은 색·크기(캡처 바탕화면\위하고\화면분석 에서 뽑음).
 * 색은 아래 토큰만 쓴다. 어두운 테마 없음(위하고에 없음). 화면 전용 모양은 App.addStyle(id, css) 로.
 * 크기 기준 = 1568×726 창에서 찍은 위하고(추가캡처_20261125)의 CSS px: 맨 위 줄 44 · 제목 줄 39 · 표 머리 24 · 표 줄 23 · 오른쪽 패널 175. */

:root {
  color-scheme: light;
  /* 위하고 색 */
  --wh-blue: #2858c4;        /* 제목 줄·기수 알약 */
  --wh-blue-dark: #1e44a4;   /* 제목 줄 왼쪽 전체메뉴 네모 */
  --wh-blue-line: #5a82e0;   /* 제목 줄 단추 테두리 */
  --wh-accent: #1494ff;      /* 고른 토글 단추(기간/월별, 연도) */
  --wh-tab-line: #3c94c4;    /* 고른 탭 밑줄 */
  --wh-search: #686868;      /* [조회] 단추 */
  --wh-head: #f0f0f0;        /* 표 머리·오른쪽 패널 바탕 */
  --wh-rowhead: #eeeeee;     /* 표 왼쪽 줄 머리 칸 */
  --wh-grid-bg: #fcfcfc;     /* 표 빈 바탕 */
  --wh-grid-line: #e2e2e2;   /* 표 칸 선 */
  --wh-head-line: #cfcfcf;   /* 표 머리 칸 선 */
  --wh-grid-top: #000000;    /* 표 위 굵은 선 */
  --wh-sel-row: #dcf4ff;     /* 고른 줄 */
  --wh-sel-cell: #b0e0ff;    /* 고른 칸 */
  --wh-sum: #acccf8;         /* 소계·합계 줄 */
  --wh-sec: #9cd8ec;         /* 재무제표 큰 구분 줄(자산 등) 이름 칸 */
  --wh-sec-amt: #c4e8e4;     /* 큰 구분 줄 금액 칸 */
  --wh-grp: #f4fcec;         /* 재무제표 I.·II. 줄 */
  --wh-box-line: #e0e0e0;    /* 조회 조건 상자 테두리 */
  --wh-input-line: #c8c8c8;
  --wh-focus: #1c90fb;
  --wh-ro: #f5f5f5;          /* 읽기 전용 입력칸 */

  /* 예전 이름(화면 파일이 씀) — 위하고 색으로 */
  --paper: #ffffff;
  --card: #ffffff;
  --sub: var(--wh-head);
  --hover: #f5f5f5;
  --ink: #222222;
  --ink-2: #444444;
  --ink-3: #888888;
  --line: #d5d5d5;
  --line-2: var(--wh-grid-line);
  --primary: var(--wh-focus);
  --primary-hov: #0f7de0;
  --primary-tint: var(--wh-sel-row);
  --primary-ink: #1a6fd1;
  --pos: #1a6fd1;
  --neg: #e5262c;
  --neg-soft: #ffeeee;
  --warn: #e07b00;
  --warn-soft: #fff5e5;

  --fs-title: 15px; --fs-h2: 13px; --fs-body: 12px; --fs-sub: 12px; --fs-micro: 11px;
  --s1: 2px; --s2: 4px; --s3: 6px; --s4: 10px; --s5: 14px; --s6: 20px;
  --top-h: 44px; --title-h: 39px; --side-w: 175px; --row-h: 23px; --head-h: 24px;
  --font: "Malgun Gothic", "맑은 고딕", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: #ffffff;
  color: var(--ink);
  font-family: var(--font);
  font-size: 12px;
  line-height: 1.4;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}
[hidden] { display: none !important; }
a { color: var(--primary-ink); }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-size: 13px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.grow { flex: 1; }
.muted { color: var(--ink-3); }
.num { font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }

/* ---------- 단추·입력(위하고: 작고 네모, 흰 바탕 회색 테두리) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 3px;
  height: 22px; padding: 0 8px; border-radius: 2px;
  border: 1px solid var(--wh-input-line); background: #fff; color: #333;
  cursor: pointer; white-space: nowrap; font-weight: normal; font-size: 12px; line-height: 1;
}
.btn:hover { background: #f5f5f5; }
.btn:disabled { opacity: .5; cursor: default; }
.btn.primary { background: var(--wh-accent); border-color: var(--wh-accent); color: #fff; }
.btn.primary:hover { background: #0b86ee; }
.btn.danger { color: var(--neg); }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.ghost:hover { background: #f0f0f0; }
.btn.small { height: 20px; padding: 0 6px; font-size: 11px; }
.btn.wide { width: 100%; height: 34px; font-size: 13px; }
.btn.on { background: var(--wh-accent); border-color: var(--wh-accent); color: #fff; }
/* [조회] 단추: 진회색(조회 조건 줄 끝) */
.btn.search, .toolbar .btn.primary { background: var(--wh-search); border-color: var(--wh-search); color: #fff; }
.btn.search:hover, .toolbar .btn.primary:hover { background: #555; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border: 1px solid var(--wh-input-line); border-radius: 2px; background: #fff;
  cursor: pointer; font-size: 11px; color: #666; padding: 0;
}
:focus-visible { outline: 1px solid var(--wh-focus); outline-offset: 1px; }

input, select, textarea {
  height: 22px; padding: 0 5px; border-radius: 0;
  border: 1px solid var(--wh-input-line); background: #fff; min-width: 0; font-size: 12px;
}
select { padding-right: 2px; }
/* 날짜 칸(위하고: 작은 글, 회색 테두리 칸 + 달력 아이콘) */
input[type="date"], input[type="month"] { font-size: 11px; color: #333; padding: 0 3px; border-color: #d0d0d0; }
input[type="date"]::-webkit-calendar-picker-indicator, input[type="month"]::-webkit-calendar-picker-indicator { margin-left: 2px; opacity: .6; }
input[type="checkbox"], input[type="radio"] { height: auto; margin: 0 3px 0 0; vertical-align: middle; }
input[readonly], input:disabled, select:disabled, textarea[readonly] { background: var(--wh-ro); color: #666; }
textarea { height: auto; padding: 3px 5px; line-height: 1.4; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--wh-focus); }
input::placeholder, textarea::placeholder { color: #b5b5b5; }
.field { display: inline-flex; flex-direction: row; align-items: center; gap: 6px; font-size: 12px; color: #555; min-width: 0; }
.field > span:first-child { white-space: nowrap; }
.field input, .field select, .field textarea { color: var(--ink); }
/* 입력 양식(grid2): 이름 칸을 오른쪽 맞춤 고정 폭으로(위하고 거래처등록 오른쪽 양식) */
.grid2 .field > span:first-child { flex: 0 0 96px; white-space: normal; text-align: right; }
.grid2 .field > input, .grid2 .field > select, .grid2 .field > textarea { flex: 1; }

.msg { margin: 4px 0; font-size: 12px; }
.msg.err { color: var(--neg); }
.msg.ok { color: var(--pos); }

.badge {
  display: inline-flex; align-items: center; height: 18px; padding: 0 7px;
  border-radius: 9px; font-size: 11px; font-weight: normal; line-height: 1;
  background: #fff; color: #555; border: 1px solid #cfcfcf; white-space: nowrap;
}
.badge.warn { color: var(--warn); border-color: #f0c08a; }
.badge.neg { color: var(--neg); border-color: #f2a5a7; }
.badge.info { color: var(--primary-ink); border-color: #9cc8f5; }

/* ---------- 로그인(2026-11-26 대표: 자커 로고를 쓴 움직이는 화면. 로그인한 뒤 업무 화면과는 따로) ----------
 * 색: 로고 그대로(청록 #1297a5 · 진청 #027093 · 회색 #808185). 밝은 바탕.
 * 움직임은 transform·opacity 만(오래된 PC 에서도 부드럽게). 처음 상태는 @keyframes 의 from 에만 두고,
 * 끝 상태 = 보통 모양이라 움직임을 끄면(prefers-reduced-motion) 바로 끝 모습으로 보인다.
 * 0~1.2초: 카드가 떠오르고 로고 조각 4개가 바깥에서 차례로 들어와 맞춰짐 → 'ZARKER' 글자 → 칸·단추가 차례로.
 * 그 뒤: 로고 위로 빛이 9초마다 한 번 지나가고, 바탕의 빛 3개·큰 로고 표식이 20~40초 주기로 천천히 흐른다. */
.login {
  --zk-teal: #1297a5; --zk-navy: #027093; --zk-gray: #808185;
  --zk-ink: #1d2b36; --zk-sub: #66727c; --zk-line: #8a979f; /* 칸 테두리: 흰 바탕 위 3:1 */
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100%; display: flex; flex-direction: column;
  background: linear-gradient(160deg, #eef5f8 0%, #fbfdfe 42%, #ffffff 58%, #edf4f7 100%);
  color: var(--zk-ink);
}
.zk-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* 바탕 */
.login-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.lbg-glow { position: absolute; border-radius: 50%; will-change: transform; }
.lbg-glow.g1 { width: 720px; height: 720px; left: -260px; top: -300px;
  background: radial-gradient(circle, rgba(18, 151, 165, .20) 0%, rgba(18, 151, 165, 0) 66%);
  animation: lbgDrift1 26s ease-in-out infinite alternate; }
.lbg-glow.g2 { width: 820px; height: 820px; right: -320px; bottom: -380px;
  background: radial-gradient(circle, rgba(2, 112, 147, .17) 0%, rgba(2, 112, 147, 0) 66%);
  animation: lbgDrift2 32s ease-in-out infinite alternate; }
.lbg-glow.g3 { width: 520px; height: 520px; left: 52%; top: 46%;
  background: radial-gradient(circle, rgba(128, 129, 133, .10) 0%, rgba(128, 129, 133, 0) 66%);
  animation: lbgDrift3 38s ease-in-out infinite alternate; }
.lbg-mark { position: absolute; will-change: transform; }
.lbg-mark.m1 { width: 560px; height: 710px; right: -120px; top: 50%; margin-top: -355px; opacity: .06;
  animation: lbgFloat1 40s ease-in-out infinite alternate; }
.lbg-mark.m2 { width: 220px; height: 279px; left: 6%; bottom: -70px; opacity: .05;
  animation: lbgFloat2 30s ease-in-out infinite alternate; }
/* 왼쪽 위 45도 가는 줄(로고 조각 방향) — 움직이지 않음 */
.lbg-lines { position: absolute; left: -10%; top: -10%; width: 55%; height: 60%; opacity: .5;
  background: repeating-linear-gradient(-45deg, rgba(2, 112, 147, .05) 0 1px, transparent 1px 22px);
  -webkit-mask-image: radial-gradient(ellipse at 20% 20%, #000 0%, transparent 70%);
  mask-image: radial-gradient(ellipse at 20% 20%, #000 0%, transparent 70%); }

@keyframes lbgDrift1 { from { transform: translate(0, 0) scale(1); } to { transform: translate(120px, 80px) scale(1.12); } }
@keyframes lbgDrift2 { from { transform: translate(0, 0) scale(1.05); } to { transform: translate(-140px, -90px) scale(.95); } }
@keyframes lbgDrift3 { from { transform: translate(-50%, -50%) scale(.9); } to { transform: translate(-80%, -30%) scale(1.15); } }
@keyframes lbgFloat1 { from { transform: translate(0, 0) rotate(0deg); } to { transform: translate(-40px, 24px) rotate(-6deg); } }
@keyframes lbgFloat2 { from { transform: translate(0, 0) rotate(0deg); } to { transform: translate(30px, -40px) rotate(8deg); } }
.lbg-glow.g3 { transform: translate(-50%, -50%); }

/* 가운데 카드 */
.login-main { flex: 1; display: flex; align-items: center; justify-content: center; padding: 40px 16px 24px; }
.login-card {
  position: relative; width: 100%; max-width: 384px;
  display: flex; flex-direction: column; gap: 12px;
  padding: 34px 34px 26px; border-radius: 14px;
  background: rgba(255, 255, 255, .94);
  border: 1px solid rgba(2, 112, 147, .10);
  box-shadow: 0 1px 2px rgba(16, 42, 58, .06), 0 18px 48px rgba(2, 112, 147, .13);
  animation: lcRise .7s cubic-bezier(.2, .75, .25, 1) backwards;
}
.login-card::before { /* 카드 위 가는 청록→진청 띠 */
  content: ""; position: absolute; left: 22px; right: 22px; top: 0; height: 3px; border-radius: 0 0 3px 3px;
  background: linear-gradient(90deg, var(--zk-teal), var(--zk-navy));
}
.login-brand { display: flex; justify-content: center; margin: 2px 0 6px; }
.zk-logo { display: block; width: 224px; height: auto; aspect-ratio: 410 / 147; overflow: visible; }
.zk-p { transform-box: fill-box; transform-origin: 50% 50%; animation: .8s cubic-bezier(.16, .84, .3, 1) backwards; }
.zk-p1 { animation-name: zkIn1; animation-delay: .15s; }
.zk-p2 { animation-name: zkIn2; animation-delay: .30s; }
.zk-p3 { animation-name: zkIn3; animation-delay: .45s; }
.zk-p4 { animation-name: zkIn4; animation-delay: .60s; }
.zk-word { animation: zkWord .7s cubic-bezier(.2, .75, .25, 1) .85s backwards; }
.zk-sheen { opacity: 0; transform: translateX(-60px) skewX(-20deg); animation: zkSheen 9s ease-in-out 1.6s infinite; }
@keyframes zkIn1 { from { opacity: 0; transform: translate(-34px, -34px) rotate(-12deg); } }
@keyframes zkIn2 { from { opacity: 0; transform: translate(34px, -30px) rotate(10deg); } }
@keyframes zkIn3 { from { opacity: 0; transform: translate(-36px, 22px) rotate(12deg); } }
@keyframes zkIn4 { from { opacity: 0; transform: translate(32px, 34px) rotate(-10deg); } }
@keyframes zkWord { from { opacity: 0; transform: translateX(-16px); } }
@keyframes zkSheen {
  0% { opacity: 0; transform: translateX(-60px) skewX(-20deg); }
  3% { opacity: 1; }
  /* 기울기(skewX) 때문에 아래쪽이 왼쪽으로 약 55 밀리므로 230 까지 가야 표식 밖으로 완전히 나간 뒤 꺼진다 */
  16% { opacity: 1; transform: translateX(230px) skewX(-20deg); }
  17%, 100% { opacity: 0; transform: translateX(230px) skewX(-20deg); }
}
@keyframes lcRise { from { opacity: 0; transform: translateY(22px) scale(.985); } }
@keyframes lcUp { from { opacity: 0; transform: translateY(10px); } }

.login-title { margin: 0; text-align: center; font-size: 18px; font-weight: bold; letter-spacing: -.2px; color: var(--zk-ink); }
.login-sub { margin: -6px 0 6px; text-align: center; font-size: 12.5px; color: var(--zk-sub); }
.login-title, .login-sub { animation: lcUp .55s cubic-bezier(.2, .75, .25, 1) .55s backwards; }
.login-card .lf:nth-of-type(1) { animation: lcUp .55s cubic-bezier(.2, .75, .25, 1) .65s backwards; }
.login-card .lf:nth-of-type(2) { animation: lcUp .55s cubic-bezier(.2, .75, .25, 1) .75s backwards; }
.login-card #login-btn { animation: lcUp .55s cubic-bezier(.2, .75, .25, 1) .85s backwards; }
.login-help, .login-copy { animation: lcUp .55s cubic-bezier(.2, .75, .25, 1) .95s backwards; }

/* 아이디·비밀번호 칸 */
.login-card .field { display: flex; flex-direction: column; align-items: stretch; gap: 5px; font-size: 12.5px; color: #44525c; }
.login-card .field > span:first-child { font-weight: bold; }
.lf-box { position: relative; display: block; }
.lf-ic { position: absolute; left: 11px; top: 50%; width: 18px; height: 18px; margin-top: -9px; color: #7d8a93; pointer-events: none; transition: color .15s; }
.login-card input {
  width: 100%; height: 42px; padding: 0 12px 0 38px; font-size: 14px; color: var(--zk-ink);
  border: 1px solid var(--zk-line); border-radius: 8px; background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.login-card input:hover { border-color: #6f7f89; }
.login-card input:focus { border-color: var(--zk-teal); box-shadow: 0 0 0 3px rgba(18, 151, 165, .18); outline: none; }
.lf-box:focus-within .lf-ic { color: var(--zk-teal); }

/* 오류 글: 붉은 상자 + 짧게 흔들림(보일 때마다) */
.login-card .msg.err {
  margin: 0; padding: 8px 10px; border-radius: 6px; font-size: 12.5px; line-height: 1.45;
  color: #c4161c; background: #fff1f1; border: 1px solid #f6caca;
  animation: lcShake .42s cubic-bezier(.36, .07, .19, .97) backwards;
}
/* 알림 글(로그아웃했습니다 등): 파란 상자, 흔들림 없이 살짝 나타남 */
.login-card .msg.ok {
  margin: 0; padding: 8px 10px; border-radius: 6px; font-size: 12.5px; line-height: 1.45;
  color: #0b5f7c; background: #eef8fa; border: 1px solid #c4e4ea;
  animation: lcUp .35s ease-out backwards;
}
@keyframes lcShake {
  10%, 90% { transform: translateX(-1px); }
  20%, 80% { transform: translateX(2px); }
  30%, 50%, 70% { transform: translateX(-4px); }
  40%, 60% { transform: translateX(4px); }
}

/* 로그인 단추: 진청→청록, 올리면 빛이 한 번 지나감 */
.login-card .btn.primary {
  position: relative; overflow: hidden; height: 44px; margin-top: 4px; border-radius: 8px; border: 0;
  font-size: 15px; font-weight: bold; letter-spacing: 1px; color: #fff;
  background: linear-gradient(100deg, var(--zk-navy) 0%, #0a7f9c 55%, var(--zk-teal) 100%);
  box-shadow: 0 6px 16px rgba(2, 112, 147, .25);
  transition: transform .15s, box-shadow .15s, opacity .15s;
}
.login-card .btn.primary::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 40%;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .35), rgba(255, 255, 255, 0));
  transform: translateX(-120%) skewX(-20deg); pointer-events: none;
}
.login-card .btn.primary:hover { background: linear-gradient(100deg, var(--zk-navy) 0%, #0a7f9c 55%, var(--zk-teal) 100%); transform: translateY(-1px); box-shadow: 0 9px 22px rgba(2, 112, 147, .30); }
.login-card .btn.primary:hover::after { transform: translateX(320%) skewX(-20deg); transition: transform .7s ease; }
.login-card .btn.primary:active { transform: translateY(0); box-shadow: 0 4px 10px rgba(2, 112, 147, .25); }
.login-card .btn.primary:focus-visible { outline: 2px solid var(--zk-navy); outline-offset: 2px; }
.login-card .btn.primary:disabled { opacity: .65; cursor: progress; transform: none; }

.login-help { margin: 4px 0 0; padding-top: 12px; border-top: 1px solid #edf1f3; text-align: center; font-size: 12px; line-height: 1.6; color: var(--zk-sub); }

/* 카드 하나 안의 바뀌는 칸(로그인 · 가입 신청 · 신청 끝). 처음 로그인 칸은 위 움직임 그대로,
 * 한 번 바꾼 뒤(.lc-swapped)에는 칸 안의 차례 움직임 없이 칸 전체가 살짝 떠오름(오류 상자의 흔들림은 그대로) */
.lc-pane { display: flex; flex-direction: column; gap: 12px; }
.login-card.lc-swapped .lc-pane > :not(.msg) { animation: none; }
.login-card.lc-swapped .lc-pane { animation: lcUp .35s ease-out backwards; }
/* 가입 신청 칸은 칸이 많아 1568×726 창에서도 굴러가지 않게 조금 촘촘히(로고도 이 칸에서만 조금 작게) */
#login-card[data-pane="signup"] .login-brand { margin: 0 0 2px; }
#login-card[data-pane="signup"] .zk-logo { width: 168px; }
#signup-form { gap: 8px; }
#signup-form .login-sub { margin: -4px 0 4px; }
#signup-form input { height: 36px; }
.lc-link {
  padding: 0; border: 0; background: none; font: inherit; font-weight: bold; color: var(--zk-navy);
  text-decoration: underline; text-underline-offset: 2px; cursor: pointer;
}
.lc-link:hover { color: var(--zk-teal); }
.lc-link:focus-visible { outline: 2px solid var(--zk-navy); outline-offset: 2px; border-radius: 2px; }
.lf-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.lf-hint { font-size: 11.5px; font-weight: normal; color: var(--zk-sub); }
/* 봇 막기용 숨은 칸: 화면 밖(사람은 보지 못하고 Tab 으로도 가지 않음) */
.lc-hp { position: absolute; left: -10000px; top: 0; width: 1px; height: 1px; overflow: hidden; }
#signup-done .msg.ok { padding: 14px 12px; font-size: 13.5px; text-align: center; }
.login-copy { margin: 0; padding: 0 16px 16px; text-align: center; font-size: 11px; letter-spacing: 1px; color: #5f6b74; }

@media (max-width: 480px) {
  .login-main { padding: 24px 16px 16px; }
  .login-card { padding: 28px 20px 22px; }
  .zk-logo { width: 196px; }
  .lbg-mark.m1 { width: 380px; height: 482px; right: -170px; margin-top: -241px; }
}
@media (max-height: 640px) {
  .login-main { align-items: flex-start; padding-top: 20px; }
}
/* 움직임 줄이기를 켠 PC: 모두 끝 모습 그대로(멈춤) */
@media (prefers-reduced-motion: reduce) {
  .login *, .login *::before, .login *::after { animation: none !important; transition: none !important; }
  .zk-sheen { opacity: 0; }
}

/* ---------- 틀: 맨 위 줄 + 제목 줄 + (본문 | 오른쪽 패널) ---------- */
.shell { display: flex; flex-direction: column; min-height: 100%; }
.logo { font-size: 17px; font-weight: bold; letter-spacing: 1px; color: #222; text-decoration: none; white-space: nowrap; }
.topbar {
  position: sticky; top: 0; z-index: 30; flex: none;
  height: var(--top-h); display: flex; align-items: center; gap: 6px; padding: 0 14px;
  background: #fff; min-width: 0;
}
.topbar .logo { margin-right: 10px; }
.pill {
  display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 9px; border-radius: 10px;
  font-size: 11px; white-space: nowrap; line-height: 1; border: 1px solid transparent; background: #fff;
}
.pill.co { border-color: #cfcfcf; color: #333; }
.pill.co::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: #8c7ff0; }
.pill.blue { background: var(--wh-blue); border-color: var(--wh-blue); color: #fff; }
button.pill { cursor: pointer; font: inherit; font-size: 11px; }
.yr { position: relative; }
.pop {
  position: absolute; top: calc(100% + 3px); left: 0; z-index: 60; margin: 0; padding: 2px 0; list-style: none;
  min-width: 150px; max-height: 60vh; overflow-y: auto; background: #fff; border: 1px solid #bdbdbd;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .15);
}
.pop li { padding: 4px 10px; cursor: pointer; white-space: nowrap; font-size: 12px; }
.pop li:hover, .pop li.on { background: var(--wh-sel-row); }
.pop li.cur { font-weight: bold; color: var(--wh-blue); }
.pop li small { color: var(--ink-3); margin-left: 4px; }
.msearch { position: relative; }
.msearch input { width: 162px; height: 22px; font-size: 11px; border-color: #d0d0d0; border-radius: 2px; padding-right: 22px; }
.msearch .ms-ic { position: absolute; right: 6px; top: 5px; width: 12px; height: 12px; color: #555; pointer-events: none; }
.msearch input::-webkit-search-cancel-button { display: none; }
.msearch .pop { left: auto; right: 0; min-width: 240px; }
.um { position: relative; display: inline-flex; align-items: center; gap: 8px; margin-left: 14px; }
.user-btn { border: 0; background: none; padding: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; font-size: 11px; color: #888; white-space: nowrap; }
.user-btn .um-caret { font-size: 9px; color: #999; }
.user-name { font-size: 11px; color: #888; white-space: nowrap; }
.um .pop { left: auto; right: 30px; min-width: 120px; }
.um .pop li { padding: 0; }
.um .pop button { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 5px 12px; cursor: pointer; font-size: 12px; }
.um .pop button:hover { background: var(--wh-sel-row); }
.avatar { display: inline-flex; width: 24px; height: 24px; }
.avatar svg { width: 24px; height: 24px; }
.is-main #year-btn::after { content: "∨"; margin-left: 5px; font-size: 9px; }
.tb-link { border: 0; background: none; padding: 0 2px; font-size: 11px; color: #888; cursor: pointer; white-space: nowrap; }
.tb-link:hover { color: #333; text-decoration: underline; }

.titlebar {
  position: sticky; top: var(--top-h); z-index: 29; flex: none;
  height: var(--title-h); display: flex; align-items: center; gap: 8px; padding: 0 10px 0 0;
  background: var(--wh-blue); color: #fff; min-width: 0;
}
.tb-menu {
  flex: none; width: 36px; height: 100%; border: 0; background: var(--wh-blue-dark); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0;
}
.tb-menu svg { width: 14px; height: 14px; }
.tb-menu[aria-expanded="true"] { background: #16378a; }
.tb-title { margin: 0 6px 0 8px; font-size: 16px; font-weight: normal; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 0 1 auto; }
.tb-badges { display: inline-flex; gap: 4px; flex: none; }
.tb-badges .badge { height: 17px; background: #fff; border-color: #fff; color: #333; }
.tb-badges .badge.warn { color: var(--warn); }
.tb-badges .badge.neg { color: var(--neg); }
.tb-badges .badge.info { color: var(--wh-blue); }
.tb-btns { display: inline-flex; align-items: center; gap: 3px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.tb-btns::-webkit-scrollbar { display: none; }
.tb-btns .btn, .tb-btns .btn.primary, .tb-btns .btn.danger, .tb-btns .btn.ghost {
  height: 20px; padding: 0 6px; font-size: 11px; border-radius: 0;
  background: transparent; border: 1px solid var(--wh-blue-line); color: #fff; flex: none;
}
.tb-btns .btn:hover { background: rgba(255, 255, 255, .12); }
.tb-btns .guide-lbl { display: inline-flex; align-items: center; gap: 4px; } /* 이용가이드: 동그라미 재생 그림 + 글(App.guideLabel) */
.tb-btns .guide-ic { display: inline-flex; }
.tb-btns .btn.on { background: #fff; color: var(--wh-blue); border-color: #fff; }
.tb-sep { width: 1px; height: 14px; background: rgba(255, 255, 255, .35); margin: 0 4px; flex: none; }
.tb-icon { flex: none; width: 28px; height: 28px; border: 0; background: none; color: #fff; cursor: pointer; padding: 0; display: inline-flex; align-items: center; justify-content: center; margin-left: 4px; }
.tb-icon svg { width: 20px; height: 20px; }
.tb-icon.wh-off { opacity: .45; cursor: default; }
.tb-icon.wh-off:hover { background: none; }
/* 기능 아이콘: 흰 테두리 네모 안 '기능' 글자 */
.tb-icon.tb-fn { width: 22px; height: 22px; margin: 0 3px 0 8px; border: 1px solid #fff; border-radius: 2px; font-size: 9px; letter-spacing: -1px; line-height: 1; }
/* 제목 옆 TIP: 노란 알약 + 흰 말풍선 + 빨간 N(위하고 영상 안내 자리 — 누를 수 없음) */
.tb-tip { display: inline-flex; align-items: center; gap: 9px; flex: none; cursor: default; margin-left: 4px; }
.tb-tip .tip-pill { display: inline-block; height: 18px; line-height: 18px; padding: 0 8px; border-radius: 9px; background: #f8d300; color: #5a4a00; font-size: 10px; font-weight: bold; }
.tb-tip .tip-bubble { position: relative; display: inline-block; height: 22px; line-height: 22px; padding: 0 9px; border-radius: 3px; background: #fff; color: #333; font-size: 10px; white-space: nowrap; }
.tb-tip .tip-bubble::before { content: ""; position: absolute; left: -5px; top: 7px; border: 4px solid transparent; border-right: 5px solid #fff; border-left: 0; }
.tb-tip .tip-n { position: absolute; right: -6px; top: -6px; width: 12px; height: 12px; border-radius: 50%; background: #f0583a; color: #fff; font: bold 8px/12px Arial, sans-serif; font-style: normal; text-align: center; }
.tb-icon:hover { background: rgba(255, 255, 255, .12); }
.xl { position: relative; display: inline-flex; }
.xl .pop { left: auto; right: 0; color: #222; }

/* 앱 메인화면 = 전체메뉴(위하고 첫 화면, 캡처 화면분석 > 추가캡처_20261125 01·02·03 에서 색·자리를 잼).
 * 왼쪽 끝 진남색 세로 앱 아이콘 줄(마우스를 올리면 펼쳐져 앱 이름) + 연파랑 바탕에
 * 흰 탭 줄(남색 테두리, 고른 탭 밑 파란 굵은 줄) → 남색 테두리 큰 상자 = 왼쪽 파란 그라데이션 대분류 | 오른쪽 흰 메뉴 칸(소분류 두 단).
 * 메인화면에서는 파란 제목 줄·오른쪽 패널이 없다(위하고 메인화면과 같게). */
/* 크기(2026-12-03 대표 "위하고가 훨씬 시원시원, 우리는 너무 작은 느낌" → "메인화면만 맞추면 될 것 같아"):
 * 처음 값은 줄여 찍은 캡처(1920 화면을 1568 너비로)에서 재어 약 0.82배로 작았음. 아래는 위하고 메인화면을 1920 너비·100% 에서
 * 화면 요소 크기(getComputedStyle)와 대표가 준 캡처의 점 색으로 다시 잰 값. 안쪽 화면(일반전표입력 등)은 그대로. */
.app-rail { display: none; }
.is-main .app-rail {
  display: flex; flex-direction: column; position: fixed; left: 0; top: 0; bottom: 0; z-index: 50;
  width: 48px; padding-top: var(--top-h); background: #333948; overflow: hidden;
}
.is-main .app-rail:hover, .is-main .app-rail:focus-within { width: 194px; box-shadow: 2px 0 6px rgba(0, 0, 0, .25); }
.ar-app {
  flex: none; display: flex; align-items: center; gap: 20px; height: 43px; padding-left: 12px;
  color: #878c95; text-decoration: none; white-space: nowrap; font-size: 13px;
}
.ar-ic { flex: none; display: inline-flex; width: 24px; height: 24px; }
.ar-ic svg { width: 24px; height: 24px; }
.ar-name { color: #bbbec4; }
.ar-app:hover, .ar-app:focus-visible { color: #fff; outline: none; }
.ar-app:hover .ar-name, .ar-app:focus-visible .ar-name { color: #f0eeec; }
/* 앱 아이콘 아래 '설정'(톱니바퀴 — 바로빌 연동 설정, 대표 지시 2026-11-30. 위하고에는 없음): 위에 가는 구분선. 앱 아이콘 줄은 메인화면에서만 보여 '열림' 표시는 없음 */
.ar-set { position: relative; margin-top: 7px; }
.ar-set::before { content: ""; position: absolute; left: 9px; right: 9px; top: -4px; height: 1px; background: #4c5064; }
.is-main .shell { padding-left: 48px; }
.is-main .titlebar, .is-main .side, .is-main .side-handle { display: none !important; }
/* 위하고: 탭 틀은 머리 줄 아래 30px·왼쪽 아이콘 줄에서 95px, 큰 상자는 탭 틀 아래 18px */
.is-main .main { background: #d9e6f6; padding: 30px 95px 24px; }
.mm { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
/* 탭 틀: 테두리 2px rgb(38,86,197), 높이 55(탭 50 + 탭 아래 가는 줄 1px), 오른쪽 단추 끝 여백 8px */
.am-tabs {
  flex: none; display: flex; align-items: stretch; height: 55px; padding-right: 8px;
  background: #fff; border: 2px solid #2656c5; box-shadow: inset 0 -1px 0 #2656c5;
}
/* 탭: 글 18px(자간 -0.5px), 양옆 16px. 고른 탭 = 파란 글·밑줄 3px rgb(38,86,197), 고르지 않은 탭 = 회색 rgb(179,179,179) */
.am-tab {
  position: relative; display: inline-flex; align-items: center; gap: 11px; padding: 0 16px;
  font-size: 18px; letter-spacing: -0.5px; white-space: nowrap; cursor: pointer; user-select: none;
}
.am-tab svg { flex: none; width: 16px; height: 16px; }
.am-tab.on { color: #2656c5; }
.am-tab.on svg { width: 16px; height: 16px; color: inherit; }
.am-tab.on::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: #2656c5; }
/* 고르지 않은 탭은 회색(위하고 rgb(179,179,179)), 고른 ☆마이메뉴는 파란 글·밑줄(위하고 rgb(38,86,197)) — 2026-12-03 마이메뉴 */
.am-tab.off { color: #b3b3b3; }
.am-tab.am-my { gap: 10px; }
.am-tab.am-my svg, .am-tab.am-my.on svg { width: 24px; height: 24px; color: inherit; }
.am-tab.am-my.on { color: #2656c5; }
.am-tab.am-my.on::after { background: #2656c5; }
.am-tab:focus-visible { outline: 1px dotted #2656c5; outline-offset: -4px; }
.am-tab-sep { flex: none; align-self: center; width: 1px; height: 27px; background: #e5e5e5; }
/* 오른쪽 단추: 높이 27, 글 12px #4a4a4a, 테두리 #d3d3d3, 그림 14px */
.am-tbtn {
  flex: none; align-self: center; display: inline-flex; align-items: center; gap: 3px; height: 27px; padding: 2px 10px 0 7px;
  border: 1px solid #d3d3d3; background: #fff; color: #4a4a4a; font-size: 12px; letter-spacing: -0.5px; text-decoration: none; white-space: nowrap;
}
.am-tbtn:hover { background: #f5f5f5; }
.am-tbtn-ic, .am-tbtn-ic svg { display: inline-flex; width: 14px; height: 14px; }
/* 큰 상자: 높이 555, 위·오른쪽·아래 3px 테두리(왼쪽 위 하늘색 → 가운데 rgb(88,115,214) → 오른쪽 아래 짙은 파랑, 위하고 그림 테두리를 점 색으로 잼), 왼쪽은 테두리 없이 파란 칸 */
.am-box {
  flex: none; height: 555px; max-height: calc(100vh - var(--top-h) - 127px); min-height: 300px; display: flex; overflow: hidden;
  margin: 0 2px; padding: 3px 3px 3px 0; border: 0;
  background: linear-gradient(to bottom right, #3f9ce5 0%, #5873d6 28%, #5873d6 66%, #3b43bf 100%);
}
/* 왼쪽 파란 칸: 너비 352, 안쪽 위 21·아래 21·왼쪽 10, 세로 그라데이션 rgb(63,156,229) → rgb(88,115,214)(475px) */
.am-left {
  flex: 0 0 352px; overflow-y: auto; padding: 21px 0 21px 10px;
  background: linear-gradient(180deg, #3f9ce5 0, #5873d6 475px, #5873d6 100%);
  scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .45) transparent;
}
/* 대분류: 높이 34, 안쪽 8 5 6 19, 흰 글 14px. 고른 것 = 흰 바탕·글 15px rgb(49,54,152)·앞에 파란 세모(8×13, rgb(28,144,251)) */
.am-group {
  display: block; width: 100%; min-height: 34px; text-align: left; border: 0; background: none; cursor: pointer;
  padding: 8px 5px 6px 19px; font-size: 14px; line-height: 20px; color: #fff; word-break: keep-all; overflow-wrap: anywhere;
}
.am-group:hover { text-decoration: underline; }
.am-group.on {
  background: #fff; color: #313698; font-size: 15px;
  box-shadow: -1px 2px 4px rgba(0, 0, 0, .22); text-decoration: none;
}
.am-group.on::before {
  content: ""; display: inline-block; width: 0; height: 0; margin-right: 6px; vertical-align: -1px;
  border-style: solid; border-width: 6.5px 0 6.5px 8px; border-color: transparent transparent transparent #1c90fb;
}
/* 메뉴 옆 붉은 건수(화면 정의 menuBadge — 권한설정의 가입 신청 대기) */
.am-badge {
  display: inline-block; min-width: 16px; height: 16px; margin-left: 5px; padding: 0 4px; border-radius: 8px;
  background: #e0262d; color: #fff; font-size: 10.5px; font-weight: bold; line-height: 16px; text-align: center; vertical-align: 1px;
}
/* 오른쪽 흰 칸: 안쪽 30 60 65, 소분류 두 단(각 552, 사이 100) */
.am-right {
  flex: 1; min-width: 0; overflow-y: auto; padding: 30px 60px 65px; background: #fff;
  display: grid; grid-template-columns: repeat(2, minmax(0, 552px)); column-gap: 100px; row-gap: 30px; align-content: start;
}
/* 소분류 제목 17px 굵게, 아래 11px·줄 rgb(236,236,236). 메뉴 한 줄 29(위아래 7), 글 13px rgb(26,26,26), 새 창 그림 14px + 9px */
.am-sub h3 { margin: 0; padding-bottom: 11px; font-size: 17px; line-height: 19px; font-weight: bold; color: #000; border-bottom: 1px solid #ececec; }
.am-sub ul { margin: 8px 0 0; padding: 0; list-style: none; }
.am-sub a {
  display: flex; align-items: center; gap: 9px; min-height: 29px; padding: 7px 0; line-height: 15px;
  color: #1a1a1a; text-decoration: none; font-size: 13px; word-break: keep-all; overflow-wrap: anywhere;
}
.am-sub a:hover { color: #2e59b8; text-decoration: underline; }
.am-ic { flex: none; display: inline-flex; width: 14px; height: 14px; color: #aeaeae; }
.am-ic svg { width: 14px; height: 14px; }
/* 메뉴 대신 판을 여는 대분류(App.mainPanel — 위하고 '자동전표 수집 및 미처리 현황'): 오른쪽은 두 단 메뉴 대신 판 하나, 상자는 판 높이만큼(캡처 00 은 메뉴 때보다 큼) */
.am-box.am-dash { height: auto; max-height: none; }
.am-right.am-panel { display: block; padding: 14px 16px 16px 17px; }

/* 메인화면 ☆마이메뉴(대표 지시 2026-12-03 "마이메뉴 활성화 시켜줘" — 위하고 마이메뉴 캡처·잰 값 그대로) */
.am-box.mym { position: relative; display: block; height: auto; max-height: none; min-height: 0; overflow: visible; background: #fff; padding: 55px 10px 15px; border: 3px solid #498bdf; }
.mym-wait { margin: 0; padding: 60px 0; text-align: center; color: #8d8d8d; font-size: 12px; }
.mym-subs { position: absolute; left: 15px; top: 11px; display: flex; margin: 0; padding: 0; list-style: none; }
.mym-subs li { position: relative; border-bottom: 3px solid transparent; }
.mym-subs li + li::before { content: ""; position: absolute; left: 0; top: 11px; width: 1px; height: 14px; background: #d9d9d9; }
.mym-subs li.on { border-bottom-color: #1c90fb; }
.mym-subs button { height: 35px; padding: 0 13px; border: 0; background: none; font-size: 15px; color: #4a4a4a; cursor: pointer; }
.mym-btns { position: absolute; right: 15px; top: 14px; display: flex; }
.mym-btn { height: 27px; padding: 1px 10px 0; border: 1px solid #d3d3d3; background: #fff; color: #4a4a4a; font-size: 12px; cursor: pointer; }
.mym-btn:hover { background: #f5f5f5; }
.mym-btn + .mym-btn { margin-left: -1px; }
.mym.edit { padding-right: 305px; }
.mym.edit .mym-btns { right: 311px; }
.mym.edit .mym-btn + .mym-btn { margin-left: 5px; }
.mym-cols { display: flex; }
.mym-col { flex: 1 1 0; min-width: 0; margin: 0 5px; }
.mym-gname {
  display: block; width: 100%; height: 39px; margin: 0 0 8px; padding: 0 8px; border: 0; box-sizing: border-box; background: #3d94ee;
  color: #fff; font-size: 16px; line-height: 39px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mym-col:nth-child(2) .mym-gname { background: #5c7eec; }
.mym-col:nth-child(3) .mym-gname { background: #7070e7; }
input.mym-gname { font-family: inherit; font-size: 17px; outline: none; }
input.mym-gname:focus { box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .55); }
.mym-list { position: relative; height: 507px; margin: 0; padding: 0; list-style: none; box-sizing: border-box; border: 1px solid #e0e0e0; background: #fff; overflow-y: auto; }
.mym.edit .mym-list { height: auto; overflow: visible; border-bottom: 0; }
.mym-slot { position: relative; display: flex; align-items: center; height: 46px; border-bottom: 1px solid #e0e0e0; }
.mym-slot a { display: flex; align-items: center; width: 100%; height: 100%; min-width: 0; color: inherit; text-decoration: none; }
.mym-slot a:hover .mym-cell span { color: #1c90fb; text-decoration: underline; }
.mym-slot.full[draggable="true"] { cursor: move; }
.mym-slot.over { background: #eef7ff; box-shadow: inset 0 0 0 1px #1c90fb; }
.mym-cell { display: flex; flex-direction: column; justify-content: center; min-width: 0; padding: 0 30px 0 20px; }
.mym-cell em { font-style: normal; font-size: 11px; line-height: 14px; color: #8d8d8d; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mym-cell span { font-size: 13px; line-height: 18px; color: #333; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mym-plus { flex: 1; text-align: center; color: #c8c8c8; font-size: 18px; font-weight: 300; }
.mym-del { position: absolute; right: 8px; top: 50%; width: 20px; height: 20px; margin-top: -10px; padding: 0; border: 0; background: none; color: #999; font-size: 16px; line-height: 20px; cursor: pointer; }
.mym-del:hover { color: #e0433a; }
.mym-empty { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; align-items: center; color: #8d8d8d; font-size: 12px; line-height: 15px; text-align: center; }
.mym-empty-ic svg { display: block; width: 72px; height: 72px; margin-bottom: 12px; }
.mym-empty strong { margin-bottom: 2px; font-size: 18px; font-weight: normal; line-height: 24px; }
.mym-all { position: absolute; top: 15px; right: 15px; bottom: 15px; width: 281px; display: flex; flex-direction: column; box-sizing: border-box; border: 1px solid #e0e0e0; background: #fff; }
.mym-all h4 { flex: none; margin: 0; padding: 12px 14px; border-bottom: 1px solid #e5e5e5; font-size: 16px; font-weight: bold; color: #222; }
.mym-qbox { flex: none; padding: 9px 14px; border-bottom: 1px solid #e5e5e5; }
.mym-q { width: 100%; height: 27px; padding: 0 8px; box-sizing: border-box; border: 1px solid #ccc; font-size: 12px; }
.mym-hint { flex: none; margin: 0; padding: 12px 14px; font-size: 13px; line-height: 18px; color: #1c90fb; word-break: keep-all; }
.mym-acc { flex: 1; min-height: 0; overflow-y: auto; border-top: 1px solid #bebebe; scrollbar-width: thin; }
.mym-cat {
  position: relative; display: block; width: 100%; padding: 14px 30px 12px 32px; border: 0; border-bottom: 1px solid #bebebe;
  background: #ebf6fd; color: #333; font-size: 12px; font-weight: bold; text-align: left; cursor: pointer;
}
.mym-cat::after { content: ""; position: absolute; right: 16px; top: 50%; width: 6px; height: 6px; margin-top: -5px; border: solid #999; border-width: 0 1px 1px 0; transform: rotate(45deg); }
.mym-cat.on::after { margin-top: -1px; transform: rotate(-135deg); }
.mym-items { margin: 0; padding: 4px 0; list-style: none; border-bottom: 1px solid #bebebe; }
.mym-items li { height: 25px; padding: 0 30px; line-height: 25px; font-size: 12px; color: #333; cursor: grab; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mym-items li:hover { background: #f3f8fd; }
.mym-items li.off { color: #b5b5b5; cursor: default; }
.mym-items li.off:hover { background: none; }
.mym-pop { width: 510px; max-width: calc(100vw - 32px); background: #fff; box-shadow: 0 2px 10px rgba(0, 0, 0, .25); color: #333; font-size: 12px; }
.mym-pop-t { display: flex; align-items: center; justify-content: space-between; margin: 0 30px; padding: 22px 0 10px; border-bottom: 1px solid #333; }
.mym-pop-t strong { font-size: 17px; }
.mym-x { padding: 0; border: 0; background: none; color: #555; font-size: 24px; line-height: 1; cursor: pointer; }
.mym-pop-tbl { width: calc(100% - 60px); margin: 20px 30px 0; border-collapse: collapse; border-top: 2px solid #666; border-bottom: 1px solid #ccc; }
.mym-pop-tbl th { width: 50%; height: 30px; background: #f2f2f2; border-right: 1px solid #ddd; font-weight: bold; text-align: center; }
.mym-pop-tbl td { padding: 0 6px; }
.mym-pop-tbl label { display: inline-flex; align-items: center; gap: 3px; margin-right: 8px; cursor: pointer; }
.mym-pop-d { margin: 10px 30px 20px; padding: 6px 10px; border: 1px solid #ddd; line-height: 17px; }
.mym-pop-d p { margin: 4px 0; }
.mym-pop-d b { font-weight: normal; }
.mym-pop-f { padding: 14px 0; background: #f2f2f2; text-align: center; }
.mym-pop-f button { height: 25px; margin: 0 2px; padding: 0 10px; border: 1px solid #c4c4c4; background: #fff; font-size: 12px; cursor: pointer; }

/* 위하고처럼 페이지 전체는 움직이지 않는다: 틀은 창 높이에 고정, 본문·오른쪽 패널이 각자 안에서 굴러감.
 * 본문(.screen-body)은 세로 flex — 바로 밑 표(.tbl-box)나 .fill 칸이 남은 높이를 채우고, 합계 줄은 표 맨 아래에 붙는다. */
.shell { height: 100vh; height: 100dvh; overflow: hidden; }
.body { flex: 1; display: flex; min-height: 0; min-width: 0; }
.main { flex: 1; min-width: 0; min-height: 0; overflow: auto; display: flex; flex-direction: column; padding: 14px 16px 12px; }
.screen { min-width: 0; flex: 1 1 0; min-height: 0; display: flex; flex-direction: column; }
.screen > *, .screen-body > * { flex: none; }
.screen > .screen-body { flex: 1 1 0; min-height: 0; display: flex; flex-direction: column; }
/* 남은 높이 채우기: 화면이 묶음 칸에 class="fill" 을 주거나, 표를 바로 품은 이름 없는 div 면 그 칸이 늘고 그 안 표도 늘어난다.
 * 나란한 칸(왼쪽 목록 | 오른쪽 표 같은 grid)은 class="fill-row": 줄 높이를 채우고 칸마다 .fill 처럼 동작 */
:is(.screen-body, .fill, .fill-row > *) > :is(.fill, div:not([class]):has(> .tbl-box)) { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
:is(.screen-body, .fill, .fill-row > *) > .fill { flex-basis: 0; }
:where(.screen-body, .fill, .fill-row > *) > :where(.fill, div:not([class]):has(> .tbl-box)) > * { flex: none; } /* :where = 특이성 0(안의 .fill·.fill-row·표가 이김) */
:is(.screen-body, .fill, .fill-row > *) > .fill-row { flex: 1 1 0; min-height: 0; align-items: stretch; grid-template-rows: minmax(0, 1fr); }
.fill-row > * { display: flex; flex-direction: column; min-height: 0; }
.fill-row > * > * { flex: none; }
:is(.screen-body, .fill, .fill-row > *, :is(.screen-body, .fill, .fill-row > *) > div:not([class])) > .tbl-box { flex: 1 1 auto; min-height: 150px; display: flex; flex-direction: column; }
:is(.screen-body, .fill, .fill-row, .fill-row > *, :is(.screen-body, .fill, .fill-row > *) > div:not([class])) > .tbl-box > .tbl-wrap { flex: 1 1 auto; min-height: 0; max-height: none !important; }
/* 오른쪽 패널(위하고: 회색 바탕, 흰 접이식 칸) — 길면 패널 안에서만 굴러감 */
.side-handle {
  flex: none; align-self: center;
  width: 9px; height: 60px; margin: 0; padding: 0; border: 1px solid #d6d6d6; border-right: 0; border-radius: 4px 0 0 4px;
  background: #f7f7f7; cursor: pointer; color: #555; font-size: 7px; line-height: 1;
}
.side {
  flex: 0 0 var(--side-w); width: var(--side-w); background: var(--wh-head); padding: 4px 4px 10px;
  border-left: 1px solid #e3e3e3; align-self: stretch; min-height: 0; overflow-y: auto; overflow-x: hidden;
  font-size: 11px; color: #444;
}
.side-collapsed .side { display: none; }
.sp-info {
  display: flex; gap: 3px; align-items: flex-start; background: #fcfcfc; border: 1px solid #dedede;
  padding: 6px 5px; margin-bottom: 5px; color: #999; font-size: 11px; letter-spacing: -0.3px; line-height: 1.45; overflow-wrap: anywhere; white-space: pre-line;
}
.sp-info .ic { flex: none; width: 13px; height: 13px; border: 1px solid #999; border-radius: 50%; font-size: 9px; font-style: italic; text-align: center; line-height: 11px; color: #777; font-family: Georgia, serif; }
.sp-info.dark { color: #222; }
.sp-box { background: #fff; border: 1px solid #dedede; margin-bottom: 5px; }
.sp-box > summary {
  list-style: none; cursor: pointer; padding: 7px 4px 7px 6px; font-size: 11px; color: #333; display: flex; align-items: center; gap: 3px;
}
.sp-box > summary::-webkit-details-marker { display: none; }
.sp-box > summary::after { content: "⌄"; margin-left: auto; color: #aaa; font-size: 11px; line-height: 1; }
.sp-box[open] > summary::after { content: "⌃"; }
.sp-body { padding: 2px 6px 7px; line-height: 1.5; overflow-wrap: anywhere; }
.sp-body p { margin: 0 0 4px; }
.sp-body ul { margin: 0; padding-left: 12px; }
.sp-body kbd { font: inherit; font-size: 10px; border: 1px solid #ccc; padding: 0 3px; background: #f7f7f7; }

/* 화면 머리(본문 안: 화면이 넣는 탭·보조 제목 줄) */
.screen-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 8px; }
.screen-title { margin: 0; font-size: 13px; font-weight: bold; }
.screen-head h2 { font-size: 13px; }

/* 조회 조건 줄(위하고: 흰 바탕 테두리 상자, 오른쪽 끝 [조회]) */
.toolbar, .wh-filter {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px;
  border: 1px solid var(--wh-box-line); background: #fff; padding: 5px 10px; margin-bottom: 14px; min-width: 0; min-height: 34px;
}
.toolbar > .btn.primary:last-child { margin-left: auto; }
.toolbar .field { min-width: 0; }
.wh-filter .wf-left { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; flex: 1; min-width: 0; }
.wh-filter .wf-right { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.wh-filter .wf-more { flex-basis: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding-top: 6px; border-top: 1px dashed #e6e6e6; }

/* 묶음(예전 카드): 위하고에는 카드가 없어 테두리·그림자 없이 */
.card { background: transparent; border: 0; padding: 0; margin-bottom: 12px; min-width: 0; }
.card h2 { margin: 2px 0 6px; font-size: 13px; font-weight: bold; color: #222; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 6px 14px; }
.kv { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 4px 14px; margin: 0; }
.kv dt { color: #666; font-size: 12px; }
.kv dd { margin: 0; overflow-wrap: anywhere; }

/* 탭(위하고: 회색 글, 고른 탭 진한 글 + 파란 밑줄, | 구분) */
.wh-tabs { display: flex; flex-wrap: wrap; align-items: flex-end; border-bottom: 1px solid #c4c4c4; margin: -4px 0 8px; }
.wh-tabs button {
  position: relative; border: 0; background: none; cursor: pointer; padding: 6px 11px 7px; font-size: 12px; color: #777;
}
.wh-tabs button + button::before { content: ""; position: absolute; left: 0; top: 9px; height: 11px; width: 1px; background: #d6d6d6; }
.wh-tabs button:first-child { padding-left: 2px; }
.wh-tabs button.on { color: #222; }
.wh-tabs button.on::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--wh-tab-line); }
.wh-tabs button:first-child.on::after { left: -2px; }

/* 토글 단추 묶음(기간/월별, 2026년/2025년) */
.wh-toggle { display: inline-flex; }
.wh-toggle button {
  height: 22px; padding: 0 9px; border: 1px solid #d6d6d6; background: #fff; color: #888; cursor: pointer; font-size: 11px; margin-left: -1px;
}
.wh-toggle button:first-child { margin-left: 0; }
.wh-toggle button.on { background: var(--wh-accent); border-color: var(--wh-accent); color: #fff; position: relative; }
.wh-toggle.apart { gap: 4px; }
.wh-toggle.apart button { margin-left: 0; }

/* ---------- 기간 고르기 ---------- */
.range { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 3px; }
.range input[type="date"] { width: 118px; } /* 위하고 모양으로 바뀌기 전(바로 숨김) */
.range .tilde { color: #666; }

/* ---------- 표(위하고 그리드): 위 검은 선, 회색 머리, 촘촘한 줄, 소계 파랑 ---------- */
.tbl-box { min-width: 0; }
.tbl-wrap {
  overflow: auto; max-height: max(260px, calc(100vh - 215px)); background: var(--wh-grid-bg);
  border: 1px solid #d5d5d5; border-top: 1px solid var(--wh-grid-top); -webkit-overflow-scrolling: touch;
}
table.tbl { border-collapse: separate; border-spacing: 0; width: 100%; font-size: 12px; background: var(--wh-grid-bg); }
.tbl th, .tbl td {
  height: var(--row-h); padding: 0 6px; line-height: 20px; white-space: nowrap;
  border-right: 1px solid var(--wh-grid-line); border-bottom: 1px solid var(--wh-grid-line);
}
.tbl th:last-child, .tbl td:last-child { border-right: 0; }
.tbl tbody td { background: #fff; }
.tbl td.wrap { white-space: normal; min-width: 160px; max-width: 420px; overflow-wrap: anywhere; }
.tbl thead th {
  position: sticky; top: 0; z-index: 2; background: var(--wh-head); color: #222;
  font-weight: normal; font-size: 12px; text-align: center; height: var(--head-h);
  border-right-color: var(--wh-head-line); border-bottom: 1px solid #d9d9d9;
}
.tbl tfoot td {
  position: sticky; bottom: 0; z-index: 2; background: var(--wh-sum); font-weight: bold; color: #222;
  border-right-color: #9dbbe6; border-bottom: 0; border-top: 1px solid #9dbbe6;
}
.tbl td.num, .tbl th.num { text-align: right; font-variant-numeric: tabular-nums; }
.tbl thead th.num { text-align: center; }
.tbl td.c, .tbl tfoot td.c { text-align: center; }
.tbl th.rh, .tbl td.rh { width: 18px; min-width: 18px; padding: 0 2px; background: var(--wh-rowhead); text-align: center; color: #888; font-size: 11px; }
.tbl tbody tr.click { cursor: pointer; }
.tbl tbody tr.sel td { background: var(--wh-sel-row); }
.tbl tbody tr.sel td.on { background: var(--wh-sel-cell); box-shadow: inset 0 0 0 1px #3d8fdb; }
.tbl tbody tr.sel td.rh { background: var(--wh-sel-cell); }
/* rowNum: 맨 앞 줄 번호 칸(위하고 재무제표일괄출력 목록 — 연두 바탕, 고른 줄은 회색 바탕 '>') */
.tbl th.rn, .tbl td.rn { width: 36px; min-width: 36px; padding: 0 2px; text-align: center; color: #888; font-size: 11px; }
.tbl td.rn { background: #fafef0; }
.tbl tbody tr.sel td.rn { background: #bfc6d0; color: #333; }
/* rowNum:'mark'(위하고 상업등기 ③): 번호 없는 좁은 회색 칸, 고른 줄만 '>' */
.tbl.rn-mark th.rn, .tbl.rn-mark td.rn { width: 25px; min-width: 25px; padding: 0; background: var(--wh-rowhead); color: #555; }
.tbl.rn-mark tbody tr.sel td.rn, .tbl.rn-mark tbody tr.ent.cur td.rn { background: #bfc6d0; color: #333; }
/* 줄 종류(rowClass): sub·total = 소계/합계(파랑), sec = 큰 구분(자산 등), grp = I.·II. 줄, strong = 굵게, muted = 흐리게, bad = 빨강 */
.tbl tbody tr.sub td, .tbl tbody tr.total td { background: var(--wh-sum); border-right-color: #9dbbe6; border-bottom-color: #9dbbe6; }
.tbl tbody tr.total td { font-weight: bold; }
.tbl tbody tr.sec td { background: var(--wh-sec-amt); }
.tbl tbody tr.sec td:first-child { background: var(--wh-sec); }
.tbl tbody tr.grp td { background: var(--wh-grp); }
.tbl tbody tr.strong td { font-weight: bold; }
.tbl tbody tr.muted td { color: #999; }
.tbl tbody tr.bad td { color: var(--neg); }
.tbl tbody tr.sel.sub td, .tbl tbody tr.sel.total td, .tbl tbody tr.sel.sec td, .tbl tbody tr.sel.grp td { background: var(--wh-sel-row); }
.tbl td.empty { text-align: center; color: #9a9a9a; padding: 56px 8px; background: var(--wh-grid-bg) !important; border-right: 0; height: auto; line-height: 1.5; white-space: normal; }
.tbl td.empty svg { display: block; margin: 0 auto 5px; width: 30px; height: 32px; }
.tbl td.empty small { display: block; font-size: 11px; color: #b0b0b0; margin-top: 2px; }
/* 줄이 적을 때 남는 높이를 받는 빈 줄(합계 줄이 표 맨 아래에 붙게) */
.tbl tbody.tbl-fill td { height: 0; padding: 0; border: 0; background: var(--wh-grid-bg); line-height: 0; font-size: 0; }
.tbl-more { flex: none; padding: 3px 0 0; }
.tbl-more:empty { display: none; }

/* 알림 줄(위하고: 연노랑 바탕 ※ 줄) — .msg.warn 도 같은 모양(주황 글 없음) */
.wh-note, .msg.warn { margin: 0 0 6px; padding: 3px 8px; background: #fffbe0; border: 0; color: #555; font-size: 11px; line-height: 1.5; }
.wh-note::before, .msg.warn::before { content: "※ "; }

/* ---------- 알림 ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 70;
  max-width: calc(100vw - 32px); padding: 8px 14px; border-radius: 2px;
  background: #333; color: #fff; font-size: 12px; box-shadow: 0 2px 6px rgba(0, 0, 0, .2);
}
.toast.err { background: var(--neg); color: #fff; }

.loading { color: var(--ink-3); padding: 14px 0; }

/* ---------- 기능 없는 위하고 자리(단추·탭·아이콘·메뉴): 자리·이름은 같고 흐리게, 마우스를 올리면 '이 프로그램에서는 쓰지 않습니다' ---------- */
.btn.wh-off, .btn.wh-off:hover, .icon-btn.wh-off, .tb-btns .btn.wh-off, .tb-btns .btn.wh-off:hover { opacity: .45; cursor: default; }
.tb-btns .btn.wh-off:hover { background: transparent; }
.wh-tabs button.wh-off, .wh-tabs button:disabled { color: #c4c4c4; cursor: default; }
.icon-btn:disabled { opacity: .45; cursor: default; }
.wh-toggle button.wh-off { color: #c4c4c4; cursor: default; }

/* 상자 탭(위하고 오른쪽 상세: 고른 탭 파란 바탕 흰 글, 나머지 흰 바탕 회색 테두리) — App.tabs(…, { box:true }) */
.wh-tabs.wh-btabs { border-bottom: 0; margin: 0 0 6px; gap: 0; }
.wh-tabs.wh-btabs button { height: 26px; padding: 0 12px; border: 1px solid #d4d4d4; margin-left: -1px; background: #fff; color: #555; font-size: 12px; }
.wh-tabs.wh-btabs button:first-child { margin-left: 0; padding-left: 12px; }
.wh-tabs.wh-btabs button + button::before, .wh-tabs.wh-btabs button.on::after { display: none; }
.wh-tabs.wh-btabs button.on { background: #1c90fb; border-color: #1c90fb; color: #fff; position: relative; }
.wh-tabs.wh-btabs button.wh-off { color: #c4c4c4; }

/* 읽기 칸(위하고 상세정보의 회색 바탕 값 칸) */
.wh-kv { display: grid; grid-template-columns: max-content minmax(0, 1fr); border-top: 1px solid #000; }
.wh-kv > dt, .wh-kv > dd { margin: 0; min-height: 26px; padding: 3px 8px; border-bottom: 1px solid var(--wh-grid-line); display: flex; align-items: center; }
.wh-kv > dt { background: var(--wh-head); color: #333; }
.wh-kv > dd { background: #f4f4f4; overflow-wrap: anywhere; }

/* ---------- 알림창(위하고 추가캡처 09): 맨 위 흰 줄 아래로 어둡게, 흰 상자 344px, 빨간 ! 동그라미, [취소][확인 파랑] ---------- */
.dlg-ov { position: fixed; left: 0; right: 0; top: var(--top-h); bottom: 0; z-index: 90; background: rgba(0, 0, 0, .3); display: flex; align-items: center; justify-content: center; }
.dlg-box { background: #fff; width: auto; min-width: 344px; max-width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 80px); overflow: auto; padding: 20px 24px 18px; text-align: center; font-size: 12px; color: #333; box-shadow: 0 2px 10px rgba(0, 0, 0, .25); }
.dlg-ic { width: 30px; height: 30px; margin: 0 auto 12px; border: 2px solid #ee4b68; border-radius: 50%; color: #ee4b68; font: bold 18px/26px Arial, sans-serif; }
.dlg-ic.ok { border-color: #34b37b; color: #34b37b; }
.dlg-ic.caution { border: 0; border-radius: 0; width: 30px; height: 28px; }
.dlg-ic.caution svg { display: block; width: 30px; height: 28px; }
.dlg-top { line-height: 1.6; white-space: pre-line; }
.dlg-list { margin-top: 12px; text-align: left; line-height: 1.55; white-space: pre-line; }
.dlg-row { display: grid; grid-template-columns: 44px 96px 60px 96px; align-items: baseline; }
.dlg-row > span:nth-child(3) { padding-left: 14px; }
.dlg-row > span:nth-child(2n) { text-align: right; padding-right: 4px; }
.dlg-q { margin-top: 14px; line-height: 1.6; }
.dlg-copy { display: block; width: 100%; height: 26px; margin-top: 10px; text-align: center; font: 13px Consolas, monospace; background: #f7f7f7; }
.dlg-input { display: flex; align-items: center; gap: 6px; margin-top: 12px; text-align: left; }
.dlg-input input { flex: 1; height: 24px; }
.dlg-btns { margin-top: 14px; display: flex; justify-content: center; gap: 4px; }
.dlg-btns button { min-width: 50px; height: 24px; padding: 0 10px; font-size: 11px; cursor: pointer; border: 1px solid #c8c8c8; background: #fff; color: #333; }
.dlg-btns button.dlg-ok { background: #1c8ff0; border-color: #1c8ff0; color: #fff; }

/* ---------- 코드도움 창(위하고 추가캡처 06) ---------- */
.whd-help { width: 450px; max-width: calc(100vw - 32px); background: #fff; box-shadow: 0 2px 10px rgba(0, 0, 0, .25); font-size: 12px; }
.whd-help .hd { display: flex; align-items: center; margin: 0 26px; padding: 22px 0 8px; border-bottom: 1px solid #333; font-size: 15px; font-weight: bold; }
.whd-help .hd button { margin-left: auto; border: 0; background: none; font-size: 18px; color: #555; cursor: pointer; }
.whd-help .bd { padding: 14px 26px 16px; }
.whd-tabs { display: flex; margin-bottom: 8px; }
.whd-tabs button { flex: 1; height: 26px; border: 1px solid #dcdcdc; margin-left: -1px; background: #fff; color: #555; font-size: 11px; cursor: pointer; }
.whd-tabs button.on { background: #1c90fb; border-color: #1c90fb; color: #fff; position: relative; }
.whd-help .grid { height: 260px; overflow: auto; border: 1px solid #d5d5d5; border-top: 1px solid #000; }
.whd-help table { width: 100%; border-collapse: separate; border-spacing: 0; }
.whd-help th { position: sticky; top: 0; background: var(--wh-head); font-weight: normal; height: 20px; border-right: 1px solid var(--wh-head-line); border-bottom: 1px solid #d9d9d9; }
.whd-help td { height: 20px; padding: 0 5px; border-right: 1px solid var(--wh-grid-line); border-bottom: 1px solid var(--wh-grid-line); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 260px; cursor: pointer; }
.whd-help td.c { text-align: center; }
.whd-help tr.sel td { background: var(--wh-sel-row); }
.whd-help td.empty { text-align: center; color: #999; padding: 40px 0; cursor: default; }
.whd-help .find { display: flex; align-items: center; gap: 14px; margin-top: 10px; padding-left: 24px; }
.whd-help .find input { flex: 1; height: 22px; background: #eef8ff; border-color: #6fb6f0; }
.whd-help .ft { display: flex; justify-content: center; gap: 4px; padding: 12px; background: #f3f3f3; }
.whd-help .ft button { height: 22px; padding: 0 7px; font-size: 11px; border: 1px solid #c8c8c8; background: #fff; cursor: pointer; }
/* 코드도움 칸(조회 줄 '전체계정과목' + 작은 아이콘) */
.cf { display: inline-flex; align-items: center; width: 170px; height: 22px; border: 1px solid var(--wh-input-line); background: #fff; }
.cf:focus-within { border-color: var(--wh-focus); }
.cf .cf-in { flex: 1; min-width: 0; height: 20px; border: 0; padding: 0 5px; }
.cf .cf-in::placeholder { color: #333; }
.cf .cf-in.cf-hint { text-overflow: ellipsis; }
.cf .cf-in.cf-hint::placeholder { color: #b5b5b5; }
.cf .cf-btn { flex: none; width: 20px; height: 20px; border: 0; background: none; padding: 0; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.cf .cf-btn svg { width: 12px; height: 12px; }

/* ---------- 날짜 칸·달력(위하고 추가캡처 11): '2026.11.25' + 달력 아이콘 ---------- */
.wd { display: inline-flex; align-items: center; width: 104px; height: 22px; border: 1px solid #d0d0d0; background: #fff; vertical-align: middle; flex: none; }
.wd.wd-m { width: 84px; }
.wd:focus-within { border-color: var(--wh-focus); }
.wd.dis { background: var(--wh-ro); }
.wd .wd-text { flex: 1; min-width: 0; height: 20px; border: 0; padding: 0 0 0 5px; font-size: 11px; color: #333; background: transparent; font-variant-numeric: tabular-nums; }
.wd .wd-text:disabled { color: #888; }
.wd .wd-btn { flex: none; width: 20px; height: 20px; border: 0; background: none; padding: 0; color: #555; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.wd .wd-btn svg { width: 13px; height: 13px; }
.wd.dis .wd-btn { opacity: .4; cursor: default; }
.wd > .wd-native { display: none !important; }
.range .wd { width: 104px; }
.wd-pop { position: fixed; z-index: 95; width: 216px; background: #fff; border: 1px solid #c8c8c8; box-shadow: 0 2px 6px rgba(0, 0, 0, .15); font-size: 12px; color: #333; }
.wd-head { display: flex; align-items: center; justify-content: center; gap: 2px; height: 36px; }
.wd-head b { min-width: 74px; text-align: center; font-size: 14px; font-family: Georgia, "Times New Roman", serif; }
.wd-nav { width: 22px; height: 22px; border: 0; background: none; color: #999; font-size: 16px; cursor: pointer; padding: 0; line-height: 1; }
.wd-nav:hover { color: #333; }
.wd-days { width: 100%; border-collapse: collapse; table-layout: fixed; margin: 0 0 4px; }
.wd-days th { height: 22px; font-weight: normal; color: #888; font-size: 11px; }
.wd-days td { padding: 1px; text-align: center; }
.wd-days button { width: 24px; height: 20px; border: 0; background: none; padding: 0; cursor: pointer; font-size: 12px; color: #333; }
.wd-days button.sat { color: #8e3fa4; }
.wd-days button.sun { color: #e8413c; }
.wd-days button.other { opacity: .45; }
.wd-days button:hover { background: #eef6ff; }
.wd-days button.on { background: #1c90fb; color: #fff; opacity: 1; }
.wd-days button.out { opacity: .25; cursor: default; }
.wd-months { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 6px 10px 10px; }
.wd-months button { height: 30px; border: 0; background: none; cursor: pointer; font-size: 12px; }
.wd-months button:hover { background: #eef6ff; }
.wd-months button.on { background: #1c90fb; color: #fff; }
.wd-months button.out { opacity: .3; cursor: default; }
.wd-foot { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-top: 1px solid #e6e6e6; }
.wd-today { height: 20px; padding: 0 6px; border: 1px solid #c8c8c8; background: #fff; font-size: 11px; cursor: pointer; }
.wd-lunar { color: #999; font-size: 11px; }

/* ---------- 표: 체크 칸 · 두 줄 머리 · 폭 고정 · 입력 빈 줄 ---------- */
.tbl.fixed { table-layout: fixed; }
.tbl.fixed th { overflow: hidden; text-overflow: clip; }
.tbl.fixed td { overflow: hidden; text-overflow: ellipsis; }
.tbl th.rh.ck, .tbl td.rh.ck { width: 24px; min-width: 24px; padding: 0; }
.tbl .rh.ck input { width: 12px; height: 12px; margin: 0; vertical-align: middle; }
/* 체크 칸 머리: 연한 회색 ✓(위하고). 안의 체크 상자는 보이지 않게 두고 누르면 모두 고르기 */
.tbl th.rh.ck .ck-all { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; cursor: pointer; vertical-align: middle; }
.tbl th.rh.ck .ck-all input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.tbl th.rh.ck .ck-all span { color: #c4c4c4; font-size: 12px; line-height: 1; }
.tbl.ck-none th.rh.ck .ck-all span { visibility: hidden; }
.tbl th.rh.ck .ck-all input:checked + span { color: #555; }
.tbl th.rh.ck .ck-all input:focus-visible + span { outline: 1px dotted #888; }
.tbl thead.two th { height: var(--head-h); }
.tbl thead.two tr:first-child th[rowspan="2"] { height: calc(var(--head-h) * 2); }
.tbl thead.two tr:nth-child(2) th { top: var(--head-h); }
.tbl tbody tr.ent td { background: #e3f4ff; }
.tbl tbody tr.ent td.rh { background: var(--wh-rowhead); }

/* ---------- 오른쪽 패널 칸 머리 그림·머리 없는 칸·점 칸 ---------- */
.sp-ic { display: inline-flex; flex: none; width: 13px; height: 13px; margin-right: 2px; }
.sp-ic svg { width: 13px; height: 13px; }
.sp-box > summary > span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: -0.6px; }
.sp-plain > .sp-body { padding: 6px; }
.sp-dot .sp-head { padding: 7px 6px; font-size: 11px; color: #333; display: flex; align-items: center; }
.sp-dot .sp-head::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--sp-dot, #f0802a); margin-right: 6px; flex: none; }
.sp-box.off > summary, .sp-dot.off .sp-head { color: #aaa; }

/* ---------- 앱 메인화면: 위하고 메뉴 중 없는 것(흐림) · 아래 메모칸 · 앱 줄 맨 위 ⋮⋮⋮ ---------- */
.am-off { display: flex; align-items: center; gap: 9px; min-height: 29px; padding: 7px 0; line-height: 15px; color: #b5b5b5; font-size: 13px; cursor: default; word-break: keep-all; overflow-wrap: anywhere; }
.am-off .am-ic { color: #cfcfcf; }
.am-tbtn.wh-off { color: #999; cursor: default; }
.am-tbtn.wh-off:hover { background: #fff; }
.am-tbtn + .am-tbtn { margin-left: 4px; }
.am-ai { border-radius: 11px; border-color: #b9b4ee; }
.am-tbtn-sep { flex: none; align-self: center; width: 1px; height: 27px; background: #e1e3e4; margin: 0 15px; }
/* 메인화면 [가입 신청 N](관리자, 처리할 신청이 있을 때만 — 대표 지시 2026-12-01) */
.am-tbtn.am-signup { color: #fff; background: #e0433a; border-color: #e0433a; font-weight: bold; }
.am-tbtn.am-signup:hover { background: #c9362e; }
.am-tbtn.am-signup[hidden] { display: none; }
.ar-all { position: absolute; left: 0; top: 0; width: 48px; height: var(--top-h); display: flex; align-items: center; justify-content: center; color: #aeb2bb; }
.ar-all svg { width: 14px; height: 14px; }
.ar-all.wh-off { opacity: 1; }

/* ---------- 굴림 막대(위하고: 옅은 회색 얇은 막대) ---------- */
.main ::-webkit-scrollbar, .side::-webkit-scrollbar, .tbl-wrap::-webkit-scrollbar { width: 12px; height: 12px; }
.main ::-webkit-scrollbar-track, .side::-webkit-scrollbar-track, .tbl-wrap::-webkit-scrollbar-track { background: #f7f7f7; }
.main ::-webkit-scrollbar-thumb, .side::-webkit-scrollbar-thumb, .tbl-wrap::-webkit-scrollbar-thumb { background: #cdcdcd; border: 3px solid #f7f7f7; border-radius: 6px; }
.main ::-webkit-scrollbar-thumb:hover, .tbl-wrap::-webkit-scrollbar-thumb:hover { background: #b3b3b3; }
.main ::-webkit-scrollbar-corner, .tbl-wrap::-webkit-scrollbar-corner { background: #f7f7f7; }

/* ---------- 좁은 폭(휴대폰) ---------- */
@media (max-width: 1000px) {
  .side { position: fixed; right: 0; top: calc(var(--top-h) + var(--title-h)); bottom: 0; z-index: 28; width: 200px; min-height: 0; overflow-y: auto; box-shadow: -2px 0 6px rgba(0, 0, 0, .12); }
  .side-handle { position: fixed; right: 0; top: 50%; z-index: 28; }
  body:not(.side-collapsed) .side-handle { right: 200px; }
  .msearch input { width: 130px; }
}
@media (max-width: 760px) {
  /* 휴대폰: 페이지가 굴러가고 표는 높이 제한 */
  .shell { height: auto; min-height: 100%; overflow: visible; }
  .main { overflow: visible; display: block; }
  .screen, .screen > .screen-body { display: block; }
  .screen-body .tbl-box > .tbl-wrap { max-height: 65vh !important; }
  .topbar { padding: 0 8px; gap: 4px; }
  .topbar .logo { font-size: 14px; margin-right: 2px; }
  #period-pill, .msearch, .user-name { display: none; }
  .pill.co { max-width: 32vw; overflow: hidden; text-overflow: ellipsis; display: inline-block; line-height: 18px; }
  .main { padding: 8px; }
  .tb-title { font-size: 14px; }
  .is-main .main { padding: 8px; }
  .mm { gap: 8px; }
  .am-tab { padding: 0 9px; }
  .am-tbtn-sep { display: none; }
  .am-box { height: auto; max-height: none; min-height: 360px; }
  .am-left { flex-basis: 46%; }
  .am-group { padding-left: 14px; }
  .am-group.on { padding-left: 9px; }
  .am-right { padding: 12px 8px; grid-template-columns: minmax(0, 1fr); }
  .mym-cols { flex-direction: column; gap: 10px; }
  .mym.edit { padding-right: 10px; }
  .mym.edit .mym-btns { right: 15px; }
  .mym-all { position: static; height: 420px; margin: 10px 5px 0; width: auto; }
  .mym-list { height: auto; min-height: 200px; }
  .tbl-wrap { max-height: 65vh; }
  .toolbar, .wh-filter { gap: 6px 8px; }
}
@media (max-width: 420px) {
  .pill.co { display: none; }
  .range input[type="date"] { width: 112px; }
}
/* ---------- 인쇄(app.js printScreen·preparePrint, 2026-12-01 검수 1-4) ----------
 * 인쇄 전에 남은 줄을 모두 그리고(app.js), 굴림 상자는 풀고(pr-open · 담은 칸 pr-up · 세로 flex 안 pr-col), 종이 맨 위에 머리(pr-head).
 * 다 못 그린 표(pr-partial)는 합계 줄을 빼고 '몇 줄까지만' 글(pr-cut). 합계 줄은 쪽마다 되풀이하지 않고 끝에 한 번. */
.pr-head, .pr-cut { display: none; }
.screen.pr-drawing { display: none !important; } /* 인쇄 준비로 남은 줄을 그리는 동안(알림창 뒤) */
@media print {
  html, body { height: auto !important; overflow: visible !important; }
  .topbar, .titlebar, .side, .side-handle, .app-rail, .tbl-more, .toast, .dlg-ov, .wd-pop, .pop { display: none !important; }
  .shell { display: block; height: auto; overflow: visible; }
  .body { display: block; }
  .main, .screen, .screen > .screen-body { display: block; overflow: visible; }
  .main { padding: 0; }
  .tbl-wrap { max-height: none !important; overflow: visible !important; border-left: 0; border-right: 0; }
  .pr-open { overflow: visible !important; max-height: none !important; height: auto !important; }
  .pr-up { overflow: visible !important; max-height: none !important; height: auto !important; }
  .pr-col { flex: none !important; min-height: 0 !important; }
  .tbl thead th, .tbl tfoot td { position: static !important; }
  /* 칸 폭 고정 표(…로 자름 — 자동전표처리 등)는 종이에서 금액·이름이 잘리지 않게 글 길이대로, 글 칸은 띄어쓰기에서 줄을 바꿈.
   * 그래도 종이보다 넓은 표는 크롬이 쪽을 줄여 맞춘다(가로가 아주 넓으면 인쇄 창에서 가로 방향) */
  .tbl.fixed, .av-grid table.tbl, .av-jr table.tbl { table-layout: auto !important; min-width: 0 !important; }
  .tbl.fixed th, .tbl.fixed td, .av-grid .tbl th, .av-grid .tbl td, .av-jr .tbl td { overflow: visible !important; text-overflow: clip !important; }
  :is(.tbl.fixed, .av-grid .tbl, .av-jr .tbl) td:not(.num):not(.c):not(.amt):not(.no) { white-space: normal !important; word-break: keep-all; }
  .tbl tfoot { display: table-row-group; }
  .tbl tbody.tbl-fill { display: none !important; }
  .tbl td.empty { height: auto !important; }
  .pr-partial tfoot { display: none !important; }
  .pr-partial > .pr-cut:not(:empty) { display: block; margin: 4px 0 8px; font-size: 11px; color: #000; font-weight: bold; }
  .pr-head { display: block; margin: 0 0 8px; padding-bottom: 5px; border-bottom: 2px solid #000; color: #000; }
  .pr-head .pr-title { text-align: center; font-size: 18px; font-weight: bold; letter-spacing: 1px; margin-bottom: 6px; }
  .pr-head .pr-line { display: flex; justify-content: space-between; gap: 16px; font-size: 11px; line-height: 1.6; }
  /* 재무제표일괄출력은 제 종이 모양(closing-reports.js cr-printing)을 그대로 */
  body.cr-printing .pr-head { display: none !important; }
}
