/* ehr-bigfont-20261020: 글씨 약 8% 키움 */
/* 더갓 e-HR 공통 상단 내비게이션(GNB) — 모든 화면 공통.
   탭 순서: 공지게시판 · 조직도 · 근태 · 휴가결재 · 자리배치도 · 인사
   오른쪽 위: 메신저 · 관리자 · (페이지별 버튼 슬롯)
   ※ 페이지마다 CSS가 달라서 이 파일은 다른 스타일에 기대지 않고 단독으로 동작합니다. */

:root { --gnb-h: 52px; --gnb-accent: #1f4fbf; }

.gnb {
  position: sticky; top: 0; z-index: 400;
  background: #232833; color: #fff;
  border-bottom: 1px solid #333a49;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .22);
  font-family: "Noto Sans KR", system-ui, -apple-system, sans-serif;
  font-size:16px; line-height: 1.5;
}
.gnb * { box-sizing: border-box; }
.gnb-in { height: var(--gnb-h); display: flex; align-items: center; gap: 10px; padding: 0 14px; }

/* 로고 */
.gnb-brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: #fff; flex: none; padding-right: 4px; }
.gnb-brand img { width: 26px; height: 26px; object-fit: contain; border-radius: 6px; background: #fff; padding: 2px; }
.gnb-brand b { font-size:17.5px; font-weight: 700; letter-spacing: -.2px; }
.gnb-brand small { font-size:14px; color: #9aa4b8; font-weight: 500; }

/* 탭 */
.gnb-tabs { display: flex; align-items: stretch; gap: 2px; height: 100%; flex: 1 1 auto; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.gnb-tabs::-webkit-scrollbar { display: none; }
.gnb-tab {
  position: relative; display: flex; align-items: center; gap: 7px; flex: none;
  padding: 0 14px; height: 100%; border: 0; background: none; cursor: pointer;
  color: #b7c0d0; font: inherit; font-weight: 500; text-decoration: none; white-space: nowrap;
  transition: color .12s, background .12s;
}
.gnb-tab i { font-style: normal; font-size:17.5px; line-height: 1; }
.gnb-tab:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.gnb-tab.on { color: #fff; font-weight: 700; background: rgba(255, 255, 255, .09); }
.gnb-tab.on::after { content: ''; position: absolute; left: 10px; right: 10px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--gnb-accent); }

/* 오른쪽 영역 */
.gnb-right { margin-left: auto; display: flex; align-items: center; gap: 8px; flex: none; }
.gnb-btn {
  display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px;
  border: 1px solid #3d4557; border-radius: 8px; background: #2d3444; color: #e7ebf3;
  font: inherit; font-weight: 500; cursor: pointer; white-space: nowrap;
}
.gnb-btn:hover { background: #363e51; color: #fff; }
.gnb-btn.msgr { background: var(--gnb-accent); border-color: #ea6a45; color: #fff; font-weight: 700; }
.gnb-btn.msgr:hover { background: #ef5f38; }
.gnb-btn.msgr.ring { animation: gnb-ring 1s ease-in-out 3; }
@keyframes gnb-ring {
  0%, 100% { transform: translateY(0); }
  20% { transform: translateY(-3px); }
  40% { transform: translateY(1px); }
  60% { transform: translateY(-2px); }
}

/* 알림 배지 */
.gnb-badge {
  display: none; min-width: 17px; height: 17px; padding: 0 5px; border-radius: 9px;
  background: #e0483a; color: #fff; font-size:14px; font-weight: 700; line-height: 17px;
  text-align: center; font-variant-numeric: tabular-nums;
}
.gnb-badge.show { display: inline-block; }
.gnb-tab .gnb-badge { margin-left: 2px; }

/* 관리자 드롭다운 */
.gnb-menu { position: relative; }
.gnb-pop {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 210px; padding: 6px;
  background: #fff; color: #1b2230; border: 1px solid #dde3ee; border-radius: 10px;
  box-shadow: 0 12px 34px rgba(16, 22, 34, .22); display: none; flex-direction: column; gap: 2px;
}
.gnb-pop.open { display: flex; }
.gnb-pop > * { width: 100%; justify-content: flex-start; }
.gnb-pop .gnb-pop-empty { padding: 12px 10px; color: #8a93a6; font-size:15px; text-align: center; }
/* 페이지에서 옮겨온 버튼들이 드롭다운 안에서도 자연스럽게 보이도록 */
.gnb-pop button, .gnb-pop .admin-toggle, .gnb-pop .log-btn {
  display: flex !important; align-items: center; gap: 8px; height: 34px; padding: 0 10px;
  background: none; border: 0; border-radius: 7px; color: #1b2230; font:inherit;font-size:16px;
  cursor: pointer; text-align: left;
}
.gnb-pop button:hover, .gnb-pop .admin-toggle:hover, .gnb-pop .log-btn:hover { background: #f1f4fa; }
.gnb-pop button > span { display: inline !important; }

/* 페이지별 버튼 슬롯(인사 화면의 테마 전환·프로필 등) */
.gnb-slot { display: flex; align-items: center; gap: 8px; }
.gnb-slot .userchip { cursor: pointer; }
.gnb-slot .me { color: #c3cbd9; font-size:15px; white-space: nowrap; }
.gnb-slot .icon-btn { height: 34px; min-width: 34px; border: 1px solid #3d4557; border-radius: 8px; background: #2d3444; color: #e7ebf3; cursor: pointer; font-size:17.5px; }
.gnb-slot .icon-btn:hover { background: #363e51; }
.gnb-slot .userchip { background: #2d3444; border: 1px solid #3d4557; color: #e7ebf3; }
.gnb-slot .userchip:hover { background: #363e51; border-color: #4c566d; }
.gnb-slot .userchip .uinfo b { color: #fff; }
.gnb-slot .userchip .uinfo small, .gnb-slot .userchip .lo { color: #9aa4b8; }

/* 본문 상단 여백 · 기존 페이지 툴바는 GNB 아래에 붙도록 */
body.has-gnb .toolbar { top: var(--gnb-h); z-index: 200; }

/* 메신저 알림 팝업 (오른쪽 아래) */
.chat-toasts {
  position: fixed; right: 18px; bottom: 76px; z-index: 9999;
  display: flex; flex-direction: column; gap: 10px; align-items: flex-end;
  font-family: "Noto Sans KR", system-ui, -apple-system, sans-serif;
}
.chat-toast {
  width: 320px; max-width: calc(100vw - 36px); padding: 12px 14px;
  background: #fff; color: #1b2230; border: 1px solid #e2e7f0; border-left: 4px solid var(--gnb-accent);
  border-radius: 10px; box-shadow: 0 14px 38px rgba(16, 22, 34, .26);
  cursor: pointer; animation: chat-toast-in .22s ease-out;
}
@keyframes chat-toast-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.chat-toast.out { opacity: 0; transform: translateY(8px); transition: opacity .2s, transform .2s; }
.chat-toast-head { display: flex; align-items: center; gap: 7px; margin-bottom: 4px; }
.chat-toast-head b { font-size:16px; font-weight: 700; }
.chat-toast-head .ch { font-size:14px; color: #8a93a6; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-toast-head .x { margin-left: auto; border: 0; background: none; color: #8a93a6; font-size: 17.5px; line-height: 1; cursor: pointer; padding: 2px 4px; }
.chat-toast-head .x:hover { color: #1b2230; }
.chat-toast-body { font-size:16px; color: #3d4757; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; word-break: break-all; }
.chat-toast-foot { margin-top: 7px; font-size:14px; color: #E1502A; font-weight: 700; }

@media (prefers-color-scheme: dark) {
  .chat-toast { background: #1b2230; color: #e8ecf4; border-color: #2a3342; }
  .chat-toast-body { color: #a5afc2; }
  .gnb-pop { background: #1b2230; color: #e8ecf4; border-color: #2a3342; }
  .gnb-pop button, .gnb-pop .admin-toggle, .gnb-pop .log-btn { color: #e8ecf4; }
  .gnb-pop button:hover, .gnb-pop .admin-toggle:hover, .gnb-pop .log-btn:hover { background: #232c3b; }
}

@media (max-width: 1180px) {
  .gnb-brand small { display: none; }
  .gnb-tab { padding: 0 11px; gap: 5px; }
}
@media (max-width: 860px) {
  .gnb-in { gap: 6px; padding: 0 8px; }
  .gnb-tab { padding: 0 9px; }
  .gnb-tab span { display: none; }
  .gnb-tab i { font-size: 18.5px; }
  .gnb-btn span.t { display: none; }
  .gnb-brand b, .gnb-brand small { display: none; }
  .gnb-slot .me { display: none; }
  .gnb-slot .userchip { padding: 0 5px; }
  .gnb-slot .userchip .uinfo, .gnb-slot .userchip .lo { display: none; }
}
@media print { .gnb, .chat-toasts { display: none !important; } }

/* ================================================================
   클라우드 전용: 왼쪽 메뉴(그룹웨어형) — body.gnb-cloud / body.has-side
   사내 서버에서는 이 규칙이 적용되지 않습니다 (위의 상단 탭 그대로).
   ================================================================ */
:root { --side-w: 228px; }
.side {
  position: fixed; left: 0; top: 0; bottom: 0; width: var(--side-w); z-index: 40;
  background: #1c212b; color: #c6cdda; display: flex; flex-direction: column;
  border-right: 1px solid #2a303c;
  font-family: "Noto Sans KR", system-ui, -apple-system, sans-serif; font-size:17.5px;
}
.side-brand { display: flex; flex-direction: column; gap: 6px; padding: 22px 20px 18px; text-decoration: none; border-bottom: 1px solid #2a303c; }
.side-brand img { width: 138px; height: auto; display: block; }
.side-brand small { color: #8a94a8; font-size:14px; letter-spacing: .2px; }
.side-nav { flex: 1; overflow-y: auto; padding: 10px 0; scrollbar-width: thin; }
.side-item {
  position: relative; display: flex; align-items: center; gap: 12px; height: 44px; padding: 0 16px 0 20px;
  color: #b3bccc; text-decoration: none; font-weight: 500; transition: background .12s, color .12s;
}
.side-item i { width: 22px; flex-shrink: 0; text-align: center; font-style: normal; font-size: 17.5px; line-height: 1; }
.side-item span { display: flex; align-items: baseline; gap: 6px; min-width: 0; overflow: hidden; white-space: nowrap; }   /* 메뉴 이름은 줄바꿈하지 않음 */
.side-item span small { font-size:14px; color: #7d879b; font-weight: 500; overflow: hidden; text-overflow: ellipsis; min-width: 0; }   /* 설명이 길면 … 로 줄임 */
.side-item:hover { background: rgba(255, 255, 255, .05); color: #fff; }
.side-item.on { background: #11151d; color: #fff; font-weight: 700; }
.side-item.on::before { content: ''; position: absolute; left: 0; top: 9px; bottom: 9px; width: 3px; border-radius: 0 3px 3px 0; background: var(--gnb-accent); }
.side-item .gnb-badge { margin-left: auto; }
.side-item .ext { margin-left: auto; font-style: normal; font-size:15px; color: #6f7a8f; }
.side-sep { height: 1px; background: #2a303c; margin: 8px 20px; }
.side-foot { padding: 12px 20px 16px; font-size:14px; color: #6a7488; border-top: 1px solid #2a303c; }
.side-scrim { display: none; }

body.has-side { padding-left: var(--side-w); }
/* 클라우드 상단바: 밝은 색 · 메뉴 이름 + 오른쪽 버튼 */
body.gnb-cloud .gnb { background: #fff; color: #1b2230; border-bottom: 1px solid #e3e7ef; box-shadow: 0 1px 0 rgba(16, 22, 34, .03); }
body.gnb-cloud .gnb .gnb-brand, body.gnb-cloud .gnb .gnb-tabs { display: none; }
body.gnb-cloud .gnb-in { padding: 0 20px; }
.gnb-title { font-size: 17.5px; font-weight: 700; color: #1b2230; letter-spacing: -.2px; }
.gnb-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; flex-shrink: 1; }   /* 휴대폰에서 제목이 한 글자씩 세로로 꺾이지 않게 */
.gnb-burger { display: none; width: 36px; height: 36px; border: 1px solid #e3e7ef; border-radius: 8px; background: #f5f7fb; color: #1b2230; font-size: 19.5px; cursor: pointer; }
body.gnb-cloud .gnb-btn { background: #f5f7fb; border-color: #e3e7ef; color: #1b2230; }
body.gnb-cloud .gnb-btn:hover { background: #eceff5; }
body.gnb-cloud .gnb-btn.msgr { background: var(--gnb-accent); border-color: var(--gnb-accent); color: #fff; }
body.gnb-cloud .gnb-slot .userchip { background: #f5f7fb; border-color: #e3e7ef; color: #1b2230; }
body.gnb-cloud .gnb-slot .userchip .uinfo b { color: #1b2230; }
body.gnb-cloud .gnb-slot .userchip .uinfo small, body.gnb-cloud .gnb-slot .userchip .lo { color: #6b7488; }
body.gnb-cloud .gnb-slot .me { color: #5a6478; }
body.gnb-cloud .gnb-slot .icon-btn { background: #f5f7fb; border-color: #e3e7ef; color: #1b2230; }

@media (max-width: 960px) {
  body.has-side { padding-left: 0; }
  .side { z-index: 700; transform: translateX(-100%); transition: transform .2s ease; box-shadow: none; }
  body.side-open .side { transform: none; box-shadow: 8px 0 30px rgba(0, 0, 0, .3); }
  body.side-open .side-scrim { display: block; position: fixed; inset: 0; z-index: 690; background: rgba(15, 19, 27, .45); }
  .gnb-burger { display: inline-flex; align-items: center; justify-content: center; }
}
@media print { .side, .side-scrim { display: none !important; } body.has-side { padding-left: 0; } }
.gnb-user small { font-size:14px; color: #8a93a6; font-weight: 500; }
.gnb-user em { font-style: normal; font-size:15px; color: #8a93a6; border-left: 1px solid #e3e7ef; padding-left: 8px; margin-left: 2px; }
.gnb-user:hover em { color: var(--gnb-accent); }
@media (max-width: 860px) { .gnb-user .t { display: none; } }
/* 화면 아래에 붙는 막대(조직도 "조직 현황" 등)는 왼쪽 메뉴 옆에서 시작 */
body.has-side #statsPanel { left: var(--side-w); }
@media (max-width: 960px) { body.has-side #statsPanel { left: 0; } }

/* 알림 🔔 */
.gnb-btn.bell i{font-size:17.5px}
/* 안 본 알림 → 종 버튼 깜빡임 (2026-10-21 담당자 요청, topnav.js bellBlink) */
.gnb-btn.bell.blink,body.gnb-cloud .gnb-btn.bell.blink{animation:gnb-blink 1.1s ease-in-out infinite;border-color:#e5484d}
.gnb-btn.bell.blink i{display:inline-block;animation:gnb-bell-swing 1.1s ease-in-out infinite;transform-origin:50% 10%}
@keyframes gnb-blink{0%,100%{background:#fff;color:#1b2230;box-shadow:0 0 0 0 rgba(229,72,77,0)}50%{background:#e5484d;color:#fff;box-shadow:0 0 0 4px rgba(229,72,77,.25)}}
@keyframes gnb-bell-swing{0%,50%,100%{transform:rotate(0)}15%{transform:rotate(14deg)}35%{transform:rotate(-12deg)}}
@media (prefers-reduced-motion: reduce){
  .gnb-btn.bell.blink,body.gnb-cloud .gnb-btn.bell.blink{animation:none;background:#e5484d;color:#fff}
  .gnb-btn.bell.blink i{animation:none}
}
.gnb-notify{position:fixed;z-index:900;width:min(380px,92vw);max-height:70vh;overflow:auto;background:#fff;border:1px solid #e3e7ef;border-radius:14px;
  box-shadow:0 18px 44px rgba(15,19,27,.22)}
.gnb-notify .nt-h{display:flex;align-items:center;gap:8px;padding:12px 14px;border-bottom:1px solid #eef1f6;position:sticky;top:0;background:#fff;border-radius:14px 14px 0 0}
.gnb-notify .nt-h b{font-size:16px}
.gnb-notify .nt-h .nt-allow{margin-left:auto;border:1px solid #f0c9bd;background:#fff6f2;color:#c8431f;font-size:13px;border-radius:7px;padding:3px 8px;cursor:pointer}
.gnb-notify .nt-h .nt-allow:hover{background:#ffeadf}
.gnb-notify .nt-h .nt-allow + .nt-all{margin-left:8px}
.gnb-notify .nt-h .nt-all{margin-left:auto;border:0;background:none;color:#5a6478;font-size:14px;cursor:pointer}
.gnb-notify .nt-h .nt-all:hover{color:#E1502A}
.gnb-notify .nt-i{display:flex;gap:10px;padding:11px 14px;border-bottom:1px solid #f3f5f9;text-decoration:none;color:#1b2230}
.gnb-notify .nt-i:hover{background:#f7f9fc}
.gnb-notify .nt-i.new{background:#fff7f3}
.gnb-notify .nt-i.new:hover{background:#ffeee7}
.gnb-notify .nt-i .ic{flex:none;width:26px;height:26px;border-radius:8px;background:#eef1f6;display:grid;place-items:center;font-size:15px;font-weight:700;color:#5a6478}
.gnb-notify .nt-i .tx{min-width:0;display:block}
.gnb-notify .nt-i b{display:block;font-size:15px;line-height:1.45;word-break:break-word}
.gnb-notify .nt-i small{display:block;color:#5a6478;font-size:14px;margin-top:2px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.gnb-notify .nt-i em{display:block;font-style:normal;color:#8a93a6;font-size:13px;margin-top:3px}
.gnb-notify .nt-hint{display:flex;flex-wrap:wrap;align-items:center;gap:6px;padding:12px 14px;background:#fff6f2;border-bottom:1px solid #f3d9cf}
.gnb-notify .nt-hint b{font-size:14.5px;color:#c8431f}
.gnb-notify .nt-hint span{flex:1 1 100%;font-size:13.5px;color:#5a6478}
.gnb-notify .nt-hint i{flex:1 1 100%;font-style:normal;font-size:13px;color:#8a93a6}
.gnb-notify .nt-hint .nt-on{margin-left:auto;border:0;background:#E1502A;color:#fff;font-size:13.5px;font-weight:600;border-radius:7px;padding:5px 14px;cursor:pointer}
.gnb-notify .nt-hint .nt-on:hover{background:#c8431f}
.gnb-notify .nt-empty{padding:28px;text-align:center;color:#8a93a6;font-size:15px}

/* 뒤로 · 앞으로 (상단바 왼쪽) */
.gnb-hist{display:flex;gap:4px;align-items:center;margin-right:2px}
.gnb-nav{width:32px;height:32px;border-radius:9px;border:1px solid rgba(255,255,255,.22);background:rgba(255,255,255,.10);
  color:#fff;font-size:21.5px;line-height:1;cursor:pointer;display:grid;place-items:center;padding:0;transition:background .15s,opacity .15s}
.gnb-nav:hover:not(:disabled){background:rgba(255,255,255,.22)}
.gnb-nav:disabled{opacity:.35;cursor:default}
/* 클라우드는 상단바가 흰색이라 글자색을 바꿔 줍니다 */
body.gnb-cloud .gnb-nav{background:#f5f7fb;border-color:#e3e7ef;color:#1b2230}
body.gnb-cloud .gnb-nav:hover:not(:disabled){background:#eceff5}
@media (max-width:700px){ .gnb-hist{gap:2px} .gnb-nav{width:28px;height:28px;font-size:18.5px} }

/* 맨 위로 */
.gnb-top{position:fixed;right:18px;bottom:18px;z-index:9998;width:46px;height:46px;border-radius:50%;
  border:1px solid #e2e7f0;background:#fff;color:#39435a;font-size:21.5px;line-height:1;cursor:pointer;
  box-shadow:0 10px 26px rgba(16,22,34,.20);opacity:0;visibility:hidden;transform:translateY(10px);transition:opacity .2s,transform .2s,visibility .2s}
.gnb-top.show{opacity:1;visibility:visible;transform:none}
.gnb-top:hover{background:#f4f7fb}

/* 왼쪽 메뉴: 게시판 아래 분류 목록 */
.side-cats{display:flex;flex-direction:column;padding:2px 0 6px 0}
.side-cats .side-cat{display:flex;align-items:center;gap:6px;padding:7px 14px 7px 44px;color:#b9c2d4;text-decoration:none;font-size:14px;border-radius:8px;margin:0 8px}
.side-cats .side-cat span{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.side-cats .side-cat b{font-weight:600;font-size:12.5px;opacity:.6}
.side-cats .side-cat:hover{background:rgba(255,255,255,.08);color:#fff}
.side-cats .side-cat.on{background:rgba(225,80,42,.18);color:#fff;font-weight:600}

/* 숨김 속성이 display 에 덮이지 않게 (앱 설치 버튼 등) */
.gnb-btn[hidden] { display: none !important; }


/* ================================================================
   2026-09-30 THE GOD Dashboard 와 같은 톤앤매너 (클라우드 전용)
   · 위쪽 막대: 짙은 남색 · 왼쪽 메뉴: 밝은 회색 + 묶음 제목 + 파란 선택 · 이모티콘 아이콘 숨김
   ================================================================ */
body.gnb-cloud .gnb { background: #131a28; color: #fff; border-bottom: 1px solid #0b101a; box-shadow: inset 0 3px 0 #1f4fbf; }   /* 맨 위 파란 줄 — 창 제목 줄과 구분(2026-10-27 담당자 요청) */
body.gnb-cloud .gnb-title { color: #fff; font-size: 18.5px; font-weight: 800; }
body.gnb-cloud .gnb-btn { background: transparent; border-color: #34405a; color: #dfe5ef; height: 32px; font-size: 15px; border-radius: 7px; }
body.gnb-cloud .gnb-btn:hover { background: #1d2638; color: #fff; }
body.gnb-cloud .gnb-btn.msgr { background: #1f4fbf; border-color: #1f4fbf; color: #fff; }
body.gnb-cloud .gnb-btn.msgr:hover { background: #2a5bd0; }
body.gnb-cloud .gnb-slot .userchip, body.gnb-cloud .gnb-slot .icon-btn { background: transparent; border-color: #34405a; color: #dfe5ef; }
body.gnb-cloud .gnb-slot .userchip .uinfo b { color: #fff; }
body.gnb-cloud .gnb-slot .userchip .uinfo small, body.gnb-cloud .gnb-slot .userchip .lo, body.gnb-cloud .gnb-slot .me { color: #9aa6bb; }
body.gnb-cloud .gnb-user small, body.gnb-cloud .gnb-user em { color: #9aa6bb; border-color: #34405a; }
body.gnb-cloud .gnb-nav { background: transparent; border-color: #34405a; color: #dfe5ef; }
body.gnb-cloud .gnb-nav:hover:not(:disabled) { background: #1d2638; }
body.gnb-cloud .gnb-burger { background: transparent; border-color: #34405a; color: #fff; }
@media (min-width: 861px) { body.gnb-cloud .gnb-btn i { display: none; } }     /* 넓은 화면: 글자만 (좁은 화면은 아이콘만) */

.side { background: #eef1f5; color: #2a3345; border-right: 1px solid #dde2ea; font-size: 15.5px; }
.side-brand { flex-direction: row; align-items: center; gap: 9px; height: var(--gnb-h); padding: 0 16px; background: #131a28; border-bottom: 1px solid #0b101a; box-shadow: inset 0 3px 0 #1f4fbf; }
.side-brand img { width: auto; height: 17px; }
.side-brand .dot { width: 8px; height: 8px; border-radius: 50%; background: #e0293b; flex: none; }
.side-brand b { color: #fff; font-size: 17.5px; font-weight: 800; letter-spacing: -.2px; }
.side-nav { padding: 8px 0 14px; }
.side-group { padding: 14px 18px 5px; font-size: 13.5px; font-weight: 800; color: #1c2436; letter-spacing: .02em; }
.side-group:first-child { padding-top: 6px; }
.side-item { height: 34px; margin: 1px 10px; padding: 0 10px; border-radius: 7px; color: #2a3345; font-weight: 500; }
.side-item i { display: none; }
.side-item:hover { background: #e1e6ee; color: #111827; }
.side-item.on { background: #1f4fbf; color: #fff; font-weight: 700; }
.side-item.on::before { display: none; }
.side-item .ext { color: #8a94a8; }
.side-item.on .ext { color: #dbe4ff; }
.side-sep { background: #dde2ea; }
.side-foot { color: #8a94a8; border-top: 1px solid #dde2ea; }
.side-cats .side-cat { color: #4a5568; padding-left: 28px; }
.side-cats .side-cat:hover { background: #e1e6ee; color: #111827; }
.side-cats .side-cat.on { background: #dfe7fb; color: #1f4fbf; }
.gnb-notify .nt-h .nt-allow { border-color: #c9d6f5; background: #f1f5ff; color: #1f4fbf; }
.gnb-notify .nt-h .nt-all:hover { color: #1f4fbf; }
.gnb-notify .nt-i.new { background: #f3f6fe; }
.gnb-notify .nt-i.new:hover { background: #e9effd; }
.gnb-notify .nt-hint { background: #f3f6fe; border-bottom-color: #dbe4fa; }
.gnb-notify .nt-hint b { color: #1f4fbf; }
.gnb-notify .nt-hint .nt-on { background: #1f4fbf; }
.gnb-notify .nt-hint .nt-on:hover { background: #1a44a6; }
.chat-toast-foot { color: #1f4fbf; }

/* 왼쪽 메뉴 게시판 분류: 긴 이름도 잘리지 않게 두 줄까지 (2026-09-30) */
.side-cats .side-cat span{white-space:normal;overflow:visible;text-overflow:clip;word-break:keep-all;overflow-wrap:anywhere;line-height:1.35}

/* 2026-10-01 휴대폰: 위쪽 막대 버튼이 화면 밖으로 넘쳐 가로로 흔들리던 문제 — 간격·여백을 줄이고, 아주 좁으면 밝기 전환 버튼을 숨김(기기 설정을 따름) */
@media (max-width: 440px) { body .gnb-right { gap: 4px; } body .gnb-right .gnb-btn { padding-left: 8px; padding-right: 8px; min-width: 0; } }
@media (max-width: 380px) { body .gnb-slot #themeBtn { display: none; } }
@media (max-width: 440px) { body .gnb-user em { display: none; } }   /* 「로그아웃」 글자는 숨기고 단추(누르면 로그아웃 확인)는 그대로 */

/* ===== 2026-10-06 왼쪽 메뉴 가독성 — 묶음 제목과 메뉴를 뚜렷이 구분 · 묶음 접기(+/−) · 게시판 분류 + 버튼 ===== */
.side { font-size: 16px; }
.side-nav { padding: 6px 0 16px; }
.side-group { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 10px 10px 2px; padding: 12px 6px 6px 10px; border-top: 1px solid #d9dfe8;
  font-size: 13px; font-weight: 700; color: #6b7689; letter-spacing: .06em; cursor: pointer; user-select: none; }
.side-nav > .side-group:first-child { margin-top: 0; padding-top: 8px; border-top: 0; }
.side-group:hover { color: #1c2436; }
.side-group:focus-visible, .side-plus:focus-visible { outline: 2px solid #1f4fbf; outline-offset: 1px; border-radius: 6px; }
.side-group.shut { color: #1c2436; }
.side-tog, .side-plus { flex: none; width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center; border-radius: 6px;
  font: 700 16px/1 inherit; font-style: normal; color: #6b7689; background: transparent; border: 0; padding: 0; cursor: pointer; letter-spacing: 0; }
.side-group:hover .side-tog, .side-plus:hover { background: #dbe1ea; color: #111827; }
.side-sec[hidden], .side-plus[hidden], .side-cats[hidden] { display: none !important; }   /* 2026-10-16: .side-cats 의 display:flex 가 hidden 을 덮어 + 버튼이 안 먹던 문제 */
.side-sec { padding-bottom: 2px; }
.side-item { height: 36px; margin: 1px 10px; padding: 0 8px 0 16px; border-radius: 8px; color: #1f2937; font-size: 16px; font-weight: 500; gap: 8px; }
.side-item span { flex: 1; }
.side-item .gnb-badge, .side-item .ext { margin-left: 0; }
.side-item:hover { background: #e1e6ee; }
.side-item.on { box-shadow: 0 1px 2px rgba(31, 79, 191, .25); }
.side-item.on .side-plus { color: #e6ecff; }
.side-item.on .side-plus:hover { background: rgba(255, 255, 255, .18); color: #fff; }
.side-cats { margin: 2px 10px 6px 26px; padding: 0; border-left: 2px solid #d5dbe6; }
.side-cats .side-cat { margin: 0 0 0 4px; padding: 7px 8px 7px 10px; font-size: 14.5px; color: #4a5568; border-radius: 6px; }

/* ===== 2026-10-16 왼쪽 메뉴 「누가 보는 화면인지」 꼬리표 — 본인(파랑) · 관리자(빨강) · 담당/관리(노랑) ===== */
.side-scope { flex-shrink: 0; font-style: normal; font-size: 12px; font-weight: 700; line-height: 1; padding: 3px 6px; border-radius: 999px; letter-spacing: -.2px; }
.side-scope.s-self { background: #e6eeff; color: #1f4fbf; }
.side-scope.s-admin { background: #fde7e7; color: #b42318; }
.side-scope.s-perm { background: #fff1d6; color: #8a5a00; }
.side-item.on .side-scope { background: rgba(255,255,255,.22); color: #fff; }
.side-legend { font-size: 12.5px; color: #6b7385; line-height: 1.9; margin-bottom: 6px; white-space: normal; }
.side-legend .side-scope { font-size: 10.5px; padding: 2px 5px; }

/* 화면별 「사용 방법」 (2026-10-23 담당자 요청) — 제목 옆 버튼 + 안내 창(내용은 page-help.js) */
.gnb-help{flex-shrink:0;height:30px;padding:0 11px;border-radius:7px;border:1px solid #34405a;background:transparent;color:#dfe5ef;font:inherit;font-size:14px;font-weight:600;cursor:pointer;margin-left:2px}
.gnb-help:hover{background:#1d2638;color:#fff}
@media (max-width:700px){ .gnb-help{height:28px;padding:0 8px;font-size:14px} }
.gnb-help-bg{position:fixed;inset:0;z-index:10050;background:rgba(15,20,32,.45);display:flex;align-items:flex-start;justify-content:center;padding:6vh 16px;overflow:auto}
.gnb-help-dlg{background:#fff;border-radius:10px;border:1px solid #dde2ea;width:min(1100px,100%);box-shadow:0 18px 50px rgba(16,22,34,.28);color:#1b2230;display:flex;flex-direction:column;max-height:88vh}
.gnb-help-dlg .hd{display:flex;align-items:center;gap:10px;padding:16px 20px;border-bottom:1px solid #e8ecf2}
.gnb-help-dlg .hd b{font-size:19px;flex:1}
.gnb-help-dlg .hd .x{border:0;background:none;font-size:26px;line-height:1;color:#6b7487;cursor:pointer;padding:0 4px}
.gnb-help-dlg .bd{padding:16px 22px;overflow:auto;font-size:15.5px;line-height:1.7}
.gnb-help-dlg .bd p{margin:0 0 10px}
.gnb-help-dlg .bd ol,.gnb-help-dlg .bd ul{margin:0 0 6px;padding-left:22px}
.gnb-help-dlg .bd li{margin-bottom:8px}
.gnb-help-dlg .bd .tip{border:1px solid #dde2ea;border-radius:10px;background:#fbfcfe;padding:10px 14px;margin-top:12px}
.gnb-help-dlg .bd h3{font-size:16.5px;margin:14px 0 6px}
.gnb-help-dlg .ft{display:flex;justify-content:flex-end;padding:12px 20px;border-top:1px solid #e8ecf2}
.gnb-help-dlg .ft .ok{height:36px;padding:0 18px;border-radius:8px;border:0;background:#1f4fbf;color:#fff;font:inherit;font-size:15px;font-weight:700;cursor:pointer}

/* 2026-11-06 휴대폰(안드로이드 · 아이폰) — 위쪽 막대가 화면보다 넓어 모든 화면이 옆으로 밀리던 문제(390px 폭에서 약 90px 넘침)
   좁은 화면: 뒤로·앞으로 버튼 숨김(휴대폰 자체 뒤로 버튼 사용) · 「사용 방법」 → ?, 「글씨 크기」 → 가 · 남는 자리에 화면 제목 */
@media (max-width: 600px) {
  .gnb-hist { display: none; }
  .gnb-in { gap: 4px; padding: 0 6px; }
  .gnb-help[data-s] { font-size: 0 !important; width: 32px; height: 32px; padding: 0; margin-left: 0; display: inline-grid; place-items: center; }
  .gnb-help[data-s]::after { content: attr(data-s); font-size: 16px; font-weight: 800; }
  body.gnb-cloud .gnb-title { flex: 1 1 auto; font-size: 16px; }
  body .gnb-right { gap: 4px; }
}
