/* 사내 회계 — 공통 모양. 위하고(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; }

/* ---------- 로그인(흰 바탕, 파란 단추) ---------- */
.login { min-height: 100%; display: flex; flex-direction: column; background: #fff; }
.login-top { height: var(--top-h); display: flex; align-items: center; padding: 0 14px; border-bottom: 1px solid #e5e5e5; }
.login-main { flex: 1; display: flex; align-items: flex-start; justify-content: center; padding: 80px 16px 16px; }
.login-card { width: 100%; max-width: 340px; display: flex; flex-direction: column; gap: 10px; }
.login-title { margin: 0 0 4px; font-size: 18px; font-weight: bold; color: #222; }
.login-sub { margin: 0 0 6px; color: var(--ink-3); font-size: 12px; }
.login-card .field { display: flex; flex-direction: column; align-items: stretch; gap: 4px; }
.login-card input { height: 34px; font-size: 13px; padding: 0 8px; }
.login-card .btn.primary { background: var(--wh-blue); border-color: var(--wh-blue); }

/* ---------- 틀: 맨 위 줄 + 제목 줄 + (본문 | 오른쪽 패널) ---------- */
.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 .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 에서 색·자리를 잼).
 * 왼쪽 끝 진남색 세로 앱 아이콘 줄(마우스를 올리면 펼쳐져 앱 이름) + 연파랑 바탕에
 * 흰 탭 줄(남색 테두리, 고른 탭 밑 파란 굵은 줄) → 남색 테두리 큰 상자 = 왼쪽 파란 그라데이션 대분류 | 오른쪽 흰 메뉴 칸(소분류 두 단).
 * 메인화면에서는 파란 제목 줄·오른쪽 패널이 없다(위하고 메인화면과 같게). */
.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: 39px; padding-top: var(--top-h); background: #353849; overflow: hidden;
}
.is-main .app-rail:hover, .is-main .app-rail:focus-within { width: 159px; box-shadow: 2px 0 6px rgba(0, 0, 0, .25); }
.ar-app {
  flex: none; display: flex; align-items: center; gap: 17px; height: 43px; padding-left: 9px;
  color: #878c95; text-decoration: none; white-space: nowrap; font-size: 12px;
}
.ar-ic { flex: none; display: inline-flex; width: 20px; height: 20px; }
.ar-ic svg { width: 20px; height: 20px; }
.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; }
.is-main .shell { padding-left: 39px; }
.is-main .titlebar, .is-main .side, .is-main .side-handle { display: none !important; }
.is-main .main { background: #d9e6f6; padding: 25px 78px 24px; }
.mm { display: flex; flex-direction: column; gap: 15px; min-width: 0; }
.am-tabs {
  flex: none; display: flex; align-items: stretch; height: 44px; padding-right: 7px;
  background: #fff; border: 1px solid #3e5385; border-bottom-width: 2px;
}
.am-tab {
  position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 0 12px 0 13px;
  font-size: 14px; white-space: nowrap; cursor: default; user-select: none;
}
.am-tab svg { flex: none; }
.am-tab.on { color: #3b4658; }
.am-tab.on svg { width: 14px; height: 13px; color: #34497f; }
.am-tab.on::after { content: ""; position: absolute; left: -1px; right: 0; bottom: -2px; height: 4px; background: #2e59b8; }
.am-tab.off { color: #a6a6a6; }
.am-tab.off svg { width: 20px; height: 20px; }
.am-tab-sep { flex: none; align-self: center; width: 1px; height: 28px; background: #e4e6ea; }
.am-tbtn {
  flex: none; align-self: center; display: inline-flex; align-items: center; gap: 4px; height: 21px; padding: 0 6px;
  border: 1px solid #d9d9d9; background: #fff; color: #333; font-size: 11px; 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; }
.am-box {
  flex: none; height: 453px; max-height: calc(100vh - var(--top-h) - 108px); min-height: 300px; display: flex; overflow: hidden;
  border: 1px solid #5b65a1; border-width: 1px 2px 2px 1px;
}
.am-left {
  flex: 0 0 287px; overflow-y: auto; padding: 19px 0 12px;
  background: linear-gradient(180deg, #4699e2 0, #5873d6 300px, #5972d6 100%);
  scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .45) transparent;
}
.am-group {
  display: block; width: 100%; min-height: 28px; text-align: left; border: 0; background: none; cursor: pointer;
  padding: 6px 10px 6px 24px; font-size: 12px; line-height: 16px; color: #fff; word-break: keep-all; overflow-wrap: anywhere;
}
.am-group:hover { text-decoration: underline; }
.am-group.on {
  width: calc(100% - 9px); margin-left: 9px; padding-left: 15px; background: #fff; color: #222;
  box-shadow: -1px 2px 4px rgba(0, 0, 0, .22); text-decoration: none;
}
.am-group.on::before { content: "▶"; display: inline-block; width: 11px; font-size: 9px; color: #2e7ecd; vertical-align: 1px; }
.am-right {
  flex: 1; min-width: 0; overflow-y: auto; padding: 22px 40px 20px 49px; background: #fff;
  display: grid; grid-template-columns: repeat(2, minmax(0, 450px)); column-gap: 82px; row-gap: 24px; align-content: start;
}
.am-sub h3 { margin: 0 0 7px; padding-bottom: 9px; font-size: 14px; font-weight: bold; color: #000; border-bottom: 1px solid #ebebeb; }
.am-sub ul { margin: 0; padding: 0; list-style: none; }
.am-sub a {
  display: flex; align-items: center; gap: 7px; min-height: 24px; padding: 3px 0; line-height: 16px;
  color: #222; text-decoration: none; font-size: 12px; word-break: keep-all; overflow-wrap: anywhere;
}
.am-sub a:hover { color: #2e59b8; text-decoration: underline; }
.am-ic { flex: none; display: inline-flex; width: 12px; height: 12px; color: #a6a6a6; }
.am-ic svg { width: 12px; height: 12px; }

/* 위하고처럼 페이지 전체는 움직이지 않는다: 틀은 창 높이에 고정, 본문·오른쪽 패널이 각자 안에서 굴러감.
 * 본문(.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; }
/* 줄 종류(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: 7px; min-height: 24px; padding: 3px 0; line-height: 16px; color: #b5b5b5; font-size: 12px; 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: 18px; background: #e4e6ea; margin: 0 10px; }
.am-boards { flex: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px; }
.am-board { background: #fff; border: 1px solid #d5dbe6; border-radius: 3px; padding: 10px 14px; min-height: 142px; }
.am-board h3 { margin: 0 0 6px; display: flex; align-items: center; font-size: 13px; font-weight: bold; color: #222; }
.am-board h3 .am-plus { margin-left: auto; color: #999; font-weight: normal; font-size: 16px; }
.am-board .am-empty { margin: 30px 0 0; text-align: center; color: #9a9a9a; font-size: 12px; }
.ar-all { position: absolute; left: 0; top: 0; width: 39px; 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 { width: calc(100% - 5px); margin-left: 5px; padding-left: 9px; }
  .am-right { padding: 12px 8px; grid-template-columns: minmax(0, 1fr); }
  .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; }
}
@media print {
  .topbar, .titlebar, .side, .side-handle, .app-rail, .tbl-more { display: none !important; }
  .shell { display: block; height: auto; overflow: visible; }
  .main, .screen, .screen > .screen-body { display: block; overflow: visible; }
  .tbl-wrap { max-height: none; overflow: visible; border-left: 0; border-right: 0; }
}
