/* 회사소개 사이트 — 01 "Editorial Navy" 컨셉. 서체 Noto Sans KR. */
@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;700&display=swap");

:root {
  --navy: #0A1A2F;
  --ink: #0f1116;
  --mute: #666;
  --line: #e5e1d8;
  --paper: #faf8f3;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body.csite {
  font-family: "Noto Sans KR", Pretendard, system-ui, sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.csite .container { max-width: 1280px; margin: 0 auto; padding: 0 32px; }
.csite .serif { font-family: Pretendard, sans-serif; }

/* ---------- GNB ---------- */
.csite-header { position: sticky; top: 0; background: #fff; border-bottom: 1px solid var(--line); z-index: 50; }
.gnb { display: flex; align-items: center; justify-content: space-between; height: 88px; }
.gnb__logo { font-family: Pretendard, sans-serif; font-size: 22px; font-weight: 500; letter-spacing: .22em; color: var(--navy); text-decoration: none; }
.gnb__nav ul { list-style: none; display: flex; gap: 36px; }
.gnb__nav a { text-decoration: none; color: var(--ink); font-size: 14px; font-weight: 400; padding-bottom: 4px; border-bottom: 1px solid transparent; transition: border-color .2s; }
.gnb__nav a:hover { border-color: var(--navy); }
.gnb__nav a.is-active { border-color: var(--navy); color: var(--navy); }
.gnb__nav-contact { display: none; }
.gnb__cta { background: var(--navy); color: #fff; padding: 12px 22px; font-size: 13px; text-decoration: none; letter-spacing: .06em; }
.gnb__toggle { display: none; background: none; border: 0; font-size: 22px; cursor: pointer; color: var(--navy); }

/* ---------- Hero (home) ---------- */
.hero { padding: 140px 0 120px; border-bottom: 1px solid var(--line); }
.hero__eyebrow { font-family: Pretendard, sans-serif; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--navy); margin-bottom: 24px; }
.hero h1 { font-size: 68px; font-weight: 500; letter-spacing: -.025em; line-height: 1.12; color: var(--navy); margin-bottom: 32px; max-width: 920px; }
.hero h1 em { font-family: Pretendard, sans-serif; font-weight: 900; font-style: normal; color: var(--navy); }
.hero__lead { font-size: 18px; color: var(--mute); max-width: 640px; line-height: 1.7; }

/* 스크롤 리빌 (JS가 모션 허용 시에만 .reveal 부여 → 실패/감속모드면 그대로 보임) */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
.hero .container, .page-hero .container { will-change: transform; }

/* ---------- Page hero (sub pages) ---------- */
.page-hero { padding: 120px 0 64px; border-bottom: 1px solid var(--line); }
.page-hero .kicker { font-family: Pretendard, sans-serif; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--navy); margin-bottom: 16px; }
.page-hero h1 { font-size: 52px; font-weight: 500; letter-spacing: -.02em; color: var(--navy); }
.page-hero h1 em { font-family: Pretendard, sans-serif; font-weight: 900; font-style: normal; }
.page-hero p { margin-top: 20px; font-size: 17px; color: var(--mute); max-width: 860px; line-height: 1.7; }

/* ---------- Sections ---------- */
.sec { padding: 120px 0; border-bottom: 1px solid var(--line); }
.sec--flush { border-bottom: 0; }
.sec--paper { background: var(--paper); }
/* 마지막 섹션 하단선 제거 — 푸터 border-top과 겹치지 않게 */
.csite main > section:last-child { border-bottom: 0; }
.sec-head { display: grid; grid-template-columns: 200px 1fr; gap: 48px; margin-bottom: 64px; align-items: start; }
.sec-num { font-family: Pretendard, sans-serif; font-size: 13px; font-weight: 600; color: var(--navy); letter-spacing: .12em; text-transform: uppercase; }
.sec-title { font-size: 42px; font-weight: 500; letter-spacing: -.02em; color: var(--navy); line-height: 1.18; }
.sec-title em { font-family: Pretendard, sans-serif; font-weight: 900; font-style: normal; }
.sec-more { display: inline-block; margin-top: 28px; font-size: 14px; font-weight: 500; color: var(--navy); border-bottom: 1px solid var(--navy); padding-bottom: 4px; text-decoration: none; }

/* ---------- About / prose ---------- */
.prose-grid { display: grid; grid-template-columns: 200px 1fr; gap: 48px; }
.prose-grid p { font-size: 19px; line-height: 1.85; color: #2a2a2f; max-width: 800px; }
.prose-grid p + p { margin-top: 24px; }
.keywords { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 10px; }
.keywords span { font-size: 12px; letter-spacing: .12em; color: var(--mute); border: 1px solid var(--line); padding: 7px 14px; text-transform: uppercase; }

/* ---------- Business ---------- */
.biz-grid { display: grid; grid-template-columns: 200px 1fr; gap: 48px; }
.biz-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 1px solid var(--line); }
.biz-item { padding: 36px 32px 36px 0; border-bottom: 1px solid var(--line); }
.biz-item:nth-child(2n) { padding-left: 32px; border-left: 1px solid var(--line); }
.biz-item .ord { display: block; font-size: 12px; color: var(--mute); letter-spacing: .16em; margin-bottom: 8px; }
.biz-item h3 { font-family: Pretendard, sans-serif; font-size: 32px; font-weight: 500; color: var(--navy); margin-bottom: 12px; }
.biz-item p { font-size: 15px; color: var(--mute); line-height: 1.7; }

/* 12 세부 서비스 */
.svc-list { border-top: 1px solid var(--line); }
.svc-row { display: grid; grid-template-columns: 104px 1fr; gap: 32px; padding: 28px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.svc-row .no { font-family: Pretendard, sans-serif; font-size: 17px; font-weight: 700; color: var(--navy); letter-spacing: .01em; }
.svc-row h4 { font-size: 22px; font-weight: 700; color: var(--navy); }
.svc-row p { margin-top: 6px; font-size: 14px; color: var(--mute); }

/* 세부 서비스 — 아이콘 행 */
.svc-items { border-top: 1px solid var(--line); }
.svc-item { display: grid; grid-template-columns: 56px 1fr; gap: 28px; padding: 32px 0; border-bottom: 1px solid var(--line); align-items: center; }
.svc-ico { width: 44px; height: 44px; color: var(--navy); }
.svc-ico svg { width: 100%; height: 100%; display: block; }
.svc-item .no { display: block; font-size: 12px; font-weight: 600; color: var(--mute); letter-spacing: .12em; margin-bottom: 4px; }
.svc-item h4 { font-size: 20px; font-weight: 700; color: var(--navy); }
.svc-item p { margin-top: 6px; font-size: 14px; color: var(--mute); line-height: 1.7; }

/* ---------- Portfolio ---------- */
.port-filter { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 48px; padding-bottom: 6px; }
.port-filter button { background: #fff; border: 1px solid var(--line); padding: 8px 18px; font-size: 13px; letter-spacing: .04em; color: var(--mute); cursor: pointer; font-family: inherit; white-space: nowrap; flex: 0 0 auto; }
.port-filter button.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }
.port-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.port-item { aspect-ratio: 4/5; background: #1a2638; color: #fff; padding: 24px; display: flex; flex-direction: column; justify-content: space-between; }
.port-item:nth-child(3n+2) { background: #222; }
.port-item:nth-child(3n) { background: #0A1A2F; }
.port-item .yr { font-family: Pretendard, sans-serif; font-size: 15px; font-weight: 600; letter-spacing: .04em; opacity: .92; }
.port-item .nm { font-size: 18px; font-weight: 600; line-height: 1.4; }
.port-item .kind { font-size: 11px; letter-spacing: .18em; opacity: .6; text-transform: uppercase; margin-top: 8px; }
/* 연도 선택 시 항목 패럴렉스 리빌 (포트폴리오 그리드 한정) */
.port-grid .port-item { opacity: 0; transform: translateY(36px); transition: opacity .6s ease, transform .7s cubic-bezier(.16,.84,.3,1); will-change: opacity, transform; }
.port-grid .port-item.is-reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .port-grid .port-item { opacity: 1; transform: none; transition: none; } }
/* 이미지가 있는 포트폴리오 카드: 이미지 cover + 가독성 그라데이션 */
.port-item.has-img { background-size: cover; background-position: center; background-repeat: no-repeat; position: relative; }
.port-item.has-img::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,26,47,.45) 0%, rgba(10,26,47,.05) 35%, rgba(10,26,47,.55) 100%); }
.port-item.has-img > * { position: relative; z-index: 1; }
.port-item.has-img { cursor: zoom-in; }

/* 포트폴리오 라이트박스 */
.pf-lb { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center;
    background: rgba(8,15,28,.92); padding: 40px; }
.pf-lb[hidden] { display: none; }
.pf-lb__fig { margin: 0; max-width: 90vw; max-height: 88vh; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.pf-lb__img { max-width: 90vw; max-height: 78vh; object-fit: contain; border-radius: 6px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.pf-lb__cap { color: #fff; text-align: center; font-size: 15px; }
.pf-lb__cap b { font-weight: 700; }
.pf-lb__cap span { opacity: .6; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; margin-left: 8px; }
.pf-lb__close { position: absolute; top: 22px; right: 28px; background: none; border: 0; color: #fff; font-size: 38px; line-height: 1; cursor: pointer; opacity: .8; }
.pf-lb__close:hover { opacity: 1; }
.pf-lb__nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.12); border: 0;
    color: #fff; width: 56px; height: 56px; border-radius: 50%; font-size: 34px; line-height: 1; cursor: pointer; transition: .15s; }
.pf-lb__nav:hover { background: rgba(255,255,255,.25); }
.pf-lb__nav--prev { left: 28px; }
.pf-lb__nav--next { right: 28px; }
@media (max-width: 640px) {
    .pf-lb { padding: 16px; }
    .pf-lb__nav { width: 44px; height: 44px; font-size: 26px; }
    .pf-lb__nav--prev { left: 10px; } .pf-lb__nav--next { right: 10px; }
}

/* Portfolio 마퀴 (메인) */
.port-marquee { overflow: hidden; margin-bottom: 32px; }
.port-track { display: flex; width: max-content; animation: port-scroll 320s linear infinite; }
.port-track .port-item { flex: 0 0 300px; width: 300px; margin-right: 24px; }
.port-marquee:hover .port-track { animation-play-state: paused; }
@keyframes port-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Client ---------- */
.client-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.client-cell { aspect-ratio: 3/2; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: center; padding: 24px; }
.client-cell span { font-size: 15px; font-weight: 600; color: var(--navy); text-align: center; letter-spacing: .02em; }
.client-cell img { max-width: 100%; max-height: 120px; object-fit: contain; }
.client-note { margin-top: 24px; font-size: 13px; color: var(--mute); }

/* ---------- Careers ---------- */
.job-list { border-top: 1px solid var(--line); }
.job-item { display: grid; grid-template-columns: 1fr auto; gap: 24px; padding: 28px 0; border-bottom: 1px solid var(--line); align-items: center; }
.job-item h3 { font-size: 22px; font-weight: 700; color: var(--navy); }
.job-item .meta { font-size: 13px; color: var(--mute); margin-top: 6px; letter-spacing: .02em; }
.job-item p { font-size: 14px; color: var(--mute); margin-top: 8px; max-width: 640px; line-height: 1.7; }
.job-apply { background: var(--navy); color: #fff; padding: 12px 22px; font-size: 13px; text-decoration: none; letter-spacing: .06em; white-space: nowrap; border: 0; cursor: pointer; font-family: inherit; }

/* 조직도 (실제 이미지) */
.org-chart img { display: block; max-width: 100%; height: auto; margin: 0 auto; }

/* 그룹웨어 (상단 헤더 + 좁은 아이콘 레일, 01 밝은 톤) */
.gw { background: var(--paper); }
.gw-header { display: flex; align-items: center; justify-content: space-between; height: 64px; background: #fff; border-bottom: 1px solid var(--line); padding: 0 28px; position: sticky; top: 0; z-index: 30; }
.gw-header__logo img { height: 40px; display: block; }
.gw-header__title { margin-left: 14px; margin-right: auto; padding-left: 14px; border-left: 1px solid var(--line); font-size: 15px; font-weight: 700; color: var(--navy); letter-spacing: -.01em; }
.gw-header__right { display: flex; align-items: center; gap: 16px; font-size: 13px; color: var(--mute); }
.gw-home { font-size: 13px; color: var(--mute); text-decoration: none; }
/* 알림 벨 */
.gw-noti { position: relative; }
.gw-noti__btn { position: relative; border: 0; background: none; cursor: pointer; color: var(--navy); padding: 6px; display: flex; align-items: center; border-radius: 8px; }
.gw-noti__btn:hover { background: var(--paper); }
.gw-noti__badge { position: absolute; top: -2px; right: -2px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: #ef4444; color: #fff; font-size: 10px; font-weight: 700; line-height: 16px; text-align: center; }
.gw-noti__panel { position: absolute; top: calc(100% + 8px); right: 0; width: 340px; max-width: 90vw; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 10px 30px rgba(10,26,47,.16); z-index: 60; overflow: hidden; }
.gw-noti__panel[hidden] { display: none; }
.gw-noti__head { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--line); font-weight: 700; color: var(--ink); }
.gw-noti__readall { border: 0; background: none; cursor: pointer; font-size: 12px; color: var(--navy); }
.gw-noti__list { max-height: 380px; overflow-y: auto; }
.gw-noti__empty { padding: 28px 16px; text-align: center; color: var(--mute); font-size: 13px; }
.gw-noti__item { display: block; padding: 12px 16px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); cursor: pointer; }
.gw-noti__item:hover { background: var(--paper); }
.gw-noti__item.is-unread { background: #f0f6ff; }
.gw-noti__item.is-unread:hover { background: #e6f0ff; }
.gw-noti__t { display: block; font-size: 13px; font-weight: 600; }
.gw-noti__b { display: block; font-size: 12px; color: var(--mute); margin-top: 2px; }
.gw-noti__time { display: block; font-size: 11px; color: var(--mute); margin-top: 4px; }
.gw-home:hover { color: var(--navy); }
.gw-logout { background: none; border: 1px solid var(--line); border-radius: 8px; padding: 6px 14px; font: inherit; font-size: 13px; color: var(--navy); cursor: pointer; }
/* 운영자 드롭다운 */
.gw-admin { position: relative; }
.gw-admin__btn { display: flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: none; border-radius: 8px; padding: 6px 12px; font: inherit; font-size: 13px; color: var(--navy); cursor: pointer; }
.gw-admin__btn:hover { background: var(--paper); }
.gw-admin__caret { font-size: 10px; color: var(--mute); }
.gw-admin__panel { position: absolute; top: calc(100% + 8px); right: 0; min-width: 190px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 10px 30px rgba(10,26,47,.16); z-index: 60; padding: 6px; }
.gw-admin__panel[hidden] { display: none; }
.gw-admin__item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 12px; font: inherit; font-size: 13px; color: var(--ink); text-decoration: none; border: 0; background: none; border-radius: 8px; cursor: pointer; text-align: left; }
.gw-admin__item:hover { background: var(--paper); color: var(--navy); }
.gw-admin__item svg { flex: 0 0 auto; color: var(--mute); }
.gw-admin__item:hover svg { color: var(--navy); }
/* 관리자 섹션 왼쪽 subnav */
.gw-subnav--admin .gw-subnav__head { display: block; padding: 14px 16px 8px; font-size: 12px; font-weight: 700; color: var(--mute); letter-spacing: .02em; }
/* 관리자 권한(역할) 편집 피커 */
.rl-edit { position: relative; margin: 10px 0 18px; }
.rl-pop { position: absolute; top: calc(100% + 6px); left: 0; z-index: 40; width: 340px; max-width: 92vw; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 10px 30px rgba(10,26,47,.16); padding: 10px; }
.rl-pop[hidden] { display: none; }
.rl-pop__search { width: 100%; box-sizing: border-box; margin-bottom: 8px; }
.rl-pop__list { max-height: 320px; overflow-y: auto; }
.rl-pop__row { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 6px; cursor: pointer; font-size: 14px; }
.rl-pop__row:hover { background: var(--paper); }
.rl-pop__row input { width: 16px; height: 16px; }
.rl-pop__row em { margin-left: auto; font-style: normal; font-size: 12px; color: var(--mute); }
.rl-pop__foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--line); }
/* 일정 페이지 상단 근태 대시보드(출퇴근·진척·근무유형·이번주) */
.cal-dash { margin-bottom: 14px; }
.cal-dash__toggle { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; padding: 5px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font: inherit; font-size: 13px; color: var(--navy); cursor: pointer; }
.cal-dash__toggle:hover { background: var(--paper); }
.cal-dash__caret { font-size: 10px; color: var(--mute); transition: transform .15s; }
.cal-dash__stats[hidden] { display: none; }
/* 캘린더 상단 clock 바 슬림(한 줄) — 출근·퇴근 시간 + 연차/주누적/주잔여를 왼쪽 가로 배치 */
.cal-dash .att-punch { padding: 10px 16px; }
.cal-dash .att-punch__mid { flex-direction: row; align-items: center; justify-content: flex-start; gap: 18px; }
.cal-dash .att-punch__row { margin: 0; }
.cal-dash .att-pbtn { min-width: 76px; padding: 6px 18px; }  /* 출근/퇴근 버튼 높이 축소 */
.cal-dash[style*="none"] { display: none; }
.cal-dash__stats { margin-top: 12px; }
.cal-dash__stats .att-side { display: flex !important; flex-direction: row !important; gap: 12px; width: 100%; height: auto; align-items: stretch; }
.cal-dash__stats .att-panel { flex: 1 1 0; margin: 0; min-width: 0; padding: 12px 14px; box-sizing: border-box; }
/* 날짜 클릭 근태 신청 메뉴 (캘린더·근태 공용) */
.att-menu { position: fixed; z-index: 200; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 10px 30px rgba(15,23,42,.18); padding: 6px; min-width: 150px; }
.att-menu[hidden] { display: none; }
.att-menu__title { padding: 6px 14px 4px; font-size: 11px; font-weight: 700; color: var(--mute); }
.att-menu__item { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 9px 14px; font: inherit; font-size: 14px; color: var(--ink); border-radius: 6px; cursor: pointer; }
.att-menu__item:hover { background: var(--paper); color: var(--navy); }
/* 진척률 게이지 축소 + 가로 배치 */
.cal-dash .att-panel--gauge { display: flex; flex-direction: column; }
.cal-dash .att-gauge { width: 104px; height: 104px; margin: 4px auto 0; }
.cal-dash .att-gauge svg { width: 104px; height: 104px; }
.cal-dash .att-gauge__pct { font-size: 20px; }
.cal-dash .att-gauge__time { font-size: 11px; }
/* 이번주 바 컴팩트 */
.cal-dash .att-week__list li, .cal-dash .att-wt-list li { font-size: 12px; }
@media (max-width: 1100px) { .cal-dash__stats .att-side { flex-wrap: wrap; } .cal-dash__stats .att-panel { flex: 1 1 46%; } }
/* 캘린더 사이드바 근태 섹션 헤더 정렬 */
.cal-side__head { display: block; padding: 8px 16px 4px; font-size: 13px; font-weight: 700; color: var(--navy); }
/* 근태 인라인 임베드 (일정 페이지 우측 메인) */
.att-inline[hidden] { display: none; }
.att-inline > .gw-main { padding: 0; }
.att-inline .att-menu { position: fixed; }
/* 일정·근태 통합 상단 탭 */
.gw-subtabs { display: flex; gap: 4px; margin: 0 0 16px; border-bottom: 1px solid var(--line); }
.gw-subtabs a { padding: 10px 20px; font-size: 15px; font-weight: 600; color: var(--mute); text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.gw-subtabs a:hover { color: var(--navy); }
.gw-subtabs a.is-active { color: var(--navy); border-bottom-color: var(--navy); }
/* 일정 자원 예약 클릭 항목 */
.cal-item--book { cursor: pointer; width: 100%; text-align: left; background: none; border: 0; font: inherit; padding: 6px 10px; border-radius: 6px; color: var(--ink); display: flex; align-items: center; }
.cal-item--book:hover { background: var(--paper); color: var(--navy); }
.cal-res-empty { padding: 6px 10px; font-size: 12px; color: var(--mute); }
/* 행사 페이지 그룹 헤더 행 */
.ep-grp-head td { background: var(--paper); font-weight: 700; color: var(--navy); font-size: 13px; padding: 9px 12px; border-bottom: 1px solid var(--line); }
/* 결재 상세 모달 (상세보기 레이아웃 재사용) */
.modal__panel--wide { max-width: 640px; width: 92%; }
.apm-detail .ap-detail__title { font-size: 20px; font-weight: 700; margin: 0 0 18px; }
.apm-detail .ap-detail__tbl { border: 1px solid var(--line); border-top: 2px solid var(--navy); border-radius: 6px; overflow: hidden; }
.apm-detail .ap-r { display: grid; grid-template-columns: 120px 1fr; border-bottom: 1px solid var(--line); }
.apm-detail .ap-r:last-child { border-bottom: none; }
.apm-detail .ap-r__l { display: flex; align-items: center; padding: 11px 14px; background: var(--paper); border-right: 1px solid var(--line); font-size: 13px; font-weight: 600; }
.apm-detail .ap-r__v { padding: 11px 14px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13px; word-break: break-word; }
.apm-detail .lv-step { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border: 1px solid var(--line); border-radius: 14px; font-size: 12px; color: var(--mute); }
.apm-detail .lv-step b { width: 16px; height: 16px; border-radius: 50%; background: var(--mute); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 10px; }
.apm-detail .lv-step em { font-style: normal; font-size: 11px; }
.apm-detail .lv-step i { font-style: normal; font-size: 11px; color: var(--mute); }
.apm-detail .lv-step.is-current { border-color: var(--navy); color: var(--navy); background: var(--paper); }
.apm-detail .lv-step.is-current b { background: var(--navy); }
.apm-detail .lv-step.lv-step--승인 { border-color: #86efac; color: #166534; }
.apm-detail .lv-step.lv-step--승인 b { background: #22c55e; }
.apm-detail .lv-step.lv-step--반려 { border-color: #fca5a5; color: #b91c1c; }
.apm-detail .lv-step.lv-step--반려 b { background: #ef4444; }
.apm-detail .lv-muted { color: var(--mute); font-size: 13px; }
.apm-foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }
.apm__note { margin-top: 14px; color: var(--mute); font-size: 12px; text-align: right; }
/* 전체 결재 현황 월바 */
.doc-monthbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.doc-monthbar__ym { font-size: 16px; min-width: 90px; text-align: center; }
.doc-monthbar__st { margin-left: auto; display: inline-flex; gap: 6px; }
/* 내 휴가 현황 카드 */
.lv-balance { display: flex; gap: 16px; flex-wrap: wrap; }
.lv-bcard { flex: 1; min-width: 200px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 20px 22px; }
.lv-bcard__t { font-size: 14px; font-weight: 600; color: var(--mute); }
.lv-bcard__big { margin: 8px 0 4px; }
.lv-bcard__big b { font-size: 34px; font-weight: 800; color: var(--navy); }
.lv-bcard__big span { margin-left: 6px; font-size: 15px; color: var(--mute); }
.lv-bcard__sub { font-size: 13px; color: var(--mute); }
/* PM 직원 출결 관리 */
.mgr-bar { display: flex; align-items: center; gap: 16px; margin: 12px 0 16px; padding: 12px 16px; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; flex-wrap: wrap; }
.mgr-bar__item { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; }
.mgr-bar input[type=time] { border: 1px solid var(--line); border-radius: 6px; padding: 6px 8px; font: inherit; }
.mgr-bar .cm-dd__btn { min-width: 150px; justify-content: space-between; }
.mgr-bar .cm-dd__panel { right: auto; min-width: 180px; }
.mgr-bar .cm-dd__opt { white-space: nowrap; }
.mgr-bar .cm-date { position: relative; display: inline-block; }
.mgr-bar .cm-date > input[data-dp-display] { width: 130px; border: 1px solid var(--line); border-radius: 6px; padding: 7px 10px; font: inherit; font-size: 13px; cursor: pointer; box-sizing: border-box; }
.mgr-bar .cm-date .cm-cal { z-index: 80; }
.mgr-on { color: var(--navy); font-weight: 600; }
/* 보안 설정 폼 */
.sec-form { max-width: 760px; }
.sec-row { display: grid; grid-template-columns: 150px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: center; }
.sec-row__label { font-weight: 600; color: var(--ink); }
.sec-radio { display: inline-flex; align-items: center; gap: 6px; margin-right: 22px; font-size: 14px; line-height: 1; cursor: pointer; }
.sec-radio input { width: 16px; height: 16px; margin: 0; vertical-align: middle; flex: none; }
.sec-bullet { margin: 12px 0 0; padding-left: 18px; color: var(--mute); font-size: 13px; }
.sec-bullet li { margin: 3px 0; }
.sec-hint { margin: 8px 0 0; font-size: 12px; color: var(--mute); }
.sec-row__field .cm-sel { max-width: 200px; }
.sec-actions { margin-top: 22px; }
.sec-note { margin-top: 18px; font-size: 12px; color: var(--mute); }
.sec-info { max-width: 760px; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 14px 18px; margin-bottom: 20px; }
.sec-info b { font-size: 14px; color: var(--ink); }
.sec-info p { margin: 6px 0 0; font-size: 13px; color: var(--mute); }
.sec-info__soon { color: var(--navy); }
.sec-soon { max-width: 760px; margin-top: 18px; padding: 12px 16px; background: #fff7e6; border: 1px solid #ffe0a3; border-radius: 8px; font-size: 13px; color: #8a5a00; }
/* 사용자 일괄 수정 표 내 select */
.ube-wrap { overflow-x: auto; }
.ube-table td .cm-dd, .ube-table td .cm-sel { width: 100%; }
.ube-table .cm-dd__btn { width: 100%; min-width: 0; justify-content: space-between; padding: 5px 10px; font-size: 12px; }
.ube-table .cm-dd__panel { left: 0; right: 0; min-width: 130px; }
.ube-table .cm-dd__opt { white-space: nowrap; padding: 8px 12px; }
.uf-in { width: 100%; max-width: 360px; border: 1px solid var(--line); border-radius: 6px; padding: 9px 11px; font: inherit; font-size: 14px; box-sizing: border-box; }
.uf-in--sm { padding: 6px 8px; font-size: 13px; max-width: 100%; }
.uf-area { width: 100%; max-width: 760px; border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; font: inherit; font-size: 13px; line-height: 1.7; box-sizing: border-box; resize: vertical; }
/* ── 메신저 위젯 (우하단, 토스트는 그 위로 띄움) ── */
.gc-fab { position: fixed; right: 20px; bottom: 20px; z-index: 9998; width: 54px; height: 54px; border-radius: 50%; border: none; background: var(--navy, #12283f); color: #fff; box-shadow: 0 6px 20px rgba(10,26,47,.28); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.gc-fab svg { width: 26px; height: 26px; }
.gc-badge { position: absolute; top: -3px; right: -3px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: #ef4444; color: #fff; font-size: 11px; font-weight: 700; line-height: 20px; text-align: center; }
.gc-panel { position: fixed; right: 20px; bottom: 84px; z-index: 9998; width: 360px; max-width: calc(100vw - 40px); height: 560px; max-height: calc(100vh - 120px); background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 16px 44px rgba(10,26,47,.22); display: flex; flex-direction: column; overflow: hidden; }
/* hidden 속성이 display 규칙에 먹히도록 강제 */
.gc-panel[hidden], .gc-room[hidden], .gc-body[hidden], .gc-badge[hidden], .gc-filetag[hidden], .gc-unread[hidden] { display: none !important; }
.gc-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--line); font-weight: 700; color: var(--ink); }
.gc-x { border: none; background: none; font-size: 22px; line-height: 1; color: var(--mute); cursor: pointer; }
.gc-tabs { display: flex; align-items: center; gap: 4px; padding: 6px 10px; border-bottom: 1px solid var(--line); }
.gc-tab { border: none; background: none; padding: 8px 12px; font: inherit; font-size: 14px; color: var(--mute); cursor: pointer; border-bottom: 2px solid transparent; }
.gc-tab.is-on { color: var(--ink); font-weight: 700; border-bottom-color: var(--navy, #12283f); }
.gc-allbtn { margin-left: auto; border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 5px 10px; font-size: 12px; color: var(--ink); cursor: pointer; }
.gc-allbtn + .gc-allbtn { margin-left: 6px; }   /* 두 번째 버튼은 첫 버튼 바로 옆에 붙임 */
.gc-body { flex: 1; overflow-y: auto; }
.gc-empty { padding: 40px 16px; text-align: center; color: var(--mute); font-size: 13px; }
.gc-grp { padding: 8px 16px 4px; font-size: 12px; font-weight: 700; color: var(--mute); background: #f7f9fb; }
.gc-item { display: flex; align-items: center; gap: 10px; padding: 11px 16px; cursor: pointer; border-bottom: 1px solid #f1f5f9; }
.gc-item:hover { background: #f7f9fb; }
.gc-ava { flex: 0 0 auto; width: 38px; height: 38px; border-radius: 50%; background: #e2e8f0; color: #334155; font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center; position: relative; }
.gc-ava.sm { width: 30px; height: 30px; font-size: 11px; }
.gc-ava.is-on::after { content: ''; position: absolute; right: -1px; bottom: -1px; width: 10px; height: 10px; border-radius: 50%; background: #22c55e; border: 2px solid #fff; }
.gc-it-main { flex: 1; min-width: 0; }
.gc-it-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.gc-it-top b { font-size: 14px; color: var(--ink); }
.gc-time { font-size: 11px; color: var(--mute); flex: 0 0 auto; }
.gc-it-msg { font-size: 12px; color: var(--mute); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gc-pos { font-size: 12px; color: var(--mute); }
.gc-unread { flex: 0 0 auto; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #ef4444; color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }
.gc-room { position: absolute; inset: 0; top: 0; background: #fff; display: flex; flex-direction: column; }
.gc-rhead { display: flex; align-items: center; gap: 6px; padding: 12px 14px; border-bottom: 1px solid var(--line); font-weight: 700; }
.gc-rename { margin-left: auto; border: 1px solid var(--line); background: #fff; border-radius: 7px; width: 28px; height: 28px; font-size: 14px; color: var(--mute); cursor: pointer; line-height: 1; }
.gc-rename + .gc-rename { margin-left: 4px; }
.gc-ginput { width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 9px 11px; font: inherit; font-size: 14px; box-sizing: border-box; }
.gc-modal { position: fixed; inset: 0; z-index: 10000; background: rgba(15,23,42,.4); display: flex; align-items: center; justify-content: center; }
.gc-modal[hidden] { display: none; }
.gc-modal__card { background: #fff; border-radius: 14px; padding: 20px; width: 300px; max-width: 90vw; box-shadow: 0 20px 50px rgba(0,0,0,.3); }
.gc-modal__title { font-weight: 700; font-size: 15px; margin-bottom: 12px; color: var(--ink); }
.gc-modal__btns { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }
.gc-mbtn { border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 8px 16px; font-size: 13px; cursor: pointer; color: var(--ink); }
.gc-mbtn--ok { background: var(--navy, #12283f); color: #fff; border: none; }
.gc-ctx { position: fixed; z-index: 10001; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,.15); padding: 4px; min-width: 140px; }
.gc-ctx[hidden] { display: none; }
.gc-ctx__item { display: block; width: 100%; text-align: left; border: none; background: none; padding: 9px 12px; font-size: 13px; color: #dc2626; cursor: pointer; border-radius: 6px; }
.gc-ctx__item:hover { background: #fef2f2; }
.gc-back { border: none; background: none; font-size: 24px; line-height: 1; color: var(--ink); cursor: pointer; }
.gc-msgs { flex: 1; overflow-y: auto; padding: 14px; background: #f2f5f8; display: flex; flex-direction: column; gap: 10px; }
.gc-sys { align-self: center; font-size: 11px; color: var(--mute); background: #e2e8f0; padding: 3px 10px; border-radius: 10px; }
.gc-datesep { align-self: center; margin: 4px 0; }
.gc-datesep span { font-size: 11px; color: #64748b; background: rgba(15,23,42,.06); padding: 4px 12px; border-radius: 11px; }
.gc-msg { display: flex; gap: 8px; max-width: 84%; }
.gc-msg.me { align-self: flex-end; flex-direction: row-reverse; }
.gc-msg-in { min-width: 0; }
.gc-sender { font-size: 12px; color: var(--mute); margin-bottom: 3px; }
.gc-bubble { padding: 9px 12px; border-radius: 12px; font-size: 14px; line-height: 1.45; word-break: break-word; background: #fff; color: var(--ink); border: 1px solid #e6eaee; }
.gc-msg.me .gc-bubble { background: var(--navy, #12283f); color: #fff; border: none; }
.gc-img { max-width: 200px; max-height: 200px; border-radius: 10px; display: block; }
.gc-filemsg { display: inline-flex; align-items: center; gap: 6px; padding: 9px 12px; border-radius: 12px; background: #fff; border: 1px solid #e6eaee; font-size: 13px; color: var(--ink); text-decoration: none; }
.gc-filemsg span { color: var(--mute); font-size: 12px; }
.gc-meta { display: flex; align-items: center; gap: 5px; margin-top: 3px; }
.gc-msg.me .gc-meta { justify-content: flex-end; }
.gc-mtime { font-size: 10px; color: var(--mute); }
.gc-runread { font-size: 10px; color: #f59e0b; font-weight: 700; }
.gc-input { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line); }
.gc-file { flex: 0 0 auto; cursor: pointer; color: var(--mute); display: flex; align-items: center; justify-content: center; height: 38px; }
.gc-input textarea { flex: 1; resize: none; border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px; font: inherit; font-size: 14px; max-height: 90px; }
.gc-send { flex: 0 0 auto; border: none; background: var(--navy, #12283f); color: #fff; border-radius: 10px; padding: 9px 14px; font-size: 13px; font-weight: 600; cursor: pointer; }
.gc-filetag { padding: 6px 14px; font-size: 12px; color: var(--navy, #12283f); background: #eef4ff; }

/* 통계 카드(메신저 사용현황 등) */
.mstat-cards { display: flex; gap: 12px; flex-wrap: wrap; margin: 10px 0 22px; }
.mstat { min-width: 120px; flex: 0 0 auto; padding: 16px 20px; border: 1px solid var(--line); border-radius: 12px; background: #f7f9fb; }
.mstat__n { font-size: 26px; font-weight: 800; color: var(--navy, #12283f); line-height: 1.1; }
.mstat__l { margin-top: 4px; font-size: 13px; color: var(--mute); }

.sec-country-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px 14px; margin: 8px 0 4px; }
.sec-check { display: flex; align-items: center; gap: 7px; font-size: 14px; cursor: pointer; }
.sec-check input { margin: 0; }
.hrc-table { min-width: 1500px; }
.hrc-table td .uf-in { max-width: 100%; padding: 6px 8px; font-size: 12px; }
.hrc-table td, .hrc-table th { padding: 6px 8px; }
.sec-iplist { max-width: 760px; margin-top: 26px; }
.sec-iplist.is-dim { opacity: .55; }
.sec-iplist__title { font-size: 15px; font-weight: 700; margin: 0 0 4px; }
.sec-ipadd { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.sec-ipadd input { border: 1px solid var(--line); border-radius: 6px; padding: 8px 10px; font: inherit; font-size: 13px; }
.sec-ipadd input[name=ip] { width: 200px; }
.sec-ipadd input[name=label] { flex: 1; min-width: 160px; }
.sec-actions .btn-cancel { margin-left: 8px; }
/* 조직 현황 부서 탭 */
.org-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 18px; }
.org-tabs a { padding: 6px 14px; border: 1px solid var(--line); border-radius: 20px; font-size: 13px; color: var(--mute); text-decoration: none; }
.org-tabs a:hover { background: var(--paper); color: var(--navy); }
.org-tabs a.is-active { background: var(--navy); color: #fff; border-color: var(--navy); }
/* 근무유형 리스트 (조직 근무유형 관리) */
.mb-list--wt li { display: flex; align-items: center; gap: 8px; }
.mb-wt-name { flex: 1; padding: 8px 10px; color: var(--ink); text-decoration: none; border-radius: 6px; }
.mb-wt-name:hover { background: var(--paper); color: var(--navy); }

/* 필독 공지 팝업 */
.notice-pop { position: fixed; inset: 0; z-index: 200; background: rgba(15,23,42,.45); display: flex; align-items: center; justify-content: center; }
.notice-pop__box { width: 420px; max-width: 92vw; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 18px 50px rgba(15,23,42,.3); }
.notice-pop__head { padding: 16px 18px; font-size: 15px; font-weight: 700; color: #1e2a44; border-bottom: 1px solid #e2e8f0; }
.notice-pop__head b { color: #d63a4a; }
.notice-pop__list { max-height: 320px; overflow-y: auto; }
.notice-pop__item { display: flex; flex-direction: column; gap: 2px; padding: 12px 18px; border-bottom: 1px solid #f1f5f9; text-decoration: none; }
.notice-pop__item:hover { background: #f6f8fc; }
.notice-pop__item b { color: #1e2a44; font-size: 14px; }
.notice-pop__item span { color: #94a3b8; font-size: 12px; }
.notice-pop__foot { display: flex; justify-content: flex-end; padding: 12px 18px; }

/* 공지 읽은 사람 목록 */
.bd-readers { margin: 6px 0 10px; }
.bd-readers summary { cursor: pointer; color: var(--mute); font-size: 13px; }
.bd-readers__list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.bd-reader { padding: 3px 10px; background: #eef2f7; border-radius: 12px; font-size: 12px; color: #334155; }

/* 감사 로그 행위 배지 */
.audit-act { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 11px; font-weight: 700; background: #e5e7eb; color: #374151; }
.audit-act--APPROVE { background: #dcfce7; color: #166534; }
.audit-act--REJECT { background: #fee2e2; color: #b91c1c; }
.audit-act--PERMISSION { background: #e0e7ff; color: #3730a3; }
.audit-act--DELETE { background: #fef3c7; color: #92400e; }

/* rail 메일 안읽음 배지 */
.gw-rail__ic { position: relative; }
.gw-rail__badge { position: absolute; top: -4px; right: -6px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: #d63a4a; color: #fff; font-size: 10px; line-height: 16px; text-align: center; font-weight: 700; }

/* ===== 메일 ===== */
.ml-toolbar { display: flex; align-items: center; gap: 8px; padding: 8px 0 12px; }
.ml-checkall { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--mute); margin-right: 6px; }
.ml-table td { vertical-align: middle; padding: 10px 8px; border-bottom: 1px solid #f1f5f9; }
.ml-table tr:hover td { background: #f8fafc; }
.ml-table .ml-c { width: 30px; text-align: center; }
.ml-table .ml-from { width: 190px; }
.ml-from__lnk { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); min-width: 0; }
.ml-from__nm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ml-avatar { flex: 0 0 28px; width: 28px; height: 28px; border-radius: 50%; background: var(--navy); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; }
.ml-table .ml-subj a { color: var(--ink); text-decoration: none; display: block; min-width: 0; overflow: hidden; }
.ml-table .ml-subj a:hover .ml-subj__t { text-decoration: underline; }
.ml-table .ml-date { width: 130px; text-align: right; white-space: nowrap; color: var(--mute); font-size: 13px; }
/* 안읽음 강조 */
.ml-table tr.ml-unread td { background: #fafbff; }
.ml-table tr.ml-unread:hover td { background: #f1f4ff; }
.ml-table tr.ml-unread .ml-from__nm, .ml-table tr.ml-unread .ml-subj__t { font-weight: 700; color: var(--navy); }
.ml-table tr.ml-unread .ml-avatar { box-shadow: 0 0 0 2px #c7d2fe; }
.ml-star { background: none; border: 0; cursor: pointer; font-size: 16px; color: #cbd5e1; line-height: 1; }
.ml-star.is-on { color: #f5b301; }
.ml-clip { margin-left: 4px; }
.ml-prev { margin-left: 8px; color: var(--mute); font-weight: 400; font-size: 13px; }
.ml-table tr.ml-unread .ml-prev { font-weight: 400; color: #94a3b8; }
/* 상세 */
.ml-detail { width: 100%; }
.ml-detail__meta { border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; margin-bottom: 14px; font-size: 14px; color: #334155; }
.ml-detail__meta div { padding: 3px 0; }
.ml-detail__meta b { display: inline-block; width: 72px; color: var(--mute); font-weight: 600; }
.ml-detail__atts { border: 1px dashed var(--line); border-radius: 10px; padding: 12px 16px; margin-bottom: 14px; }
.ml-detail__atts-h { font-size: 13px; font-weight: 700; color: var(--mute); margin-bottom: 8px; }
.ml-imgblock { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; padding: 10px 14px; background: #fff7e6; border: 1px solid #ffe0a3; border-radius: 8px; font-size: 13px; color: #8a5a00; }
.ml-att { display: inline-flex; align-items: center; gap: 6px; margin: 0 8px 6px 0; padding: 6px 12px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; font-size: 13px; color: var(--navy); text-decoration: none; }
.ml-att--big { border-color: #a3c4ff; }
.ml-att__tag { font-size: 11px; font-weight: 700; color: #1155cc; background: #e7f0ff; border-radius: 8px; padding: 1px 7px; }
.ml-attach__big { margin-left: 8px; font-size: 11px; font-weight: 700; color: #1155cc; background: #e7f0ff; border-radius: 8px; padding: 1px 7px; }
.ml-detail__body { min-height: 160px; padding: 8px 2px 24px; font-size: 15px; line-height: 1.7; word-break: break-word; }
.ml-detail__acts { display: flex; gap: 8px; border-top: 1px solid var(--line); padding-top: 16px; }
/* 작성 */
.ml-compose { width: 100%; }
.ml-row { display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); padding: 7px 0; }
.ml-row > label { flex: 0 0 80px; font-size: 14px; color: var(--mute); font-weight: 500; }
.ml-row > input { flex: 1; height: 30px; padding: 0 10px; border: 1px solid var(--line); border-radius: 6px; font: inherit; }
.ml-cc-btn { border: 1px solid var(--line); background: #fff; border-radius: 6px; height: 40px; padding: 0 12px; font-size: 12px; color: var(--mute); cursor: pointer; box-sizing: border-box; }
.ml-cc-btn:hover { border-color: var(--navy); color: var(--navy); }
/* 수신자 칩 멀티선택 */
.ml-recip { flex: 1; position: relative; }
.ml-recip__box { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; min-height: 40px; padding: 0; border: 1px solid var(--line); border-radius: 6px; box-sizing: border-box; }
.ml-recip__box:focus-within { border-color: var(--navy); }
.ml-compose .ml-recip__input, .ml-recip__input { flex: 1; min-width: 120px; border: 0 !important; outline: none; height: 38px; padding: 0 10px; font: inherit; background: transparent; }
.ml-chip { margin-left: 6px; }
.ml-chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px; background: #eef2f7; border-radius: 14px; font-size: 13px; color: #334155; }
.ml-chip button { border: 0; background: none; cursor: pointer; color: #94a3b8; font-size: 15px; line-height: 1; }
.ml-chip button:hover { color: #d63a4a; }
.ml-recip__sug { position: absolute; top: 100%; left: 0; right: 0; z-index: 30; margin-top: 4px; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 8px 24px rgba(15,23,42,.12); max-height: 240px; overflow-y: auto; }
.ml-recip__opt { padding: 9px 12px; font-size: 14px; cursor: pointer; }
.ml-recip__opt:hover, .ml-recip__opt.is-active { background: #e8eefc; }
.ml-row--body { align-items: flex-start; border-bottom: 0; padding-top: 12px; }
.ml-row--body > label { padding-top: 6px; }
.ml-quill-wrap .ql-toolbar.ql-snow, .ml-quill-wrap .ql-container.ql-snow { border-color: var(--line); }
.ml-editor { flex: 1; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.ml-editor__tool { display: flex; gap: 4px; padding: 6px; border-bottom: 1px solid var(--line); background: var(--paper); }
.ml-editor__tool button { min-width: 30px; height: 28px; border: 1px solid var(--line); background: #fff; border-radius: 6px; cursor: pointer; font-size: 13px; }
.ml-editor__area { min-height: 300px; padding: 14px; font-size: 15px; line-height: 1.7; outline: none; }
.ml-compose__acts { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }
.ml-sign { color: #64748b; font-size: 13px; line-height: 1.6; }
/* Quill 리치에디터 */
.ml-quill-wrap { flex: 1; min-width: 0; }
.ml-quill-wrap .ql-container { font-size: 15px; border-bottom-left-radius: 8px; border-bottom-right-radius: 8px; }
.ml-quill-wrap .ql-toolbar { border-top-left-radius: 8px; border-top-right-radius: 8px; }
.ml-quill-wrap { width: 100%; }
.ml-quill-wrap textarea[data-cke] { width: 100%; min-height: 350px; padding: 12px; border: 1px solid var(--line); border-radius: 8px; font: inherit; resize: vertical; }
.ml-quill-wrap .ck.ck-editor { width: 100%; }
.ml-quill-wrap .ck-editor__editable { min-height: 250px; max-height: 60vh; overflow-y: auto; }
.ml-quill-wrap .ck.ck-editor__main > .ck-editor__editable { border-radius: 0 0 8px 8px; }
.ml-receipt { border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; margin-bottom: 14px; font-size: 13px; }
.ml-receipt > b { color: var(--mute); margin-right: 8px; }
.ml-receipt__chip { display: inline-block; margin: 2px 4px; padding: 3px 10px; border-radius: 12px; background: #fee2e2; color: #b91c1c; font-size: 12px; }
.ml-receipt__chip.is-read { background: #dcfce7; color: #166534; }
.ml-receipt__chip em { font-style: normal; font-weight: 700; }
.ml-sched { display: inline-block; margin-right: 4px; padding: 1px 6px; border-radius: 8px; background: #e0e7ff; color: #3730a3; font-size: 11px; font-weight: 700; }
.ml-sign-toggle { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; }
/* 메일 라벨 사이드바 */
.ml-lbl-head { display: flex; align-items: center; justify-content: space-between; padding: 6px 16px 4px; font-size: 12px; font-weight: 700; color: var(--mute); }
.ml-lbl-add { border: 1px solid var(--line); background: #fff; border-radius: 6px; width: 22px; height: 22px; cursor: pointer; color: var(--mute); line-height: 1; }
.ml-lbl-add:hover { border-color: var(--navy); color: var(--navy); }
.ml-lbl-link { display: flex !important; align-items: center; gap: 8px; }
.ml-lbl-dot { width: 10px; height: 10px; border-radius: 50%; flex: 0 0 10px; }
.ml-lbl-del { margin-left: auto; border: 0; background: none; cursor: pointer; color: #cbd5e1; font-size: 14px; }
.ml-lbl-link:hover .ml-lbl-del { color: #94a3b8; }
.ml-lbl-del:hover { color: #d63a4a !important; }
.ml-lbl-colors { display: flex; gap: 10px; margin-top: 14px; }
.ml-lbl-sw { display: inline-block; width: 24px; height: 24px; border-radius: 50%; cursor: pointer; outline: 2px solid transparent; outline-offset: 2px; }
.ml-lbl-colors input:checked + .ml-lbl-sw { outline-color: var(--navy); }
.ml-bulk-label { display: inline-flex; align-items: center; gap: 6px; margin-left: 8px; }
.ml-bulk-sel { height: 30px; border: 1px solid var(--line); border-radius: 6px; font: inherit; font-size: 13px; padding: 0 8px; }
/* 라벨 지정 커스텀 드롭다운 — 좁아서 옵션 줄바꿈되던 문제 */
.ml-bulk-label .cm-dd__btn { min-width: 120px; padding: 5px 12px; font-size: 12px; box-sizing: border-box; justify-content: space-between; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 6px; color: var(--ink); font-weight: 400; }
.ml-bulk-label .cm-dd__btn:hover { border-color: var(--navy); color: var(--navy); }
.ml-bulk-label .cm-dd__caret { color: var(--mute); }
.ml-bulk-label .cm-dd__panel { right: auto; min-width: 170px; }
.ml-bulk-label .cm-dd__opt { white-space: nowrap; }
.ml-filters { margin-top: 32px; }
.ml-filter-add { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
/* 수신필터 행 컨트롤 높이 40 통일 */
.ml-filter-add .ml-filter-input { height: 40px; box-sizing: border-box; border: 1px solid var(--line); border-radius: 8px; padding: 0 12px; font-size: 14px; }
.ml-filter-add .ml-filter-input:focus { border-color: var(--navy); outline: none; box-shadow: 0 0 0 3px rgba(30,41,99,.08); }
.ml-filter-add .cm-sel .cm-dd__btn { height: 40px; box-sizing: border-box; border-radius: 8px; }
.ml-filter-add .cm-sel { max-width: 150px; }
.ml-vac__row { display: flex; align-items: center; gap: 10px; }
/* 부재중 섹션: 달력 팝업이 페이지 밖으로 넘쳐 스크롤 생기지 않게 충분한 높이 확보 */
.ml-vac-sec { min-height: 500px; }
/* 부재중 날짜 = cm-date: 높이 40 통일, 너비 고정, 달력 오버레이 */
.ml-vac .cm-date { position: relative; flex: 0 0 170px; width: 170px; max-width: 170px; }
.ml-vac .cm-date > input[data-dp-display] { width: 100%; height: 40px; box-sizing: border-box;
    padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; font-size: 14px; cursor: pointer; }
.ml-vac .cm-date > input[data-dp-display]:focus { border-color: var(--navy); outline: none; box-shadow: 0 0 0 3px rgba(30,41,99,.08); }
.ml-vac .cm-cal { z-index: 80; }
/* 스레드 */
.ml-thread { margin-top: 22px; border-top: 1px solid var(--line); padding-top: 14px; }
.ml-thread__h { font-size: 13px; font-weight: 700; color: var(--mute); margin-bottom: 8px; }
.ml-thread__item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; margin-bottom: 6px; text-decoration: none; color: var(--ink); }
.ml-thread__item:hover { background: #f8fafc; }
.ml-thread__item.is-cur { border-color: var(--navy); background: #f1f4ff; }
.ml-thread__nm { flex: 0 0 120px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ml-thread__prev { flex: 1; color: var(--mute); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ml-thread__dt { flex: 0 0 auto; color: var(--mute); font-size: 12px; }
.ml-sched { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; background: #fff; padding-left: 0; }
.ml-sched .cm-date { width: 150px; position: relative; display: inline-block; }
.ml-sched .cm-date > input[data-dp-display] { width: 100%; height: 40px; padding: 0 10px; box-sizing: border-box; border: 1px solid var(--line); border-radius: 6px; }
/* 작성 폼 입력 보더/포커스 통일 */
.ml-compose input[type=text], .ml-compose .ml-recip__box, .ml-compose .ml-cc-btn,
.ml-sched .cm-date > input[data-dp-display], .ml-sched .cm-dd__btn { border: 1px solid var(--line); border-radius: 6px; }
.ml-compose input[type=text]:focus, .ml-compose .ml-recip__box:focus-within,
.ml-sched .cm-date > input:focus, .ml-sched .cm-dd__btn:focus { border-color: var(--navy); outline: none; }
.ml-sched .cm-dd { position: relative; }
.ml-sched .cm-dd__btn { height: 40px; box-sizing: border-box; display: inline-flex; align-items: center; min-width: 64px; outline: none; }
.ml-sched .cm-dd__btn:not(:focus-visible) { outline: none; box-shadow: none; }
.ml-sched .cm-dd__panel { background: #fff; }
.ml-sched .cm-cal { z-index: 70; }
.ml-sched .cm-date > input[data-dp-display]:not(:focus) { outline: none; box-shadow: none; }
.ml-sched__hint { margin-left: 6px; font-size: 12px; }
.ml-recip__input.is-bad { background: #fff0f0; }
/* 작성 버튼 상단 고정 */
.ml-compose { position: relative; }
.ml-compose__acts--top { position: sticky; top: 0; z-index: 20; padding: 6px 0 12px; margin-bottom: 4px; background: #fff; }
.ml-compose__btns { display: flex; align-items: center; gap: 8px; }
.ml-autosave { font-size: 12px; color: var(--mute); margin-right: 4px; }
/* 파일 첨부 (드래그드롭) */
.ml-attach { flex: 1; min-width: 0; }
.ml-attach__bar { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.ml-attach__cap { margin-left: auto; font-size: 12px; color: var(--mute); }
.ml-attach__cap.is-over { color: #d63a4a; font-weight: 700; }
.ml-attach__drop { border: 1.5px dashed var(--line); border-radius: 10px; height: 100px; overflow-y: auto; padding: 10px; transition: .15s; }
.ml-attach__empty { display: flex; align-items: center; justify-content: center; height: 100%; color: var(--mute); font-size: 14px; text-align: center; }
.ml-attach__empty[hidden] { display: none !important; }
.ml-attach__tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.ml-attach__tbl thead th { position: sticky; top: -10px; background: #f6f8fc; color: var(--mute); font-weight: 600; text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line); }
.ml-attach__tbl td { padding: 7px 8px; border-bottom: 1px solid #f1f5f9; }
.ml-attach__tbl .ml-attach__nm { color: var(--navy); word-break: break-all; }
.ml-attach__cx { width: 28px; text-align: center; }
.ml-attach__csz { width: 90px; text-align: right; color: var(--mute); white-space: nowrap; }
.ml-attach__tbl button { border: 0; background: none; cursor: pointer; color: #94a3b8; font-size: 15px; }
.ml-attach__tbl button:hover { color: #d63a4a; }
.ml-attach__drop.is-drag { border-color: var(--navy); background: #f1f5f9; color: var(--navy); }
.ml-attach__list { margin-top: 8px; }
.ml-attach__item { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; margin-top: 6px; font-size: 13px; }
.ml-attach__nm { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--navy); }
.ml-attach__sz { color: var(--mute); }
.ml-attach__item button { border: 0; background: none; cursor: pointer; color: #94a3b8; font-size: 15px; }
.ml-attach__item button:hover { color: #d63a4a; }
.gw-body { display: flex; min-height: calc(100vh - 64px); }
.gw-rail { flex: 0 0 72px; width: 72px; background: #fff; border-right: 1px solid var(--line); padding: 8px 0; position: sticky; top: 64px; align-self: flex-start; height: calc(100vh - 64px); display: flex; flex-direction: column; overflow-y: auto; }
/* nav 자체 내부 스크롤, 스크롤바는 숨김 */
.gw-rail, .gw-subnav__nav { scrollbar-width: none; -ms-overflow-style: none; }
.gw-rail::-webkit-scrollbar, .gw-subnav__nav::-webkit-scrollbar { width: 0; height: 0; display: none; }
.gw-rail a { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 7px 4px; color: var(--mute); text-decoration: none; font-size: 10px; }
.gw-rail a:hover { color: var(--navy); }
.gw-rail a.is-active { color: var(--navy); font-weight: 400; }
.gw-rail__ic { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--paper); color: var(--navy); }
.gw-rail a.is-active .gw-rail__ic { background: var(--navy); color: #fff; }
.gw-rail__ic svg { width: 17px; height: 17px; }
.gw-main { flex: 1; min-width: 0; padding: 30px; }

/* 2차 서브메뉴 패널 + 접기 */
.gw-subnav { flex: 0 0 220px; width: 220px; background: #fff; border-right: 1px solid var(--line); padding: 16px 0; display: flex; flex-direction: column; position: sticky; top: 64px; align-self: flex-start; height: calc(100vh - 64px); }
.gw-subnav:not(:has(.gw-subnav__add)) { padding-top: 0; }
.gw-subnav__add { margin: 0 16px 14px !important; text-align: center; }
.gw-subnav__nav { display: flex; flex-direction: column; flex: 1; overflow-y: auto; }
.gw-subnav__nav a { display: block; width: 100%; padding: 10px 16px; color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 400; border-left: 3px solid transparent; box-sizing: border-box; }
.gw-subnav__nav a:hover { background: var(--paper); }
.gw-subnav__nav a.is-active { color: var(--navy); background: var(--paper); border-left-color: var(--navy); }
.gw-subnav__sec { margin-top: 6px; border-top: 1px solid var(--line); padding-top: 6px; }
.gw-subnav__sec:first-child { margin-top: 0; border-top: 0; padding-top: 0; }
.gw-subnav__sub { width: auto !important; margin: 2px 10px 2px 22px; padding: 8px 12px !important; border-left: 0 !important; border-radius: 6px; font-size: 13px !important; color: var(--mute) !important; }
.gw-subnav__sub:hover { background: var(--paper); }
.gw-subnav__sub.is-active { background: var(--paper); color: var(--navy) !important; }
.gw-subnav__sechead { display: flex; align-items: center; }
.gw-subnav__sechead:hover { background: var(--paper); }
.gw-subnav__sechead:hover .gw-subnav__head { background: transparent; }
.gw-subnav__sechead .gw-subnav__head { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gw-grp-add { flex: 0 0 auto; background: none; border: 0; color: var(--mute); font-size: 18px; line-height: 1; cursor: pointer; padding: 0 12px; text-decoration: none; }
.gw-grp-add:hover { color: var(--navy); }
.gw-subnav__sechead .gw-subnav__head { border-left: 0; }
.gw-subnav__sechead.is-active { background: var(--paper); border-left: 3px solid var(--navy); }
.gw-subnav__sechead.is-active .gw-subnav__head { color: var(--navy); }
.grp-modal-form { display: flex; flex-direction: column; gap: 6px; }
.grp-modal-form label { font-size: 13px; color: var(--mute); }
.grp-modal-form input { border: 1px solid var(--line); padding: 10px 12px; font: inherit; }
.grp-modal-form button { margin-top: 14px; background: var(--navy); color: #fff; border: 0; border-radius: 6px; padding: 11px; font: inherit; font-weight: 700; cursor: pointer; }
.gw-subnav__foot { display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding: 10px 14px; border-top: 1px solid var(--line); }
.gw-subnav__collapse { background: none; border: 0; font-size: 18px; color: var(--mute); cursor: pointer; line-height: 1; }
.gw-subnav__collapse:hover { color: var(--navy); }
.gw-subnav__gear { background: none; border: 0; font-size: 17px; color: var(--mute); text-decoration: none; line-height: 1; padding: 0 4px; cursor: pointer; }
.gw-subnav__gear:hover, .gw-subnav__gear.is-active { color: var(--navy); }
/* 섹션 헤더 글자 세로 쌓임 방지 */
.gw-subnav__head { white-space: nowrap; }
/* 라벨용 head(span) — 링크 head가 아닌 섹션 제목 */
.gw-subnav__nav span.gw-subnav__head { display: block; padding: 14px 16px 6px; font-size: 12px; font-weight: 700; color: var(--mute); letter-spacing: .02em; }
.gw-subnav__sechead .gw-subnav__head { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
/* 근무유형 폼 인라인(좌측정렬) */
.wt-line { display: flex; align-items: center; gap: 8px; }
.wt-line span { color: var(--mute); font-size: 14px; }
.wt-time { width: 150px !important; }
.wt-num { width: 80px !important; text-align: center; }
.gw-subnav__trash { flex: 1; display: block; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; font: inherit; font-size: 13px; color: var(--mute); cursor: pointer; text-align: center; text-decoration: none; }
.gw-subnav__trash:hover { border-color: var(--navy); color: var(--navy); }
.gw-subnav__trash.is-active { border-color: var(--navy); color: var(--navy); background: var(--paper); font-weight: 600; }
.gw-subnav__footlinks { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.gw-subnav__setting { display: block; margin: 12px 14px 4px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; text-align: center; font-size: 13px; color: var(--mute); text-decoration: none; }
.gw-subnav__setting:hover { border-color: var(--navy); color: var(--navy); }
.gw-subnav__setting.is-active { border-color: var(--navy); color: var(--navy); background: var(--paper); font-weight: 600; }
/* 접힘: 서브메뉴 완전히 닫고 레일 하단에 펼치기 버튼 노출 */
.gw-rail-expand { display: none; }
.subnav-collapsed .gw-subnav { display: none; }
.gw-rail-expand { margin-top: auto; background: none; border: 0; cursor: pointer; flex-direction: column; align-items: center; gap: 5px; padding: 12px 4px; color: var(--mute); font: inherit; font-size: 11px; }
.subnav-collapsed .gw-rail-expand { display: flex; }
.gw-rail-expand:hover { color: var(--navy); }
.gw-rail-expand .gw-rail__ic { font-size: 18px; }

/* 검색·정렬 툴바 */
.gw-toolbar { margin-bottom: 16px; display: flex; justify-content: flex-end; }
.gw-toolbar[data-bulk-bar], .gw-toolbar[data-members-bar] { justify-content: flex-start; gap: 8px; align-items: center; }
.gw-head-tools { display: flex; align-items: center; gap: 8px; }
.gw-head-tools .gw-search, .gw-head-tools .gw-pagesize { height: 40px; box-sizing: border-box; border-radius: 8px; }
.gw-head-tools .gw-btn, .gw-head-tools .cm-dd__btn { height: 40px; box-sizing: border-box; display: inline-flex; align-items: center; border-radius: 8px; }
/* 연락처 CSV 가져오기 패널 */
.cm-import { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 0 0 16px; padding: 12px 16px; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; }
.cm-import__lbl { font-weight: 600; font-size: 14px; }
.cm-import select, .cm-import input[type=file] { font: inherit; font-size: 13px; }
.cm-import__hint { flex-basis: 100%; color: var(--muted); font-size: 12px; }
.cm-file { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.cm-file__btn { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border: 1px solid var(--line); border-radius: 6px; background: #fff; font-size: 13px; color: var(--ink); }
.cm-file:hover .cm-file__btn { border-color: var(--navy); color: var(--navy); }
.cm-file__name { font-size: 13px; color: var(--muted); max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cm-file__name.is-set { color: var(--ink); font-weight: 500; }
.gw-pagesize { border: 1px solid var(--line); padding: 0 32px 0 12px; font: inherit; font-size: 13px; cursor: pointer;
    -webkit-appearance: none; -moz-appearance: none; appearance: none;
    background: #fff url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2392a0b3' d='M6 8 0 0h12z'/%3E%3C/svg%3E") no-repeat right 12px center; }
/* 헤더/툴바 컨트롤 높이 통일 */
.gw-toolbar .gw-btn, .gw-toolbar .cm-dd__btn, .cm-dd--inline .cm-dd__btn { height: 40px; box-sizing: border-box; }
/* 일괄 작업 바 버튼 = 캘린더 보기 버튼(gw-btn--sm) 크기로 */
.gw-toolbar[data-bulk-bar] .gw-btn, .gw-toolbar[data-bulk-bar] .cm-dd__btn,
.gw-toolbar[data-members-bar] .gw-btn, .gw-toolbar[data-members-bar] .cm-dd__btn { height: auto; padding: 5px 12px; font-size: 12px; }
.pager, .gw-pager { display: flex; justify-content: center; gap: 4px; margin-top: 18px; }
/* 컨텐츠 목록 — 테이블 내부만 스크롤(헤더·페이저는 고정) */
/* 비관리자(권한카드 없음) = 더 길게 215, 관리자(카드 있음) = 280 */
.ct-tablewrap { max-height: calc(100vh - 277px); min-height: calc(100vh - 277px); overflow-y: auto; }
.ct-admin .ct-tablewrap { max-height: calc(100vh - 380px); min-height: calc(100vh - 380px); }
.bd-page .ct-tablewrap { max-height: calc(100vh - 239px); min-height: calc(100vh - 239px); }
/* 운영자 어드민 페이지: 내부 스크롤로 바깥 스크롤 방지 */
.gw-body:has(.gw-rail--admin) .ct-tablewrap { max-height: calc(100vh - 300px); min-height: 0; }
.cn-page .ct-tablewrap { max-height: calc(100vh - 286px); min-height: calc(100vh - 286px); }
/* 행사 참가자 — 내부 스크롤 없이 페이지 자연 확장 */
.ea-page .ct-tablewrap { max-height: none; min-height: 0; overflow: visible; }
.att-scroll { max-height: calc(100vh - 240px); min-height: calc(100vh - 240px); }
/* 직원관리 — 테이블 내부 스크롤만(페이징 없음, 짧으면 자연 높이) */
.mb-scroll { overflow: visible; }
.mb-scroll thead th { position: sticky; top: 64px; z-index: 1; background: #fff; }
.ct-tablewrap > table { margin: 0; }
.ct-tablewrap thead th { position: sticky; top: 0; z-index: 1; background: #fff; }
.ct-tablewrap .ct-empty { padding: 48px 0; text-align: center; color: var(--mute); }
.pager__btn { min-width: 32px; height: 32px; padding: 0 8px; border: 1px solid var(--line); background: #fff; color: var(--ink); font: inherit; font-size: 13px; cursor: pointer; border-radius: 6px; }
.pager__btn:hover:not(:disabled):not(.is-active) { border-color: var(--navy); color: var(--navy); }
.pager__btn.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }
.pager__btn:disabled { opacity: .4; cursor: default; }
/* 정렬 방향 화살표 */
.att-table th.th-sort.is-sorted[data-asc="true"]::after { content: ' \25B2'; font-size: 10px; }
.att-table th.th-sort.is-sorted[data-asc="false"]::after { content: ' \25BC'; font-size: 10px; }
/* subnav 그룹 행 액션 */
.gw-subnav__sub-row { display: flex; align-items: center; margin: 2px 10px; border-radius: 6px; }
.gw-subnav__sub-row:hover, .gw-subnav__sub-row:has(.gw-subnav__sub.is-active) { background: var(--paper); }
.gw-subnav__sub-row .gw-subnav__sub { flex: 1; margin: 0 0 0 12px !important; background: transparent !important; }
.gw-subnav__sub-row .gw-subnav__sub.is-active { color: var(--navy) !important; }
.gw-grp-actions { display: none; gap: 0; padding-right: 8px; }
.gw-subnav__sub-row:hover .gw-grp-actions { display: flex; }
.gw-grp-act { background: none; border: 0; color: var(--mute); cursor: pointer; font-size: 13px; line-height: 1; padding: 2px 4px; }
.gw-grp-act:hover { color: var(--navy); }
/* 행사 그룹 토글 헤더 — 페이지(sub)와 시각 구분 */
.gw-subnav__sechead[data-evtoggle] { display: flex !important; align-items: center; gap: 6px; padding: 10px 10px 10px 12px;
    margin: 8px 8px 2px; background: #eef1f8; border-radius: 8px; }
.gw-subnav__sechead[data-evtoggle] .gw-subnav__head { flex: 1 1 auto; min-width: 0; color: #1e293b !important;
    font-weight: 700; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.site-evtoggle__caret { flex: 0 0 auto; font-size: 10px; color: var(--mute); transition: transform .15s; }
.gw-subnav__sechead[data-evtoggle] .gw-grp-add { flex: 0 0 auto; width: auto !important; display: inline-block; padding: 0 8px; }
.site-evgrp.is-collapsed .site-evtoggle__caret { transform: rotate(-90deg); }
.site-evgrp.is-collapsed .site-evgrp__body { display: none; }
/* 사내연락처 체크 컬럼 */
.members-table .th-check, .members-table .td-check { width: 40px; text-align: center; }
.cm-dd--inline { position: relative; max-width: none; }
.cm-dd--inline .cm-dd__btn { width: auto; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; font-size: 13px; }
.cm-dd--inline .cm-dd__panel { left: 0; right: auto; min-width: 200px; }
.cm-dd__opt { width: 100%; text-align: left; border: 0; background: none; font: inherit; }
.gw-head-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.gw-head-row h1 { margin: 0; }
.gw-search { width: 280px; max-width: 100%; padding: 9px 14px; border: 1px solid var(--line); font: inherit; font-size: 14px; }
.att-table th.th-sort { cursor: pointer; user-select: none; }
.att-table th.th-sort:hover { color: var(--navy); }

.gw-main h1 { font-size: 18px; font-weight: 700; color: var(--navy); }
.gw-main .gw-sub { color: var(--mute); margin: 8px 0 32px; font-size: 15px; }
.gw-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gw-card { background: #fff; border: 1px solid var(--line); padding: 28px 24px; }
.gw-card h3 { font-size: 17px; font-weight: 700; color: var(--navy); }
.gw-card p { margin-top: 8px; font-size: 13px; color: var(--mute); }
.gw-card--on { display: block; text-decoration: none; border-color: var(--navy); }
.gw-card--on:hover { background: var(--paper); }

/* 그룹웨어 공통 — 탭·버튼·폼 */
.gw-tabs { display: flex; gap: 8px; align-items: center; margin-bottom: 20px; flex-wrap: wrap; }
.gw-tabs a { padding: 8px 16px; border: 1px solid var(--line); background: #fff; color: var(--mute); text-decoration: none; font-size: 14px; }
.gw-tabs a.is-active { background: var(--navy); border-color: var(--navy); color: #fff; font-weight: 700; }
.gw-btn { display: inline-block; padding: 8px 16px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--ink); text-decoration: none; font: inherit; font-size: 14px; cursor: pointer; }
/* 폼 입력 요소 공통 라운딩 (체크박스·라디오·파일·컬러 제외) */
.gw form input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=color]),
.gw form textarea, .gw form select,
.csite form input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=color]),
.csite form textarea, .csite form select { border-radius: 8px; box-sizing: border-box; }
/* 입력·커스텀 select 높이 통일 (textarea 제외) */
.gw form input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=color]),
.gw form select, .gw .cm-sel .cm-dd__btn,
.csite form input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=color]),
.csite form select, .csite .cm-sel .cm-dd__btn { height: 40px; box-sizing: border-box; }
/* 폼 입력·select 폰트 통일(작게) */
.gw form input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=color]),
.gw form textarea, .gw form select, .gw .cm-sel .cm-dd__btn,
.csite form input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=color]),
.csite form textarea, .csite form select, .csite .cm-sel .cm-dd__btn { font-size: 14px; }
/* 네이티브 select → 커스텀 화살표 (커스텀 select 모양 통일) */
.gw form select, .csite form select {
    -webkit-appearance: none; -moz-appearance: none; appearance: none; padding-right: 30px;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2392a0b3' d='M6 8 0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 11px center; background-color: #fff; }
.gw-btn--primary { background: var(--navy); border-color: var(--navy); color: #fff; margin-left: auto; }
.gw-btn.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }
.gw-form { display: flex; flex-direction: column; gap: 6px; max-width: 560px; background: #fff; border: 1px solid var(--line); padding: 24px; }
.gw-form label { font-size: 13px; color: var(--mute); margin-top: 12px; }
.gw-form input, .gw-form select, .gw-form textarea { padding: 10px 12px; border: 1px solid var(--line); font: inherit; box-sizing: border-box; }
.gw-form textarea { min-height: 90px; resize: vertical; }
.gw-form button { margin-top: 20px; background: var(--navy); color: #fff; border: 0; border-radius: 6px; padding: 12px; font: inherit; font-weight: 700; cursor: pointer; }
/* 인라인 연락처 폼 (테두리 없음) */
.contact-edit__form { display: flex; flex-direction: column; gap: 6px; max-width: 560px; }
.contact-edit__form > label { font-size: 13px; color: var(--mute); margin-top: 12px; }
.contact-edit__form input[type=text], .contact-edit__form input[type=email], .contact-edit__form input[type=date],
.contact-edit__form select, .contact-edit__form textarea {
    padding: 10px 12px; border: 1px solid var(--line); font: inherit; box-sizing: border-box; }
.contact-edit__form input[type=file] { border: 0; padding: 6px 0; font: inherit; }
.contact-edit__form textarea { min-height: 80px; resize: none; }
.contact-edit__form .req { color: #b0234e; }
.cm-groups { display: flex; flex-wrap: wrap; gap: 8px 16px; padding: 4px 0; }
.cm-grp { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--ink); }
.cm-grp input { width: auto; }
.cm-grp-none { font-size: 13px; color: var(--mute); }
.cm-addr { display: flex; gap: 8px; }
.cm-fav { flex-direction: row !important; align-items: center; gap: 8px; }
.cm-fav input { width: auto; }
/* 그룹 선택 드롭다운(체크박스) */
.cm-dd { position: relative; max-width: 320px; }
.cm-dd__btn { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%;
  border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 10px 12px; font: inherit; cursor: pointer; text-align: left; }
.cm-dd__panel { border-radius: 8px; }
.cm-dd__btn span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cm-dd__caret { color: var(--mute); font-size: 12px; }
.cm-dd__panel { position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 30;
  background: #fff; border: 1px solid var(--line); box-shadow: 0 8px 24px rgba(0,0,0,.12);
  max-height: 260px; overflow-y: auto; padding: 6px 0; }
.cm-dd__opt { display: flex; align-items: center; gap: 10px; padding: 9px 14px; font-size: 14px; color: var(--ink); cursor: pointer; }
.cm-dd__opt:hover { background: var(--paper); }
.cm-dd__opt:has(input:checked) { background: rgba(10,26,47,.06); color: var(--navy); font-weight: 600; }
.cm-dd__opt--sub { padding-left: 34px; color: var(--mute); }
/* 커스텀 체크박스 — 전역 통일 */
input[type=checkbox] {
  appearance: none; -webkit-appearance: none; width: 18px; height: 18px; flex: 0 0 18px;
  display: inline-block; vertical-align: middle;
  border: 1.5px solid var(--line); border-radius: 5px; background: #fff; cursor: pointer;
  position: relative; transition: .12s; margin: 0; }
input[type=checkbox]:hover { border-color: var(--navy); }
input[type=checkbox]:focus-visible { outline: 2px solid var(--navy); outline-offset: 1px; }
input[type=checkbox]:checked { background: var(--navy); border-color: var(--navy); }
input[type=checkbox]:checked::after {
  content: ''; position: absolute; left: 5px; top: 1px; width: 5px; height: 10px;
  border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
/* 커스텀 달력 */
.cm-date { position: relative; max-width: 220px; }
.cm-date input[type=text] { cursor: pointer; }
.cm-cal { position: absolute; top: calc(100% + 6px); left: 0; z-index: 30; width: 288px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 12px 40px rgba(10,26,47,.18); padding: 14px; }
.cm-cal__head { display: flex; align-items: center; gap: 6px; margin-bottom: 12px; }
.cm-cal__head select { flex: 1; border: 1px solid var(--line); border-radius: 7px; padding: 7px 8px;
  font: inherit; font-weight: 600; color: var(--navy); background: var(--paper); cursor: pointer; }
.cm-cal__head select:focus { outline: none; border-color: var(--navy); }
.cm-cal__head button { background: var(--paper); border: 1px solid var(--line); border-radius: 7px;
  width: 30px; height: 30px; cursor: pointer; font-size: 15px; color: var(--navy); line-height: 1; transition: .12s; }
.cm-cal__head button:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.cm-cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.cm-cal__dow { text-align: center; font-size: 12px; font-weight: 600; color: var(--mute); padding: 4px 0 8px; }
.cm-cal__dow.is-sun { color: #d63a4a; }
.cm-cal__dow.is-sat { color: #2a6ed6; }
.cm-cal__day { background: none; border: 0; padding: 8px 0; font: inherit; font-size: 14px;
  cursor: pointer; border-radius: 8px; color: var(--ink); transition: .1s; }
.cm-cal__day.is-sun { color: #d63a4a; }
.cm-cal__day.is-sat { color: #2a6ed6; }
.cm-cal__day:hover { background: var(--paper); }
.cm-cal__day.is-today { box-shadow: inset 0 0 0 1px var(--line); }
.cm-cal__day.is-selected { background: var(--navy) !important; color: #fff !important; font-weight: 700; }
.contact-edit__actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 24px; }
.ev-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 24px; }
.btn-save { display: inline-block; background: var(--navy); color: #fff; border: 0; border-radius: 6px; padding: 9px 22px; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; text-decoration: none; }
.btn-cancel { display: inline-block; background: #fff; color: var(--mute); border: 1px solid var(--line); border-radius: 6px; padding: 9px 22px; font: inherit; font-size: 14px; cursor: pointer; text-decoration: none; }
.btn-cancel:hover { color: var(--navy); border-color: var(--navy); }
.ct-thumb { height: 34px; max-width: 90px; object-fit: contain; border-radius: 4px; border: 1px solid var(--line); background: #fff; vertical-align: middle; }
.ct-prev { display: block; max-height: 120px; max-width: 240px; object-fit: contain; margin-bottom: 10px; padding: 4px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.ev-hint { margin: 6px 0 0; font-size: 12px; color: var(--mute); }
/* 드래그 정렬 핸들 */
.mb-drag-h { width: 30px; }
.mb-drag { width: 30px; text-align: center; color: var(--mute); cursor: grab; user-select: none; font-size: 15px; }
.mb-drag:active { cursor: grabbing; }
[data-drag-list] tr.is-dragging { opacity: .45; background: var(--paper); }
[data-drag-list] tr { transition: background .12s; }
/* 게시판 */
.bd-table tr.bd-notice { background: #fff7e6; }
.bd-table tr.bd-pinned { background: var(--paper); }
/* 제목 영역 넓게, 작성자·조회·날짜는 우측에 좁게 모음 */
.bd-table th:first-child, .bd-table td:first-child { width: auto; text-align: left; }
.bd-table .mb-c { white-space: nowrap; text-align: right; }
.bd-table th.mb-c:nth-child(2), .bd-table td.mb-c:nth-child(2) { width: 130px; }  /* 작성자 */
.bd-table th.mb-c:nth-child(3), .bd-table td.mb-c:nth-child(3) { width: 80px; }   /* 조회 */
.bd-table th.mb-c:nth-child(4), .bd-table td.mb-c:nth-child(4) { width: 120px; }  /* 날짜 */
.bd-badge { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 4px; margin-right: 6px; vertical-align: middle; }
.bd-badge--notice { background: #d92d20; color: #fff; }
.bd-badge--pin { background: var(--navy); color: #fff; }
.bd-cc { color: var(--mute); font-size: 12px; margin-left: 6px; }
.gw-fav { background: none; border: 0; color: #cbd2dc; cursor: pointer; font-size: 14px; line-height: 1; padding: 0 2px; }
.gw-fav.on { color: #f5b301; }
.bd-post { border-top: 2px solid var(--navy); padding: 22px 4px 26px; border-bottom: 1px solid var(--line); }
.bd-post__title { font-size: 21px; font-weight: 700; color: var(--navy); margin: 0 0 12px; line-height: 1.4; }
.bd-post__meta { display: flex; gap: 16px; font-size: 13px; color: var(--mute); padding-bottom: 18px; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.bd-post__body { font-size: 15px; line-height: 1.8; color: var(--ink); white-space: pre-wrap; word-break: break-word; min-height: 80px; }
.bd-files { margin-top: 22px; padding-top: 16px; border-top: 1px dashed var(--line); }
.bd-files__h { font-size: 13px; font-weight: 700; color: var(--mute); margin-bottom: 8px; }
.bd-file { display: inline-block; margin: 0 10px 6px 0; padding: 6px 12px; border: 1px solid var(--line); border-radius: 6px; font-size: 13px; color: var(--navy); text-decoration: none; }
.bd-file:hover { border-color: var(--navy); }
.bd-file::before { content: '📎 '; }
.bd-post__acts { display: flex; justify-content: flex-end; gap: 8px; margin-top: 22px; }
.bd-exist-file { display: flex; align-items: center; gap: 8px; font-size: 13px; margin-bottom: 4px; }
.bd-comments { margin-top: 30px; }
.bd-comments__h { font-size: 15px; font-weight: 700; color: var(--navy); margin: 0 0 14px; }
.bd-comment { padding: 12px 0; border-bottom: 1px solid var(--line); }
.bd-comment__head { display: flex; align-items: center; gap: 12px; font-size: 13px; margin-bottom: 6px; }
.bd-comment__name { font-weight: 600; color: var(--navy); }
.bd-comment__date { color: var(--mute); }
.bd-comment__del { background: none; border: 0; color: var(--mute); cursor: pointer; font-size: 15px; line-height: 1; margin-left: auto; }
.bd-comment__del:hover { color: #d92d20; }
.bd-comment__body { font-size: 14px; line-height: 1.6; color: var(--ink); white-space: pre-wrap; word-break: break-word; }
.bd-comment-form { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.bd-comment-form textarea { width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; font: inherit; font-size: 14px; resize: vertical; min-height: 56px; box-sizing: border-box; }
/* 게시판 에디터 */
.bd-editor { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #fff; }
.bd-editor__tool { display: flex; flex-wrap: wrap; gap: 2px; padding: 6px 8px; border-bottom: 1px solid var(--line); background: var(--paper); }
.bd-editor__tool button { background: #fff; border: 1px solid transparent; border-radius: 4px; padding: 4px 8px; font: inherit; font-size: 13px; min-width: 28px; cursor: pointer; color: var(--ink); }
.bd-editor__tool button:hover { border-color: var(--line); background: #fff; }
.bd-editor__tool button.is-active { background: var(--navy); color: #fff; }
.bd-editor__sep { width: 1px; background: var(--line); margin: 2px 4px; }
.bd-editor__area { min-height: 260px; padding: 14px 16px; font: inherit; font-size: 15px; line-height: 1.7; color: var(--ink); outline: none; }
.bd-editor__area:empty::before { content: attr(data-placeholder); color: var(--mute); }
.bd-editor__area h2 { font-size: 20px; margin: 14px 0 8px; color: var(--navy); }
.bd-editor__area h3 { font-size: 17px; margin: 12px 0 6px; color: var(--navy); }
.bd-editor__area p { margin: 6px 0; }
.bd-editor__area ul, .bd-editor__area ol { margin: 8px 0 8px 24px; }
.bd-editor__area a { color: var(--navy); text-decoration: underline; }
.iq-msg { max-width: 380px; font-size: 13px; color: var(--ink); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
/* ===== 근태 대시보드 (리디자인) ===== */
.gw-main:has(.att-punch), .gw-main:has(.att-stats) { background: transparent; }

/* ==== 상단 히어로 punch bar (슬림) ==== */
.att-punch { display: grid; grid-template-columns: 220px 1fr auto; gap: 18px; align-items: center;
    background: linear-gradient(135deg, #1d3358 0%, #2d4f86 55%, #3b6ed4 100%); color: #fff;
    border-radius: 16px; padding: 12px 18px; margin-bottom: 10px; box-shadow: 0 6px 18px rgba(29,51,88,.16);
    position: relative; overflow: hidden; }
.att-punch::after { content: ''; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px;
    border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.10), transparent 70%); pointer-events: none; }
.att-punch.is-working { background: linear-gradient(135deg, #15543a 0%, #1e7a52 55%, #2eaf78 100%); box-shadow: 0 6px 18px rgba(21,84,58,.20); }
.att-punch.is-done { background: linear-gradient(135deg, #4a4a5e 0%, #686884 55%, #8a8aa8 100%); box-shadow: 0 6px 18px rgba(74,74,94,.16); }

.att-punch__left { display: flex; align-items: center; gap: 14px; position: relative; z-index: 1; }
.att-punch__clock { display: flex; flex-direction: column; gap: 0; }
.att-punch__time { font-size: 26px; font-weight: 800; letter-spacing: .02em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.att-punch__date { font-size: 11px; color: rgba(255,255,255,.78); }
.att-punch__user { display: flex; flex-direction: column; gap: 3px; border-left: 1px solid rgba(255,255,255,.22); padding-left: 12px; }
.att-punch__user b { font-size: 13px; font-weight: 700; }
.att-punch__state { font-size: 10px; padding: 2px 8px; border-radius: 10px; background: rgba(255,255,255,.18); color: #fff; font-weight: 600; align-self: flex-start; }

.att-punch__mid { display: flex; flex-direction: column; gap: 6px; position: relative; z-index: 1; }
.att-punch__row { display: flex; align-items: center; gap: 14px; }
.att-punch__stats { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.att-punch__stat { display: inline-flex; align-items: baseline; gap: 6px; background: rgba(255,255,255,.14); border-radius: 8px; padding: 4px 10px; }
.att-punch__stat i { font-style: normal; font-size: 10px; color: rgba(255,255,255,.72); letter-spacing: .04em; }
.att-punch__stat b { font-size: 13px; font-weight: 800; font-variant-numeric: tabular-nums; }
.att-punch__stat em { font-style: normal; font-size: 11px; color: rgba(255,255,255,.72); }
.att-punch__times { display: flex; align-items: center; gap: 14px; }
.att-punch__t { display: flex; align-items: baseline; gap: 6px; }
.att-punch__t i { font-style: normal; font-size: 11px; color: rgba(255,255,255,.72); letter-spacing: .04em; }
.att-punch__t b { font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; }
.att-punch__sep { width: 1px; height: 22px; background: rgba(255,255,255,.22); }
.att-punch__ip { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; background: rgba(255,255,255,.14); border-radius: 8px; padding: 4px 10px; }
.att-punch__ip em { font-style: normal; font-weight: 700; font-variant-numeric: tabular-nums; font-size: 11px; }
.att-punch__dot { width: 7px; height: 7px; border-radius: 50%; background: #ffd76a; box-shadow: 0 0 0 2px rgba(255,215,106,.25); }
.att-punch__ip.is-ok .att-punch__dot { background: #6bf2a8; box-shadow: 0 0 0 2px rgba(107,242,168,.25); }
.att-punch__ip.is-off .att-punch__dot { background: #ff9b85; box-shadow: 0 0 0 2px rgba(255,155,133,.25); }

.att-punch__right { display: flex; gap: 8px; position: relative; z-index: 1; }
.att-pbtn { min-width: 90px; padding: 10px 16px; border: 0; border-radius: 10px;
    background: rgba(255,255,255,.95); color: #1d3358; font: inherit; font-size: 14px; font-weight: 800;
    cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.10); transition: transform .12s, box-shadow .12s, background .12s; }
.att-pbtn:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 5px 12px rgba(0,0,0,.15); }
.att-pbtn:disabled, .att-pbtn.is-done { background: rgba(255,255,255,.22); color: rgba(255,255,255,.55); cursor: default; box-shadow: none; }
.att-pbtn--in:not(:disabled) { background: #fff; color: #1e7a52; }
.att-pbtn--out:not(:disabled) { background: #fff; color: #c0392b; }

/* ==== stats chip row (슬림) ==== */
.att-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 10px; }
.att-stat { display: flex; flex-direction: row; align-items: baseline; justify-content: space-between; gap: 8px; padding: 8px 14px;
    background: #fff; border: 1px solid #e7eaf0; border-radius: 10px;
    text-decoration: none; color: inherit; transition: border-color .12s, transform .12s; }
a.att-stat:hover { border-color: var(--navy); transform: translateY(-1px); }
.att-stat__cap { font-size: 12px; color: var(--mute); letter-spacing: .02em; }
.att-stat__val b { font-size: 17px; font-weight: 800; color: var(--navy); font-variant-numeric: tabular-nums; }
.att-stat__val em { font-style: normal; font-size: 11px; color: var(--mute); margin-left: 3px; }

/* ==== 메인 그리드: 캘린더(좌, 메인) / 사이드(우) ==== */
.att-main { display: grid; grid-template-columns: 1fr 300px; gap: 12px; align-items: stretch; min-height: calc(100vh - 240px); }
.att-cal { border: 1px solid #e7eaf0; border-radius: 14px; padding: 14px 18px; background: #fff; box-shadow: 0 1px 3px rgba(15,23,42,.04); display: flex; flex-direction: column; }
.att-cal__head { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; margin-bottom: 10px; gap: 8px; }
.att-cal__head h2 { font-size: 16px; font-weight: 700; color: var(--navy); margin: 0; grid-column: 2; text-align: center; }
.att-cal__nav { display: flex; gap: 6px; align-items: center; grid-column: 3; justify-self: end; }
.att-cal__grid { width: 100%; border-collapse: collapse; table-layout: fixed; flex: 1; height: 100%; }
.att-cal__grid th { font-size: 11px; color: var(--mute); font-weight: 600; padding: 6px 0; border-bottom: 1px solid var(--line); }
.att-cal__grid th.dow-sun { color: #d6455d; }
.att-cal__grid th.dow-sat { color: #2a6ed6; }
.att-cal__grid td { border-bottom: 1px solid #eef1f5; min-height: 64px; vertical-align: top; transition: background .12s; }
.att-cal__grid td:not(.is-other):hover { background: #f7faff; }
.att-cal__grid td.is-other { background: #fafbfd; }
.att-cal__cell { padding: 8px; display: flex; flex-direction: column; gap: 3px; height: 100%; box-sizing: border-box; }
.att-cal__num { font-size: 13px; color: var(--ink); }
.att-cal__num.is-red { color: #d6455d; }
.att-cal__num.is-blue { color: #2a6ed6; }
.att-cal__num.is-today { background: var(--navy); color: #fff; border-radius: 50%; width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center; }
.is-other .att-cal__num { color: #c4cad3; }
.att-cal__hol { font-size: 11px; color: #d6455d; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.att-leave { display: block; font-size: 11px; line-height: 1.3; border-radius: 4px; padding: 1px 5px; margin-bottom: 1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; background: #eef2ff; color: #3b4ba8; }
.att-leave[data-lt='연차'], .att-leave[data-lt='반차'] { background: #efe9ff; color: #6b3fb0; }
.att-leave[data-lt='외근'] { background: #e8f5ec; color: #2e7d32; }
.att-leave[data-lt='출장'] { background: #fff1e6; color: #b3611a; }
.att-leave[data-lt='재택근무'] { background: #fde9f1; color: #b03a73; }
.att-leave[data-lt='병가'], .att-leave[data-lt='공가'] { background: #eef0f3; color: #5a6472; }

/* ==== 사이드 패널 ==== */
.att-side { display: flex; flex-direction: column; gap: 10px; height: 100%; }
.att-panel { background: #fff; border: 1px solid #e7eaf0; border-radius: 12px; padding: 12px 14px; box-shadow: 0 1px 3px rgba(15,23,42,.04); }
.att-panel--week { flex: 1; display: flex; flex-direction: column; }
.att-panel__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.att-panel__head h3 { font-size: 12px; font-weight: 700; color: var(--navy); margin: 0; letter-spacing: .04em; text-transform: uppercase; }
.att-panel__sub { font-size: 11px; color: var(--mute); }

/* 작은 게이지 */
.att-panel--gauge { text-align: center; }
.att-panel--gauge .att-gauge { width: 120px; height: 120px; margin: 2px auto 0; }
.att-panel--gauge .att-gauge svg { width: 120px; height: 120px; }
.att-gauge { position: relative; }
.att-gauge__bg { fill: none; stroke: #eef0f5; stroke-width: 12; }
.att-gauge__fg { fill: none; stroke: url(#attGaugeGrad); stroke-width: 12; stroke-linecap: round; stroke-dasharray: 502; transition: stroke-dashoffset .6s ease; filter: drop-shadow(0 2px 4px rgba(91,141,239,.25)); }
.att-gauge__center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.att-gauge__pct { font-size: 22px; font-weight: 800; color: var(--navy); }
.att-gauge__cap { font-size: 11px; color: var(--mute); }
.att-gauge__time { font-size: 13px; font-weight: 700; color: var(--ink); }

/* 근무유형 */
.att-badge { display: inline-block; border: 1px solid #e8b94a; background: #fff8ec; color: #9a6b00; border-radius: 16px; padding: 4px 14px; font-size: 12px; font-weight: 700; cursor: default; }
.att-badge--none { border-color: var(--line); background: var(--paper); color: var(--mute); font-weight: 500; }
.att-wt-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.att-wt-list li { display: flex; align-items: center; justify-content: space-between; font-size: 13px; padding: 4px 0; border-bottom: 1px dashed #eef1f5; }
.att-wt-list li:last-child { border-bottom: 0; }
.att-wt-list li span { color: var(--mute); }
.att-wt-list li b { color: var(--navy); font-weight: 700; }
.att-empty { font-size: 13px; color: var(--mute); text-align: center; padding: 12px 0; }

/* 이번 주 */
.att-panel--week .att-week__bar { height: 8px; background: #eef1f5; border-radius: 6px; overflow: hidden; margin-top: 4px; }
.att-week__bar span { display: block; height: 100%; background: linear-gradient(90deg, #6aa0ff, #3b6ed4); transition: width .6s ease; }
.att-week__scale { display: flex; justify-content: space-between; font-size: 10px; color: var(--mute); margin-top: 4px; }
.att-week__list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; }
.att-week__list li { display: flex; align-items: baseline; justify-content: space-between; font-size: 12px; }
.att-week__list li span { color: var(--mute); }
.att-week__list li b { color: var(--navy); font-weight: 700; font-variant-numeric: tabular-nums; }

/* 모달 + 리스트 등 공유 컴포넌트 */
.modal__panel--leave { width: 460px; max-width: 92vw; }
.lv-head { display: flex; align-items: center; justify-content: space-between; }
.lv-x { background: none; border: 0; font-size: 22px; color: var(--mute); cursor: pointer; line-height: 1; }
.lv-half { display: flex; gap: 18px; }
.lv-annual { font-size: 13px; color: var(--mute); margin: 2px 0 6px; }
.lv-annual b { color: var(--navy); }
.lv-total { font-size: 12px; font-weight: 600; color: var(--navy); background: var(--paper); border-radius: 10px; padding: 1px 8px; margin-left: 4px; }
.lv-cnt { display: inline-block; min-width: 16px; height: 16px; line-height: 16px; text-align: center; background: #d92d20; color: #fff; border-radius: 8px; font-size: 11px; margin-left: 6px; padding: 0 4px; }
.lv-tabs { display: flex; gap: 4px; margin: 10px 0 12px; background: #f1f3f7; border-radius: 10px; padding: 4px; }
.lv-tab { flex: 1; padding: 8px 12px; border: 0; background: transparent; color: var(--mute); font: inherit; font-size: 13px; font-weight: 600; border-radius: 8px; cursor: pointer; transition: background .12s, color .12s; }
.lv-tab:hover { color: var(--navy); }
.lv-tab.is-active { background: #fff; color: var(--navy); box-shadow: 0 1px 3px rgba(15,23,42,.06); }
.lv-fs { border: 0; padding: 0; margin: 0; }
.lv-range { display: flex; align-items: center; gap: 8px; }
.lv-range .cm-date { flex: 1; }
.lv-range__sep { color: var(--mute); }
.lv-status { font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 10px; }
.lv-status[data-st='대기'] { background: #fff7e6; color: #9a6b00; }
.lv-status[data-st='승인'] { background: #e8f5ec; color: #2e7d32; }
.lv-status[data-st='반려'] { background: #fdecec; color: #c0392b; }

/* 출퇴근 내역 */
.att-sum { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.att-sum__chip { border: 1px solid var(--line); border-radius: 16px; padding: 5px 14px; font-size: 13px; color: var(--mute); cursor: pointer; transition: background .12s, border-color .12s, color .12s; user-select: none; }
.att-sum__chip:hover { background: var(--paper); border-color: var(--navy); color: var(--navy); }
.att-sum__chip.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }
.att-sum__chip.is-active b { color: #fff; }
.att-sum__chip b { color: var(--navy); margin-left: 4px; }
.att-hist-head { display: grid !important; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; }
.att-hist-date { grid-column: 2; text-align: center; font-size: 16px; font-weight: 700; color: var(--navy); }
.att-hist-nav { grid-column: 3; display: flex; gap: 6px; align-items: center; }
.att-badge--wt { font-size: 12px; padding: 3px 10px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); font-weight: 500; border-radius: 14px; }
.hist-table td.hist-red { color: #d6455d; font-weight: 600; }
.hist-table td.hist-late-in { color: #d6455d; font-weight: 600; }
.hist-table td.hist-out-next { color: #2a6ed6; font-weight: 600; }

/* ==== 반응형 ==== */
@media (max-width: 1180px) {
    .att-main { grid-template-columns: 1fr; }
    .att-side { display: grid; grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
    .att-punch { grid-template-columns: 1fr; }
    .att-punch__right { flex-direction: row; }
    .att-stats { grid-template-columns: repeat(2, 1fr); }
    .att-side { grid-template-columns: 1fr; }
}
.att-gauge, .att-gauge svg { width: 168px; height: 168px; }
/* 캘린더 표시 유형 필터 */
.att-filter { position: relative; margin-right: auto; }
.att-filter__btn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 7px 12px; font: inherit; font-size: 13px; color: var(--ink); cursor: pointer; max-width: 210px; }
.att-filter__btn span[data-aff-label] { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.att-filter__panel { position: absolute; top: 112%; left: 0; z-index: 30; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 8px 28px rgba(10,26,47,.14); padding: 10px; width: 200px; }
.att-filter__panel label { display: flex; align-items: center; gap: 8px; padding: 7px 6px; font-size: 14px; cursor: pointer; }
.att-filter__foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); }
.att-filter__foot .btn-cancel, .att-filter__foot .btn-save { padding: 6px 14px; font-size: 13px; }
@media (max-width: 980px) { .att-grid { grid-template-columns: 1fr; } .att-cards { grid-template-columns: 1fr; } }
/* 문의 탭별 독립 스크롤 (헤더 고정) */
.iq-scroll { max-height: calc(100vh - 240px); overflow-y: auto; border: 1px solid var(--line); border-radius: 8px; }
.iq-scroll table { margin: 0; }
.iq-scroll thead th { position: sticky; top: 0; background: #fff; z-index: 1; box-shadow: inset 0 -1px 0 var(--line); }
.gw-count { font-size: 14px; color: var(--mute); font-weight: 400; margin-left: 6px; }

/* 연락처 카드 */
.contact-group { margin-bottom: 28px; }
.contact-group__name { font-size: 14px; font-weight: 700; color: var(--navy); padding-bottom: 8px; border-bottom: 2px solid var(--navy); margin-bottom: 14px; display: inline-block; }
.contact-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.contact-card { background: #fff; border: 1px solid var(--line); padding: 18px; }
.contact-card__top { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.contact-card__name { font-size: 17px; font-weight: 700; color: var(--navy); }
.contact-card__pos { font-size: 12px; color: var(--mute); }
.fav-form { margin-left: auto; }
.fav-btn { background: none; border: 0; cursor: pointer; font-size: 18px; line-height: 1; color: var(--line); }
.fav-btn.is-on { color: #e8b500; }
/* 연락처 테이블 — 컬럼 폭 고정 */
.contact-table { table-layout: fixed; width: 100%; }
/* 텍스트 컬럼(이름~그룹)만 말줄임. 아이콘 컬럼(체크/별/관리)은 제외 */
.contact-table td:nth-child(n+3):nth-child(-n+8),
.contact-table th:nth-child(n+3):nth-child(-n+8) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.contact-table th:nth-child(3), .contact-table td:nth-child(3) { width: 16%; }  /* 이름 */
.contact-table th:nth-child(4), .contact-table td:nth-child(4) { width: 22%; }  /* 메일 주소 */
.contact-table th:nth-child(5), .contact-table td:nth-child(5) { width: 13%; }  /* 휴대폰 */
.contact-table th:nth-child(6), .contact-table td:nth-child(6) { width: 13%; }  /* 회사 번호 */
.contact-table th:nth-child(7), .contact-table td:nth-child(7) { width: 15%; }  /* 회사명 */
.contact-table th:nth-child(8), .contact-table td:nth-child(8) { width: 12%; }  /* 그룹 */
.contact-table .th-check, .contact-table .td-check { width: 40px; text-align: center; overflow: visible; }
.contact-table .th-star, .contact-table .td-star { width: 40px; text-align: center; overflow: visible; color: var(--line); }
.contact-table .td-name { white-space: nowrap; }
.contact-table .contact-person { color: var(--mute); vertical-align: -2px; margin-right: 7px; }
.contact-table .td-manage, .contact-table .th-manage { width: 96px; white-space: nowrap; text-align: right; overflow: visible; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--mute); cursor: pointer; }
.link-btn:hover { color: var(--navy); text-decoration: underline; }
.link-sep { color: var(--line); margin: 0 6px; }
/* 공통 토스트 알림 (우측하단) */
.toast-wrap { position: fixed; right: 20px; bottom: 90px; z-index: 9999; display: flex; flex-direction: column; gap: 10px; }
.toast { display: flex; align-items: center; gap: 10px; min-width: 240px; max-width: 360px;
  background: #1b2a3f; color: #fff; padding: 13px 14px 13px 16px; border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,.28); font-size: 14px; line-height: 1.4;
  opacity: 0; transform: translateX(24px); transition: opacity .25s, transform .25s; }
.toast.is-in { opacity: 1; transform: translateX(0); }
.toast__dot { flex: 0 0 8px; width: 8px; height: 8px; border-radius: 50%; background: #4ade80; }
.toast--err .toast__dot { background: #f87171; }
.toast__msg { flex: 1; }
.toast__x { background: none; border: 0; color: rgba(255,255,255,.6); font-size: 18px; line-height: 1; cursor: pointer; padding: 0; }
.toast__x:hover { color: #fff; }
.contact-card__dl { display: flex; flex-direction: column; gap: 6px; }
.contact-card__dl > div { display: grid; grid-template-columns: 72px 1fr; gap: 8px; font-size: 13px; }
.contact-card__dl dt { color: var(--mute); }
.contact-card__dl dd { color: var(--ink); margin: 0; word-break: break-all; }
.contact-card__dl a { color: var(--navy); text-decoration: none; }
.contact-card__card { display: inline-block; margin-top: 12px; font-size: 13px; color: var(--navy); }
.contact-card__act { display: flex; gap: 8px; margin-top: 14px; border-top: 1px solid var(--line); padding-top: 12px; }

/* 근태 */
.att-flash { padding: 10px 14px; font-size: 14px; margin-bottom: 16px; }
.att-flash--ok { background: #eaf7f1; color: #0e7d5a; }
.att-flash--err { background: #fdecec; color: #b0234e; }
.att-status { padding: 16px 18px; border: 1px solid var(--line); background: #fff; font-size: 14px; margin-bottom: 24px; }
.att-status--ok { border-left: 3px solid #0e7d5a; }
.att-status--off { border-left: 3px solid #b0234e; }
.att-form { background: #fff; border: 1px solid var(--line); padding: 20px; max-width: 560px; margin-bottom: 36px; }
.att-form label { display: block; font-size: 13px; color: var(--mute); margin-bottom: 8px; }
.att-req { color: #b0234e; }
.att-form textarea { width: 100%; border: 1px solid var(--line); padding: 10px 12px; font: inherit; min-height: 70px; resize: vertical; box-sizing: border-box; }
.att-actions { display: flex; gap: 10px; margin-top: 14px; }
.att-btn { border: 0; padding: 12px 28px; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; color: #fff; }
.att-btn--in { background: var(--navy); }
.att-btn--out { background: #555; }
.att-h2 { font-size: 18px; font-weight: 700; color: var(--navy); margin: 28px 0 12px; }
.att-table { width: 100%; border-collapse: collapse; font-size: 14px; background: #fff; }
.att-table th, .att-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.att-table th { font-size: 12px; color: var(--mute); }
.att-empty { text-align: center; color: var(--mute); padding: 24px; }
.contact-extra p a { color: var(--navy); font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--line); }
.contact-extra p a:hover { border-color: var(--navy); }

/* 폼 상태 메시지 */
.form-msg { font-size: 14px; margin-top: 4px; min-height: 1em; }
.form-msg--ok { color: #0e7d5a; }
.form-msg--err { color: #b0234e; }

/* 모달 (채용 지원) */
.modal[hidden] { display: none; }
.modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 24px; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(10,26,47,.5); }
.modal__panel { position: relative; background: #fff; width: 100%; max-width: 460px; padding: 40px 36px; overflow-y: auto; }
.modal__panel--lg { max-width: 480px; }
.modal__close { position: absolute; top: 12px; right: 16px; background: none; border: 0; font-size: 26px; line-height: 1; color: var(--mute); cursor: pointer; }
.modal__title { font-size: 22px; font-weight: 800; color: var(--navy); }
.modal__pos { margin: 8px 0 24px; font-size: 14px; color: var(--mute); }
.modal__pos strong { color: var(--navy); }
.modal__panel--confirm { max-width: 400px; padding: 30px 30px 24px; }
.modal__panel--confirm .modal__title { font-size: 18px; }
.modal__msg { margin: 14px 0 26px; font-size: 14px; color: var(--ink); line-height: 1.6; }
.modal__input { width: 100%; box-sizing: border-box; border: 1px solid var(--line); border-radius: 8px; padding: 11px 13px; font: inherit; font-size: 14px; margin-top: 16px; }
.modal__input:focus { outline: none; border-color: var(--navy); }
.modal__actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-top: 22px; }
.modal__actions-spacer { flex: 1; }
.btn-ghost { background: none; border: 1px solid var(--line); color: var(--mute); padding: 12px 20px; font: inherit; cursor: pointer; }
.btn-ghost:hover { border-color: var(--navy); color: var(--navy); }
.modal__actions .btn-save, .modal__actions .btn-cancel { padding: 10px 22px; }
.recur-scope-btns { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.recur-scope-btns .btn-save { width: 100%; padding: 13px; }
/* 휴지통 */
.trash-sec { margin-top: 16px; }
.trash-sec__head { font-size: 13px; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.trash-empty { font-size: 13px; color: var(--mute); margin: 0 0 4px; }
.trash-list { display: flex; flex-direction: column; gap: 4px; max-height: 260px; overflow-y: auto; }
.trash-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; font-size: 13px; }
.trash-item__name { font-weight: 600; color: var(--ink); flex: 0 0 auto; }
.trash-item__meta { color: var(--mute); flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trash-item__acts { flex: 0 0 auto; display: flex; gap: 6px; }
.gw-btn--sm { padding: 5px 12px; font-size: 12px; }
.gw-btn--danger { border-color: #d63a4a; color: #d63a4a; }
.gw-btn--danger:hover { background: #d63a4a; color: #fff; }
/* Task 페이지 */
.tk-desc { font-size: 13px; color: var(--mute); margin: 0 0 18px; }
.tk-nav { display: flex; align-items: center; gap: 8px; }
.tk-nav__center { margin: 0 auto; display: flex; align-items: center; gap: 8px; }
.tk-nav__label { font-size: 15px; font-weight: 700; color: var(--navy); min-width: 110px; text-align: center; }
.tk-nav__today { font-size: 13px; padding: 0 12px; width: auto; }
.tk-nav__today.is-active { background: var(--navy); color: #fff; border-color: var(--navy); }
/* 보드(일별 칼럼) — 높이 고정, 칼럼 내부 세로 스크롤 */
/* task 페이지: 페이지 스크롤 없이 보드 내부에서만 스크롤 */
body.gw-task { overflow: hidden; }
.tk-main { display: flex; flex-direction: column; height: calc(100vh - 64px); min-height: 0; overflow: hidden; box-sizing: border-box; }
.tk-main .gw-head-row, .tk-main .tk-desc { flex: 0 0 auto; }
/* 주별 행 grid — 한 주 한 줄, 다음 주 아랫줄. 세로 스크롤은 tk-grid 내부 */
.tk-grid { flex: 1 1 auto; min-height: 0; overflow-y: auto; overflow-x: hidden; display: flex; flex-direction: column; gap: 12px; padding-right: 4px; padding-bottom: 10px; scrollbar-color: #b8c0cc #eceef1; }
.tk-grid::-webkit-scrollbar { width: 12px; }
.tk-grid::-webkit-scrollbar-track { background: #eceef1; border-radius: 6px; }
.tk-grid::-webkit-scrollbar-thumb { background: #b8c0cc; border-radius: 6px; border: 2px solid #eceef1; }
.tk-grid::-webkit-scrollbar-thumb:hover { background: #9aa4b2; }
.tk-week { display: flex; gap: 10px; align-items: stretch; }
.tk-col { flex: 1 1 0; min-width: 0; background: #f7f8fa; border: 1px solid var(--line); border-radius: 10px; padding: 8px; display: flex; flex-direction: column; }
.tk-col.is-out { opacity: .5; }
.tk-col.is-today { border-color: var(--navy); box-shadow: 0 0 0 1px var(--navy) inset; }
.tk-col__head { display: flex; align-items: center; gap: 5px; padding: 4px 4px 8px; color: var(--navy); }
.tk-col__head.is-sun { color: #d63a4a; }
.tk-col__head.is-sat { color: #2a5db0; }
.tk-col__day { font-size: 15px; font-weight: 700; line-height: 1; }
.tk-col__dow { font-size: 11px; line-height: 1; }
.tk-col__add { margin-left: auto; width: 20px; height: 20px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); background: #fff; border-radius: 6px; color: var(--mute); font-size: 14px; line-height: 1; cursor: pointer; flex: 0 0 auto; text-decoration: none; padding: 0; }
.tk-col__add:hover { border-color: var(--navy); color: var(--navy); }
.tk-qk-allday { display: flex; align-items: center; gap: 6px; font-size: 14px; margin-top: 6px; }
.tk-qk-times { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.tk-qk-times input[type=time] { flex: 1; }
.tk-col__cards { display: flex; flex-direction: column; gap: 8px; }
.tk-card { background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.tk-card__head { display: flex; align-items: center; gap: 8px; padding: 10px 12px; background: var(--paper); border-bottom: 1px solid var(--line); }
.tk-card__dot { width: 10px; height: 10px; border-radius: 50%; flex: 0 0 10px; }
.tk-card__title { font-size: 13px; font-weight: 700; color: var(--ink); flex: 1; word-break: break-word; background: none; border: 0; padding: 0; text-align: left; cursor: pointer; font-family: inherit; }
.tk-card__title:hover { text-decoration: underline; }
.tk-card__title.is-done { text-decoration: line-through; color: var(--mute); }
a.ev-pop__act { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
/* 직원관리 */
.mb-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.mb-table th, .mb-table td { vertical-align: middle; }
.mb-table .mb-c { text-align: center; width: 64px; }
.mb-table .mb-email { color: var(--mute); font-size: 13px; }
.mb-table select, .mb-assign-form select {
    width: 100%; min-width: 110px; height: 38px; box-sizing: border-box;
    border: 1px solid var(--line); border-radius: 8px; padding: 0 30px 0 12px; font: inherit; font-size: 14px;
    background: #fff url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2392a0b3' d='M6 8 0 0h12z'/%3E%3C/svg%3E") no-repeat right 12px center;
    -webkit-appearance: none; -moz-appearance: none; appearance: none; cursor: pointer;
}
.mb-table select:focus, .mb-assign-form select:focus { outline: none; border-color: var(--navy); }
.mb-table .gw-btn--sm { white-space: nowrap; }
.mb-table .mb-c { text-align: center; width: 72px; white-space: nowrap; }
.mb-table td, .mb-table th { padding: 10px 10px; }
/* 비밀번호 변경 폼 (내 정보) */
.pf-pw { margin-top: 24px; border-top: 1px solid var(--line); padding-top: 20px; }
.pf-pw__title { font-size: 16px; font-weight: 700; margin: 0 0 14px; color: var(--navy); }
.mb-table thead th { border-bottom: 1px solid var(--line); text-align: left; color: var(--navy); }
.mb-table tbody td { border-bottom: 1px solid var(--line); }
.mb-table tbody td.att-empty { border-bottom: 0; }
.mb-table tbody tr:hover td { background: var(--paper); }
.mb-assign-form { display: flex; align-items: center; gap: 8px; }
.mb-assign-form select { flex: 0 1 240px; }
.cm-sel { max-width: none; }
.mb-table .cm-sel { width: 100%; min-width: 120px; }
.mb-assign-form .cm-sel { flex: 0 1 240px; }
.cm-sel .cm-dd__btn { height: 40px; }
.mb-assign { display: flex; flex-direction: column; gap: 4px; max-width: 560px; }
.mb-assign__row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; font-size: 14px; }
.mb-assign__row .mb-email { flex: 1; }
.mb-assign__row form { margin: 0; }
.mb-name { background: none; border: 0; padding: 0; font: inherit; font-weight: 400; color: var(--navy); cursor: pointer; text-align: left; text-decoration: none; }
.mb-name:hover { text-decoration: underline; }
.md-info { display: grid; grid-template-columns: 92px 1fr; gap: 8px 14px; margin: 16px 0 0; font-size: 14px; }
.md-info dt { color: var(--mute); }
.md-info dd { margin: 0; color: var(--ink); word-break: break-word; }
.mb-form { max-width: 460px; }
.mb-form > label { display: block; font-size: 13px; color: var(--mute); margin: 14px 0 5px; }
.mb-form input[type=text] { width: 100%; box-sizing: border-box; border: 1px solid var(--line); border-radius: 8px; padding: 9px 12px; font: inherit; font-size: 14px; }
.mb-form input[type=text]:focus { outline: none; border-color: var(--navy); }
.mb-form input:disabled { background: var(--paper); color: var(--mute); }
.mb-form .cm-sel { width: 100%; }
.md-check { display: flex !important; align-items: center; gap: 8px; margin-top: 10px; font-size: 14px; }
.md-actions { display: flex; align-items: center; gap: 8px; margin-top: 22px; }
.mb-table tr.is-resigned td { background: #d2d2d2; color: #666; }
.mb-table tr.is-resigned .mb-name { color: #555; }
.mb-table tr.is-stopped td { background: #fff4e5; }
.mb-table tr.is-stopped .mb-name { color: #8a5a00; }
.mb-badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; line-height: 1.6; }
.mb-badge--use { background: #e3f6e8; color: #1a7f37; }
.mb-badge--stop { background: #ffe8c2; color: #8a5a00; }
.mb-badge--resign { background: #f3d2d2; color: #a12020; }
.mb-sub { font-size: 16px; font-weight: 700; color: var(--navy); margin: 30px 0 12px; }
.mb-master { display: flex; gap: 16px; flex-wrap: wrap; max-width: 760px; }
.mb-master__col { flex: 1 1 320px; max-width: 360px; border: 1px solid var(--line); border-radius: 10px; padding: 14px; }
.mb-master__col h3 { font-size: 14px; font-weight: 700; color: var(--navy); margin: 0 0 10px; }
.mb-add { display: flex; gap: 6px; margin-bottom: 10px; }
.mb-add input[type=text] { flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 6px; padding: 6px 8px; font: inherit; font-size: 13px; }
.mb-add select { border: 1px solid var(--line); border-radius: 6px; padding: 6px; font: inherit; font-size: 13px; }
.mb-add .cm-sel { flex: 0 0 96px; width: 96px; }
.mb-add .cm-sel .cm-dd__btn { width: 96px; box-sizing: border-box; }
.mb-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.mb-list li { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; font-size: 13px; }
.mb-list form { margin: 0; }
.mb-edit { flex: 1; display: flex; align-items: center; gap: 6px; }
.mb-edit input[type=text] { flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 6px; padding: 6px 8px; font: inherit; font-size: 13px; }
.mb-edit input[type=text]:focus { outline: none; border-color: var(--navy); }
/* 인접 버튼/링크 사이 간격 */
.trash-item__acts form + form { margin-left: 0; }
.trash-item__acts { gap: 8px; }
.gw-btn + .gw-btn, .gw-btn + a.gw-btn, a.gw-btn + .gw-btn { margin-left: 6px; }
.mb-tag { display: inline-block; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 1px 8px; font-size: 11px; color: var(--mute); margin-right: 4px; }
.mb-del { background: none; border: 0; color: var(--mute); font-size: 17px; line-height: 1; cursor: pointer; padding: 0 2px; }
.mb-del:hover { color: #d63a4a; }
.hist-more { margin: 18px 0 0; }
.hist-more a { color: var(--navy); font-weight: 600; text-decoration: none; font-size: 15px; }
.hist-more a:hover { text-decoration: underline; }
.tk-card__attend { color: #2a9d5f; display: inline-flex; align-items: center; flex: 0 0 auto; }
.tk-card__count { font-size: 12px; color: var(--mute); flex: 0 0 auto; }
.tk-card__body { padding: 8px 14px 12px; }
.tk-card__empty { font-size: 13px; color: var(--mute); margin: 4px 0; }
.tk-row { display: flex; align-items: center; gap: 10px; padding: 7px 2px; font-size: 14px; }
.tk-row + .tk-row { border-top: 1px solid var(--line); }
.tk-check { width: 17px; height: 17px; cursor: pointer; flex: 0 0 17px; }
.tk-check:disabled { cursor: default; }
.tk-row__content { flex: 1; color: var(--ink); word-break: break-word; }
.tk-row__del { margin: 0; flex: 0 0 auto; }
.tk-row__delbtn { background: none; border: 0; color: var(--mute); font-size: 18px; line-height: 1; cursor: pointer; padding: 0 4px; }
.tk-row__delbtn:hover { color: #d63a4a; }
.tk-row.is-done .tk-row__content { text-decoration: line-through; color: var(--mute); }
.tk-card__add { display: flex; gap: 6px; margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); }
.tk-card__add-input { flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 6px; padding: 6px 8px; font: inherit; font-size: 13px; box-sizing: border-box; }
.tk-card__add-input:focus { outline: none; border-color: var(--navy); }
.tk-card__add .gw-btn--sm { flex: 0 0 auto; }
.btn-save--danger { background: #c0392b; }
.btn-save--danger:hover { background: #a83224; }
/* 그룹 설정 패널 */
.grp-set { min-width: 220px; padding: 0; max-height: none; overflow: visible; }
.grp-set__sec { padding: 6px 0; border-bottom: 1px solid var(--line); }
.grp-set__head { padding: 8px 16px 6px; font-size: 13px; font-weight: 700; color: var(--navy); }
.grp-set__opt { display: flex; align-items: center; gap: 9px; padding: 8px 16px; font-size: 14px; color: var(--ink); cursor: pointer; }
.grp-set__opt:hover { background: var(--paper); }
.grp-set__opt input[type=radio] { position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none; }
.grp-set__opt:has(input[type=radio]:checked) { background: rgba(10,26,47,.08); color: var(--navy); font-weight: 700; }
.grp-set__foot { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 14px; }
.grp-set__btn { padding: 7px 18px; border-radius: 7px; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; transition: .12s; }
.grp-set__btn--move { background: var(--navy); border: 1px solid var(--navy); color: #fff; }
.grp-set__btn--move:hover { background: #142943; }
.grp-set__btn--copy { background: #fff; border: 1px solid var(--line); color: var(--navy); }
.grp-set__btn--copy:hover { border-color: var(--navy); background: var(--paper); }

/* ---------- Contact form (company page) ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.contact-lead { font-size: 30px; font-weight: 800; color: var(--navy); letter-spacing: -.02em; margin-bottom: 12px; }
.contact-info > p { font-size: 16px; color: var(--mute); line-height: 1.7; margin-bottom: 24px; }
.contact-info dt { font-size: 11px; letter-spacing: .18em; color: var(--mute); text-transform: uppercase; margin-top: 24px; }
.contact-info dd { font-size: 16px; color: var(--ink); margin-top: 6px; }
.contact-info dd a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); transition: border-color .2s; }
.contact-info dd a:hover { border-color: var(--navy); }
.contact-extra { margin-top: 36px; border-top: 1px solid var(--line); padding-top: 24px; }
.contact-extra h4 { font-size: 13px; font-weight: 700; color: var(--navy); margin-top: 16px; }
.contact-extra h4:first-child { margin-top: 0; }
.contact-extra p { font-size: 14px; color: var(--mute); margin-top: 4px; }
.contact-form { display: grid; gap: 16px; }
.contact-form label { font-size: 13px; color: var(--mute); display: block; margin-bottom: 6px; }
.contact-form input, .contact-form textarea { width: 100%; border: 1px solid var(--line); padding: 12px 14px; font-size: 15px; font-family: inherit; background: #fff; }
.contact-form textarea { min-height: 140px; resize: vertical; }
.contact-form button { justify-self: start; background: var(--navy); color: #fff; border: 0; padding: 14px 32px; font-size: 14px; letter-spacing: .06em; cursor: pointer; }

/* ---------- 개인정보 처리방침 ---------- */
.privacy-wrap { max-width: 860px; line-height: 1.8; font-size: 15px; color: var(--ink); }
.privacy-wrap h3 { font-size: 17px; font-weight: 700; color: var(--navy); margin: 36px 0 12px; }
.privacy-wrap ul { padding-left: 20px; margin: 8px 0 16px; }
.privacy-wrap li { margin-bottom: 4px; }
.privacy-table { width: 100%; border-collapse: collapse; margin: 12px 0 24px; font-size: 14px; }
.privacy-table th, .privacy-table td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; }
.privacy-table th { background: var(--paper); font-weight: 600; width: 120px; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--navy); color: #fff; padding: 120px 0; }
.cta-band h2 { font-size: 52px; font-weight: 300; letter-spacing: -.015em; line-height: 1.2; margin-bottom: 32px; max-width: 880px; }
.cta-band h2 em { font-family: Pretendard, sans-serif; font-style: normal; font-weight: 500; }
.cta-band a { display: inline-block; border-bottom: 1px solid #fff; color: #fff; padding-bottom: 6px; font-size: 15px; font-weight: 500; text-decoration: none; }

/* ---------- 홈 팝업 ---------- */
.site-popup { position: fixed; z-index: 90; width: 320px; max-width: calc(100vw - 32px); background: #fff; border: 1px solid var(--line); box-shadow: 0 12px 40px rgba(10,26,47,.15); }
.site-popup__head { padding: 14px 18px; border-bottom: 1px solid var(--line); }
.site-popup__head strong { color: var(--navy); font-size: 15px; }
.site-popup img { display: block; width: 100%; height: auto; }
.site-popup__body { padding: 16px 18px; font-size: 14px; color: var(--ink); line-height: 1.6; white-space: pre-wrap; }
.site-popup__link { display: block; padding: 14px 18px; color: var(--navy); font-weight: 600; text-decoration: none; }
.site-popup__foot { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; background: var(--paper); border-top: 1px solid var(--line); font-size: 12px; color: var(--mute); }
.site-popup__foot label { display: flex; align-items: center; gap: 6px; cursor: pointer; }
.site-popup__foot button { background: none; border: 0; color: var(--navy); font: inherit; cursor: pointer; font-weight: 600; }

/* ---------- Footer (간결) ---------- */
.csite-footer { background: #fff; padding: 28px 0; border-top: 1px solid var(--line); }
.footer-bar { display: flex; align-items: center; justify-content: space-between; gap: 20px 28px; flex-wrap: wrap; }
.footer-meta { display: flex; gap: 18px; flex-wrap: wrap; font-size: 13px; color: var(--mute); }
.footer-meta a { color: var(--mute); text-decoration: none; }
.footer-meta a:hover { color: var(--navy); }
/* 영문 푸터 — 메타가 길어 copy가 다음 줄로 넘어가는 문제. 폭/간격 축소해 한 줄 유지 */
.footer-bar--en { gap: 16px 20px; }
.footer-bar--en .footer-meta { gap: 12px; font-size: 12px; }
.footer-copy { font-size: 12px; color: var(--mute); }

/* ---------- Logo ---------- */
.gnb__logo img { height: 42px; display: block; }
.footer-logo { display: inline-block; }
.footer-logo img { height: 22px; display: block; }
.cta-logo { height: 40px; display: block; margin-bottom: 32px; }

/* ---------- Auth (login) ---------- */
.auth-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 48px 24px; background: var(--paper); }
.auth-card { width: 100%; max-width: 400px; background: #fff; border: 1px solid var(--line); padding: 48px 40px; }
.auth-card .auth-logo { display: block; height: 96px; margin: 0 auto; }
.auth-card h1 { font-size: 20px; font-weight: 700; color: var(--navy); text-align: center; margin-bottom: 28px; }
.auth-card form { display: flex; flex-direction: column; }
.auth-card label { font-size: 13px; color: var(--mute); margin: 14px 0 6px; }
.auth-card input { width: 100%; box-sizing: border-box; border: 1px solid var(--line); padding: 12px 14px; font-size: 15px; font-family: inherit; }
/* 눈아이콘 래퍼(span)로 감싼 password input 도 폼 전체폭 유지 (Safari flex-stretch 깨짐 방지) */
.auth-card form > span { width: 100%; display: block; }
.auth-card .auth-remember { display: flex; flex-direction: row; align-items: center; gap: 8px; font-size: 13px; color: var(--mute); margin: 14px 0 0; cursor: pointer; }
.auth-card .auth-remember input { width: 18px; height: 18px; flex: 0 0 18px; padding: 0; appearance: none; -webkit-appearance: none; border: 1.5px solid var(--line); border-radius: 5px; background: #fff; position: relative; }
.auth-card .auth-remember input:checked { background: var(--navy); border-color: var(--navy); }
.auth-card button { margin-top: 24px; background: var(--navy); color: #fff; border: 0; border-radius: 6px; padding: 14px; font-size: 14px; letter-spacing: .06em; cursor: pointer; }
.auth-alert { padding: 10px 14px; font-size: 13px; margin-bottom: 16px; border: 1px solid var(--line); }
.auth-alert--err { background: #fdecec; color: #b0234e; border-color: #f0c4c4; }
.auth-alert--ok { background: #eaf7f1; color: #0e7d5a; border-color: #bfe6d4; }
.auth-card .auth-hint { display: block; font-size: 12px; color: var(--mute); margin-top: 4px; }
.auth-card .auth-links { margin-top: 20px; text-align: center; font-size: 13px; }
.auth-card .auth-links a { color: var(--mute); text-decoration: none; }
.auth-card .auth-links a:hover { color: var(--navy); }
.auth-card .auth-links .sep { color: var(--line); margin: 0 8px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .csite .container { padding: 0 20px; }
  .gnb { height: 64px; }
  .gnb__logo img { height: 24px; }
  .gnb__cta { display: none; }
  .gnb__toggle { display: block; }
  .gnb__nav { position: fixed; top: 64px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 10px 24px rgba(10,26,47,.08); transform: translateY(-130%); transition: transform .28s ease; z-index: 40; }
  .gnb__nav.is-open { transform: translateY(0); }
  .gnb__nav ul { flex-direction: column; gap: 0; padding: 4px 20px 12px; }
  .gnb__nav li { padding: 0; border-bottom: 1px solid var(--line); }
  .gnb__nav li:last-child { border-bottom: 0; }
  .gnb__nav a { display: block; padding: 16px 2px; font-size: 15px; border-bottom: 0; }
  .gnb__nav a.is-active { border-bottom: 0; color: var(--navy); font-weight: 700; }
  .gnb__nav-contact { display: block; }
  .gnb__nav-contact a { color: var(--navy); font-weight: 700; }
  .hero { padding: 80px 0 64px; }
  .hero h1 { font-size: 40px; }
  .page-hero h1 { font-size: 36px; }
  .sec { padding: 72px 0; }
  .sec-head, .prose-grid, .biz-grid { grid-template-columns: 1fr; gap: 24px; }
  .sec-title { font-size: 30px; }
  .biz-list { grid-template-columns: 1fr; }
  .biz-item:nth-child(2n) { padding-left: 0; border-left: 0; }
  .port-grid { grid-template-columns: 1fr 1fr; }
  .client-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .cta-band { padding: 72px 0; }
  .cta-band h2 { font-size: 32px; }
  .footer-bar { flex-direction: column; align-items: flex-start; gap: 14px; }
  .site-popup { left: 16px !important; right: 16px; width: auto; }
  .svc-item { grid-template-columns: 40px 1fr; gap: 18px; padding: 24px 0; }
  .svc-ico { width: 34px; height: 34px; }
  .port-track .port-item { flex-basis: 240px; width: 240px; }
  .job-item { grid-template-columns: 1fr; gap: 16px; align-items: start; }
  .gw-grid { grid-template-columns: 1fr 1fr; }
  .gw-header { padding: 0 16px; }
  .gw-header__right { gap: 10px; }
  .gw-body { flex-direction: column; }
  .gw-rail { flex: none; width: 100%; height: auto; position: static; flex-direction: row; overflow-x: auto; padding: 8px 0; }
  .gw-rail a { flex: 0 0 auto; padding: 8px 12px; }
  .gw-rail__ic { width: 34px; height: 34px; }
  .gw-subnav { flex: none; width: 100%; border-right: 0; border-bottom: 1px solid var(--line); position: static; height: auto; }
  .gw-main { padding: 24px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  .port-marquee { overflow-x: auto; }
}

/* ============ 일정(캘린더) 모듈 ============ */
.cal-side .cal-list { display: flex; flex-direction: column; }
.cal-item { display: flex; align-items: center; gap: 8px; padding: 7px 16px; font-size: 14px; color: var(--ink); cursor: pointer; }
.cal-item:hover { background: var(--paper); }
.cal-item input[type=checkbox] { width: 18px; height: 18px; flex: 0 0 18px; border-radius: 5px; }
.cal-item input[type=checkbox]:checked { background: var(--cal-color, var(--navy)); border-color: var(--cal-color, var(--navy)); }
.cal-item input[type=checkbox]:hover { border-color: var(--cal-color, var(--navy)); }
.cal-dot { display: none; }
.cal-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-del { display: none; margin: 0; }
.cal-item:hover .cal-del { display: inline; }

/* 사이드(캘린더 목록) 꾸미기 */
.cal-side .gw-subnav__sechead { padding: 4px 16px 8px; }
.cal-side .gw-subnav__head { font-size: 13px; font-weight: 700; color: var(--navy); }
.cal-side .cal-list { gap: 1px; }
.cal-item { border-radius: 6px; margin: 0 8px; padding: 7px 8px; }
.cal-holsync { padding: 6px 14px 0; }
.cal-holsync__btn { width: 100%; padding: 8px; border: 1px dashed var(--line); background: #fff; color: var(--mute);
  font: inherit; font-size: 12px; cursor: pointer; border-radius: 6px; }
.cal-holsync__btn:hover { border-color: var(--navy); color: var(--navy); }
/* 공휴일 라벨 */
.cal-cell__hol { font-size: 11px; font-weight: 600; color: #d63a4a; padding: 0 4px 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* 일정 상세 / 날짜 팝업 */
.modal--pop .ev-pop { position: relative; z-index: 1; background: #fff; width: 520px; max-width: calc(100vw - 40px);
  border-radius: 12px; padding: 24px 28px 18px; box-shadow: 0 14px 44px rgba(10,26,47,.2); }
.ev-pop--day { width: 380px; }
.ev-pop__att { display: flex; align-items: flex-start; gap: 10px; margin-top: 12px; }
.ev-pop__att-label { flex: 0 0 auto; font-size: 13px; color: var(--mute); padding-top: 3px; }
.ev-pop__att-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ev-pop__close { position: absolute; top: 12px; right: 14px; background: none; border: 0; font-size: 22px; color: var(--mute); cursor: pointer; line-height: 1; }
.ev-pop__titlerow { display: flex; align-items: center; gap: 11px; margin: 0 26px 12px 0; }
.ev-pop__check { flex: 0 0 18px; width: 18px; height: 18px; }
.ev-pop__title { margin: 0; font-size: 19px; font-weight: 700; color: var(--ink); line-height: 1.35; }
.ev-pop__titlerow.is-done .ev-pop__title { text-decoration: line-through; color: var(--mute); }
.ev-pop__time { font-size: 14px; color: var(--ink); margin-bottom: 14px; }
.ev-pop__cal { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--mute); }
.ev-pop__dot { width: 10px; height: 10px; border-radius: 50%; flex: 0 0 10px; }
.ev-pop__loc, .ev-pop__memo { font-size: 13px; color: var(--ink); margin-top: 8px; white-space: pre-wrap; }
/* 상세 팝업: 할 일 (고정 높이 + 스크롤) */
.ev-pop__todo { margin-top: 14px; }
.ev-pop__todo-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.ev-pop__todo-count { font-size: 12px; color: var(--mute); }
.ev-pop__todo-list { max-height: 132px; overflow-y: auto; border: 1px solid var(--line); border-radius: 8px; padding: 4px; }
.pop-todo { display: flex; align-items: center; gap: 9px; padding: 6px 8px; font-size: 13px; color: var(--ink); cursor: pointer; border-radius: 6px; }
.pop-todo:hover { background: var(--paper); }
.pop-todo__cb { flex: 0 0 16px; width: 16px; height: 16px; cursor: pointer; }
.pop-todo__txt { flex: 1; word-break: break-word; }
.pop-todo.is-done .pop-todo__txt { text-decoration: line-through; color: var(--mute); }
/* 일정 폼: 할 일 에디터 */
.todo-add { display: flex; gap: 8px; }
.todo-add__input { flex: 1; }
.todo-edit-list { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; max-height: 180px; overflow-y: auto; }
.todo-edit { display: flex; align-items: center; gap: 9px; }
.todo-edit__cb { flex: 0 0 16px; width: 16px; height: 16px; cursor: pointer; }
.todo-edit__txt { flex: 1; }
.todo-edit.is-done .todo-edit__txt { text-decoration: line-through; color: var(--mute); }
.todo-edit__del { flex: 0 0 auto; background: none; border: 0; color: var(--mute); font-size: 18px; line-height: 1; cursor: pointer; padding: 0 4px; }
.todo-edit__del:hover { color: #d63a4a; }
.ev-pop__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--line); }
.ev-pop__reg { display: flex; flex-direction: column; gap: 2px; font-size: 12px; color: var(--mute); }
.ev-pop__acts { display: flex; gap: 4px; }
.ev-pop__act { background: none; border: 0; color: var(--mute); cursor: pointer; font-size: 16px; padding: 4px 6px; border-radius: 6px; }
.ev-pop__act:hover { color: var(--navy); background: var(--paper); }
.ev-pop--day { max-width: 360px; padding: 18px; }
.ev-pop__dayhead { display: flex; align-items: center; justify-content: space-between; font-size: 15px; font-weight: 700; color: var(--ink); margin-bottom: 12px; }
.ev-pop__list { display: flex; flex-direction: column; gap: 2px; max-height: 360px; overflow-y: auto; }
.day-ev { display: flex; align-items: center; gap: 8px; padding: 8px; background: none; border: 0; font: inherit; font-size: 13px; cursor: pointer; border-radius: 6px; text-align: left; width: 100%; }
.day-ev:hover { background: var(--paper); }
.day-ev__dot { width: 8px; height: 8px; border-radius: 50%; flex: 0 0 8px; }
.day-ev__time { color: var(--mute); flex: 0 0 auto; }
.day-ev__title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); flex: 1; }
.day-ev__attend { margin-left: auto; color: #2a9d5f; display: inline-flex; align-items: center; flex: 0 0 auto; }
.day-ev.is-done { position: relative; }
.day-ev.is-done .day-ev__time, .day-ev.is-done .day-ev__title { color: var(--mute); }
.day-ev.is-done::after { content: ''; position: absolute; left: 8px; right: 8px; top: 50%; height: 1px; background: var(--mute); opacity: .7; pointer-events: none; }
/* ===== 주간/일간 시간표 그리드 ===== */
.tg { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.tg-head { display: grid; grid-template-columns: 56px repeat(7, 1fr); border-bottom: 1px solid var(--line); background: var(--paper); }
.tg--day .tg-head, .tg--day .tg-allday, .tg--day .tg-body { grid-template-columns: 56px 1fr; }
.tg-head__axis { border-right: 1px solid var(--line); }
.tg-head__col { padding: 8px 4px; text-align: center; border-right: 1px solid var(--line); }
.tg-head__col.is-today { background: #eef3ff; }
.tg-head__dow { display: block; font-size: 12px; color: var(--mute); }
.tg-head__dow.is-sun { color: #d63a4a; } .tg-head__dow.is-sat { color: #2a6ed6; }
.tg-head__day { display: inline-block; font-size: 17px; font-weight: 700; color: var(--ink); margin-top: 2px; }
.tg-head__day.is-today { background: var(--navy); color: #fff; width: 26px; height: 26px; line-height: 26px; border-radius: 50%; }
.tg-head__hol { display: block; font-size: 11px; color: #d63a4a; }
.tg-allday { display: grid; grid-template-columns: 56px repeat(7, 1fr); border-bottom: 1px solid var(--line); min-height: 28px; max-height: 96px; overflow-y: auto; }
.tg-allday__axis { font-size: 11px; color: var(--mute); display: flex; align-items: center; justify-content: center; border-right: 1px solid var(--line); }
.tg-allday__col { padding: 3px 4px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; }
.tg-allev { width: 100%; }
.tg-body { display: grid; grid-template-columns: 56px repeat(7, 1fr); height: calc(100vh - 340px); min-height: 360px; overflow-y: auto; position: relative; }
.tg-axis { border-right: 1px solid var(--line); }
.tg-hour { height: 46px; position: relative; }
.tg-hour span { position: absolute; top: -8px; right: 6px; font-size: 11px; color: var(--mute); background: #fff; padding: 0 2px; }
.tg-hour:first-child span { top: 2px; }
.tg-col { border-right: 1px solid var(--line); position: relative; cursor: pointer; }
.tg-col.is-today { background: #f7faff; }
.tg-hourline { height: 46px; border-bottom: 1px solid #eef1f6; }
.tg-ev { position: absolute; box-sizing: border-box; border-radius: 5px; padding: 2px 6px; color: #fff; font-size: 12px;
  overflow: hidden; cursor: pointer; text-decoration: none; z-index: 1; border: 1px solid rgba(255,255,255,.65); box-shadow: 0 1px 3px rgba(0,0,0,.18); }
.tg-ev__time { font-size: 10px; opacity: .9; display: block; }
.tg-ev__title { font-weight: 600; }
.tg-ev__attend { position: absolute; top: 3px; right: 4px; color: #fff; display: inline-flex; }
.tg-ev__resize { position: absolute; left: 0; right: 0; bottom: 0; height: 7px; cursor: ns-resize; }
.tg-ev__resize::after { content: ''; position: absolute; left: 50%; bottom: 2px; width: 18px; height: 3px; margin-left: -9px; border-radius: 2px; background: rgba(255,255,255,.7); }
.tg-ev--done { opacity: .55; text-decoration: line-through; }

/* ===== 목록 (목록 뷰 전용 — data-cal-list) ===== */
.cal-list[data-cal-list] { max-height: calc(100vh - 230px); overflow-y: auto; border: 1px solid var(--line); border-radius: 8px; }
.cal-list-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.cal-list-table th, .cal-list-table td { padding: 10px 12px; text-align: left; border: 0; border-bottom: 1px solid var(--line); font-size: 14px; vertical-align: middle; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-list-table thead th { position: sticky; top: 0; z-index: 2; background: var(--paper); color: var(--mute); font-weight: 600; font-size: 13px; }
.cal-list-table .lt-date { width: 110px; font-weight: 700; color: var(--navy); }
.cal-list-table .lt-time { width: 120px; color: var(--mute); }
.cal-list-table .lt-cal { width: 130px; }
.cal-list-table .lt-loc { width: 300px; color: var(--mute); }
.cal-list-table .lt-by { width: 90px; color: var(--mute); }
.cal-list-table td.lt-cal { display: table-cell; }
.cal-list-table .cal-list__dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }
.cal-list-table tr.cal-list__item { cursor: pointer; }
.cal-list-table tr.cal-list__item:hover td { background: var(--paper); }
.cal-list-table tr.is-today td { background: #eef3ff; }
.cal-list__dot { width: 9px; height: 9px; border-radius: 50%; flex: 0 0 9px; }
.cal-list__time { flex: 0 0 56px; color: var(--mute); font-size: 13px; }
.cal-list__title { flex: 1; }
.cal-list__title.is-done { text-decoration: line-through; color: var(--mute); }

/* 일정 인라인 폼 뷰 */
.cal-formview { max-width: 560px; }
.cal-formview__head { margin-bottom: 18px; }
.cal-formview__head .cal-title { margin: 0; }
.cal-main { display: flex; flex-direction: column; }
.cal-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.cal-views { display: flex; gap: 2px; }
.cal-view { padding: 7px 14px; font-size: 13px; border: 1px solid var(--line); background: #fff; color: var(--mute); cursor: pointer; text-decoration: none; }
.cal-view:hover { text-decoration: none; }
.cal-view.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }
.cal-view.is-disabled { color: var(--line); cursor: not-allowed; }
.cal-title { margin: 0; font-size: 22px; font-weight: 800; color: var(--navy); }
.cal-nav { display: flex; gap: 4px; }
.cal-navbtn { display: inline-flex; align-items: center; justify-content: center; min-width: 34px; height: 34px; padding: 0 10px;
  border: 1px solid var(--line); background: #fff; color: var(--ink); font-size: 14px; cursor: pointer; text-decoration: none; }
.cal-navbtn:hover { border-color: var(--navy); color: var(--navy); }

.cal-grid { border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.cal-dows { display: grid; grid-template-columns: repeat(7, 1fr); }
.cal-dow { padding: 8px; text-align: center; font-size: 13px; font-weight: 600; color: var(--mute);
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper); }
.cal-dow--sun { color: #d63a4a; }
.cal-dow--sat { color: #2a6ed6; }
.cal-week { position: relative; display: grid; grid-template-columns: repeat(7, 1fr); }
.cal-cell { height: 116px; padding: 4px 5px 6px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  cursor: pointer; vertical-align: top; overflow: hidden; }
.cal-cell:hover { background: #fafbfe; }
.cal-cell--out { background: #f7f8fa; }
.cal-cell--out .cal-cell__num { color: #c2c8d4; }
.cal-cell--today { background: #eef3ff; }
.cal-cell__num { font-size: 13px; font-weight: 600; color: var(--ink); text-align: right; padding: 2px 3px; }
.cal-cell__num.is-sun { color: #d63a4a; }
.cal-cell__num.is-sat { color: #2a6ed6; }
.cal-cell__events { display: flex; flex-direction: column; gap: 3px; padding-top: calc(var(--lanes, 0) * 28px); }
/* 멀티데이 바 오버레이 */
.cal-week__bars { position: absolute; top: 30px; left: 0; right: 0; z-index: 2; pointer-events: none; }
.cal-bar { position: absolute; height: 25px; box-sizing: border-box; display: flex; align-items: center; gap: 5px;
  padding: 0 8px; font-size: 12.5px; color: #fff; cursor: pointer; pointer-events: auto; text-decoration: none;
  overflow: hidden; white-space: nowrap; border-radius: 0; }
.cal-bar.is-rl { border-top-left-radius: 5px; border-bottom-left-radius: 5px; }
.cal-bar.is-rr { border-top-right-radius: 5px; border-bottom-right-radius: 5px; }
.cal-bar--over { display: none !important; }
.cal-bar__title { flex: 1; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.cal-bar--done { opacity: .55; }
.cal-bar--done .cal-bar__title { text-decoration: line-through; }
.cal-bar .cal-ev__attend { color: #fff; }
.cal-ev { display: flex; align-items: center; gap: 5px; height: 25px; box-sizing: border-box; padding: 0 6px; border-radius: 4px; font-size: 12.5px;
  line-height: 1; color: var(--ink); background: transparent; cursor: pointer; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; text-decoration: none; }
.cal-ev:hover { background: #eef1f8; }
.cal-ev--allday { color: #fff; font-weight: 600; }
/* 근태(승인 휴가) 병합 배지 */
.cal-leave { display: block; font-size: 11px; line-height: 1.3; padding: 1px 6px; margin-bottom: 2px; border-radius: 4px; background: #fdeaea; color: #b4232a; border-left: 3px solid #e0555c; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-clock { display: block; font-size: 11px; line-height: 1.3; padding: 1px 6px; margin-bottom: 2px; border-radius: 4px; background: #e8f1fb; color: #1f5fa8; border-left: 3px solid #4a90d9; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-ev--allday:hover { filter: brightness(0.95); background: inherit; }
.cal-ev--allday .cal-ev__title, .cal-ev--allday .cal-ev__time { color: #fff; }
/* 멀티데이 연결 바 — 셀 경계까지 덮어 끊김 없이, 모든 칸 동일 높이 */
.cal-ev--span { border-radius: 0; position: relative; z-index: 1; }
.cal-ev--span.is-cont { margin-left: -6px; }
.cal-ev--span.is-open { margin-right: -6px; }
.cal-ev--span:not(.is-cont) { border-top-left-radius: 4px; border-bottom-left-radius: 4px; }
.cal-ev--span:not(.is-open) { border-top-right-radius: 4px; border-bottom-right-radius: 4px; }
.cal-ev--hidden { display: none; }
.cal-cell__events.is-expanded .cal-ev--hidden { display: flex; }
.cal-ev__dot { width: 8px; height: 8px; border-radius: 50%; flex: 0 0 8px; }
.cal-ev__time { color: #5a6680; font-weight: 600; flex: 0 0 auto; }
.cal-ev__title { color: var(--ink); font-weight: 500; }
.cal-ev--done { opacity: .55; position: relative; }
.cal-ev--done::after { content: ''; position: absolute; left: 6px; right: 6px; top: 50%; height: 1px; background: var(--ink); opacity: .7; pointer-events: none; }
.cal-ev--allday.cal-ev--done { opacity: .65; }
.cal-ev--allday.cal-ev--done::after { background: #fff; }
.cal-ev--allday .cal-ev__time { color: rgba(255,255,255,.9); }
.cal-ev__attend { flex: 0 0 auto; font-size: 10px; }
.cal-ev__title { overflow: hidden; text-overflow: ellipsis; }
.cal-more { background: none; border: 0; color: var(--mute); font-size: 11px; text-align: left; padding: 1px 5px; cursor: pointer; }
.cal-more:hover { color: var(--navy); }

/* 일정 폼 (연락처 추가 폼과 동일한 세로 스택) */
.ev-form { display: flex; flex-direction: column; gap: 6px; }
.ev-row { display: flex; flex-direction: column; gap: 6px; align-items: stretch; }
.ev-row__label { font-size: 13px; color: var(--mute); margin-top: 12px; }
.ev-row__field { display: flex; flex-direction: column; gap: 6px; }
.ev-row__field input[type=text], .ev-row__field input[type=password], .ev-row__field input[type=number], .ev-row__field input[type=time], .ev-row__field select, .ev-row__field textarea, .ev-row__field input[type=date] {
  border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; font: inherit; font-size: 14px; box-sizing: border-box; }
.ev-row__field textarea { min-height: 90px; resize: none; }
.ev-row__field input[type=file] { width: 100%; border: 0; padding: 6px 0; font: inherit; font-size: 14px; box-sizing: border-box; }
.ev-row__field .req { color: #b0234e; }
/* select 커스텀 화살표 (우측 끝에서 살짝 안쪽) */
.ev-form select { appearance: none; -webkit-appearance: none; background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236b7280' d='M6 8 0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; padding-right: 34px; cursor: pointer; }
.ev-time-sel { background-position: right 8px center !important; padding-right: 26px !important; }
.ev-datetime { display: flex; gap: 6px; align-items: center; }
.ev-datetime .cm-date { flex: 0 0 150px; max-width: 150px; }
.ev-datetime .cm-date [data-dp-display] { width: 100%; box-sizing: border-box; }
.ev-time-sel { width: 72px; flex: 0 0 72px; }
.ev-recur-until .cm-date { flex: 0 0 160px; max-width: 160px; }
.ev-recur-until .cm-date [data-dp-display] { width: 100%; box-sizing: border-box; }
.ev-allday { display: flex; align-items: center; gap: 7px; font-size: 14px; }
.ev-recur-until { display: block; }
.ev-recur-until > span { display: block; margin-bottom: 4px; }
.ev-recur-until .cm-date { display: block; max-width: 200px; }
.ev-recur-until input[type=date] { flex: 0 0 auto; }
.req { color: #b0234e; }
.ev-att-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ev-att-chip { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 3px 11px; font-size: 13px; color: var(--ink); }
.ev-att-empty { color: var(--mute); font-size: 13px; }
/* 참석자 선택 모달 */
.att-modal-all { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--navy); margin: 16px 0 10px; }
.att-modal-search { width: 100%; margin-bottom: 10px; padding: 10px 12px; border: 1px solid var(--line); }
.att-modal-list { max-height: 360px; overflow-y: auto; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 10px; }
.att-modal-item { display: flex; align-items: center; gap: 11px; padding: 10px 14px; font-size: 14px; cursor: pointer; transition: background .1s; }
.att-modal-item:not(:last-child) { border-bottom: 1px solid var(--line); }
.att-modal-item:hover { background: var(--paper); }
.att-modal-item input[type=checkbox] { flex: 0 0 18px; }
.att-avatar { flex: 0 0 32px; width: 32px; height: 32px; border-radius: 50%; background: var(--navy); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; }
.att-info { display: flex; flex-direction: column; line-height: 1.35; }
.att-name { font-weight: 600; color: var(--ink); }
.att-pos { font-size: 12px; color: var(--mute); }
/* 부서 접기 */
.att-dept__head { display: flex; align-items: center; gap: 8px; width: 100%; padding: 10px 14px; background: var(--paper);
  border: 0; border-bottom: 1px solid var(--line); font: inherit; font-weight: 700; font-size: 13px; color: var(--navy); cursor: pointer; }
.att-dept:last-child .att-dept__list .att-modal-item:last-child { border-bottom: 0; }
.att-dept__caret { font-size: 11px; transition: transform .15s; }
.att-dept.is-collapsed .att-dept__caret { transform: rotate(-90deg); }
.att-dept.is-collapsed .att-dept__list { display: none; }
.att-dept__count { margin-left: auto; color: var(--mute); font-weight: 500; }
/* 작성/수정 로그 */
.ev-log { font-size: 12px; color: var(--mute); margin: 16px 0 0; }
/* 내가 참석 표시 (이벤트 끝) */
.cal-ev__attend { margin-left: auto; color: #2a9d5f; flex: 0 0 auto; display: inline-flex; align-items: center; }
.cal-ev--allday .cal-ev__attend { color: #fff; }
.ev-filelist { display: flex; flex-direction: column; gap: 4px; }
.ev-file { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.ev-file__name { color: var(--navy); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ev-file__name:hover { text-decoration: underline; }
.ev-file__del { background: none; border: 0; color: var(--mute); cursor: pointer; font-size: 15px; line-height: 1; }
.ev-file__del:hover { color: #b0234e; }
.ev-form__actions { display: flex; align-items: center; gap: 10px; margin-top: 24px; }
.modal__panel--lg { max-width: 560px; }

/* 문의 담당자(알림 수신) 설정 카드 */
/* 권한 관리 페이지 (관리자 메뉴) */
.ct-perm-lead { margin: 0 0 20px; font-size: 14px; color: #64748b; }
.ct-perm-sec { margin-bottom: 22px; }
.ct-perm-sec__title { margin: 0 0 6px; font-size: 15px; font-weight: 700; color: #1e2a44; }
.ct-perm-sec .ct-handler { margin: 0; }
.ct-handler { margin: 4px 0 16px; padding: 14px 16px; background: #f6f8fc; border: 1px solid #e2e8f0; border-radius: 10px; }
.ct-handler__form { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.ct-handler__label { font-weight: 700; color: #1e2a44; font-size: 14px; }
.ct-handler__opts { display: flex; flex-wrap: wrap; gap: 8px 14px; flex: 1; }
.ct-handler__chk { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: #334155; cursor: pointer; }
.ct-handler__chk input { width: 16px; height: 16px; cursor: pointer; }
.ct-handler__hint { margin: 8px 0 0; font-size: 12px; color: #64748b; }
.gw-btn--ghost { background: #fff; border: 1px solid #cbd5e1; color: #475569; }
.gw-btn--ghost:hover { background: #f1f5f9; }
.ct-handler__chips { display: inline-flex; flex-wrap: wrap; gap: 6px; flex: 1; align-items: center; }
.ct-chip { display: inline-flex; align-items: center; padding: 4px 10px; background: #e0e7ff; color: #3730a3; border-radius: 14px; font-size: 13px; font-weight: 600; }
/* 직원 선택 드롭다운 (버튼 바로 아래, 오버레이 없음) */
.ct-handler__picker { position: relative; display: inline-flex; }
.ct-hpop { position: absolute; top: calc(100% + 6px); right: 0; z-index: 60; width: 320px; background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; box-shadow: 0 12px 30px rgba(15,23,42,.16); overflow: hidden; }
.ct-hpop__search { margin: 12px; width: calc(100% - 24px); }
.ct-hpop__list { max-height: 280px; overflow-y: auto; padding: 0 6px 6px; }
.ct-hpop__row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; cursor: pointer; font-size: 14px; color: #334155; }
.ct-hpop__row:hover { background: #f1f5f9; }
.ct-hpop__row input { width: 17px; height: 17px; cursor: pointer; }
.ct-hpop__row em { margin-left: auto; font-style: normal; font-size: 12px; color: #94a3b8; }
.ct-hpop__foot { display: flex; justify-content: flex-end; gap: 8px; padding: 10px 12px; border-top: 1px solid #e2e8f0; }

/* ===================== 사이트관리 (site) ===================== */
.site-badge { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; background: #f1f5f9; color: #64748b; }
.site-badge--on { background: #dcfce7; color: #16a34a; }
.site-opts { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.site-chk { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; color: var(--ink); }
.site-chk input { width: 16px; height: 16px; }
/* 공개 동적 페이지 */
.site-public { background: #fff; }
.site-page { max-width: 1120px; margin: 0 auto; padding: 32px 20px 80px; }
.site-page__content { line-height: 1.7; color: var(--ink); }
.site-page__content img { max-width: 100%; height: auto; }
.site-page__content table { border-collapse: collapse; }
.site-page__content table td, .site-page__content table th { border: 1px solid var(--line); padding: 8px 10px; }

/* 사이트관리 — 행사별 어드민 카드/탭 */
.site-events { margin-bottom: 8px; }
.site-event-cards { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; }
.site-event-card { display: flex; flex-direction: column; gap: 6px; min-width: 200px; padding: 16px 18px;
    border: 1px solid var(--line); border-radius: 12px; text-decoration: none; background: #fff; transition: .15s; }
.site-event-card:hover { border-color: var(--navy); box-shadow: 0 6px 20px rgba(30,41,99,.08); }
.site-event-card__name { font-size: 16px; font-weight: 700; color: var(--ink); }
.site-event-card__go { font-size: 13px; color: var(--navy); }
.site-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; border-bottom: 1px solid var(--line); }
.site-tab { padding: 9px 16px; text-decoration: none; color: var(--mute); font-weight: 600; font-size: 14px;
    border-bottom: 2px solid transparent; margin-bottom: -1px; }
.site-tab:hover { color: var(--navy); }
.site-tab.is-active { color: var(--navy); border-bottom-color: var(--navy); }
.site-status-acts { display: inline-flex; gap: 4px; margin-left: 6px; }
/* 본문 HTML 코드 입력 */
textarea.site-code { width: 100%; min-height: 460px; resize: vertical; box-sizing: border-box;
    font-family: ui-monospace, SFMono-Regular, Consolas, 'D2Coding', monospace; font-size: 13px; line-height: 1.55;
    padding: 14px; border: 1px solid var(--line); border-radius: 8px; background: #0f172a; color: #e2e8f0; tab-size: 2; white-space: pre; overflow: auto; }
textarea.site-code:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(30,41,99,.15); }
/* CodeMirror HTML 에디터 */
.CodeMirror { border: 1px solid var(--line); border-radius: 8px; height: 480px; font-size: 13px;
    font-family: ui-monospace, SFMono-Regular, Consolas, 'D2Coding', monospace; }
.CodeMirror-focused { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(30,41,99,.15); }
/* 페이지 행사 트리 */
.site-tree { margin-bottom: 22px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.site-tree__head { display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: #f8fafc; border-bottom: 1px solid var(--line); }
.site-tree__name { font-size: 15px; flex: 1 1 auto; min-width: 0; }
.site-tree__name b { font-weight: 700; }
.site-tree__head .gw-btn, .site-tree__head .gw-btn--ghost { margin-left: 0; flex: 0 0 auto; }
.site-tree__tbl { margin: 0; width: 100%; border-collapse: collapse; display: table; }
.site-tree__tbl tbody { display: table-row-group; }
.site-tree__tbl tr { display: table-row; }
.site-tree__tbl td { display: table-cell; border-bottom: 1px solid #f1f5f9; padding: 11px 14px; color: var(--ink); vertical-align: middle; }
.site-tree__tbl a { color: var(--ink); text-decoration: none; }
.site-tree__tbl a:hover { color: var(--navy); }
.site-tree__cell { font-weight: 500; }
.site-tree__indent { color: #cbd5e1; margin-right: 6px; }

/* ===================== 자료실 (docs) ===================== */
/* 우클릭 컨텍스트 메뉴 */
.doc-ctx { position: absolute; z-index: 200; min-width: 160px; background: #fff; border: 1px solid var(--line);
    border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.14); padding: 6px; }
.doc-ctx button { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 9px 12px;
    border-radius: 6px; font-size: 13px; color: var(--ink); cursor: pointer; }
.doc-ctx button:hover { background: #f1f5f9; }
.doc-ctx button.is-danger { color: #dc2626; }
.doc-row { cursor: default; }
/* 공유 직원 선택 */
.doc-share-list { max-height: 300px; overflow-y: auto; border: 1px solid var(--line); border-radius: 8px; }
.doc-share-item { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-bottom: 1px solid #f1f5f9; cursor: pointer; }
.doc-share-item:last-child { border-bottom: 0; }
.doc-share-item:hover { background: #f8fafc; }
.doc-share-item input { width: 17px; height: 17px; accent-color: var(--navy); }
.doc-share-nm { font-weight: 500; }
.doc-share-dept { margin-left: auto; font-size: 12px; color: var(--mute); }
/* 서브nav 새 폴더 버튼 — 전폭, 깔끔한 솔리드 */
.gw-subnav__newfolder { display: flex; align-items: center; justify-content: center; gap: 6px; width: auto; margin: 0 16px; box-sizing: border-box;
    background: #fff; border: 1px solid var(--line); color: #475569;
    height: 40px; padding: 0 12px; border-radius: 8px; font-size: 13px; font-weight: 600; cursor: pointer; transition: .15s; }
.gw-subnav__newfolder:hover { border-color: var(--navy); color: var(--navy); background: #f8fafc; }
.gw-subnav__sec:has(.gw-subnav__newfolder) { margin-top: 0; border-top: none; padding-top: 0; }
/* 폴더 트리 */
.doc-tree__item { display: flex; align-items: center; gap: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.doc-tree__ic { font-size: 13px; flex: 0 0 auto; }
/* 용량 위젯 — 하단 고정, foot 와 간격 */
.doc-usage-sec { margin-top: auto; padding-top: 8px; }
.doc-usage { padding: 14px 14px; }
.doc-usage__top { display: flex; justify-content: space-between; align-items: baseline; font-size: 12px; color: var(--mute); }
.doc-usage__top b { font-size: 15px; font-weight: 700; color: var(--ink); }
.doc-usage__bar { height: 6px; background: #e2e8f0; border-radius: 999px; margin: 10px 0 8px; overflow: hidden; }
.doc-usage__bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--navy), #6366f1); border-radius: 999px; min-width: 3px; }
.doc-usage__hint { font-size: 11px; color: #94a3b8; }

/* 헤더 + 검색 */
.doc-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.doc-search { position: relative; display: flex; align-items: center; }
.doc-search__ic { position: absolute; left: 12px; font-size: 13px; opacity: .6; pointer-events: none; }
.doc-search input { width: 260px; max-width: 42vw; height: 38px; padding: 0 14px; border: 1px solid var(--line);
    border-radius: 20px; font-size: 14px; background: #fff; transition: .15s; }
.doc-search input:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(30,41,99,.08); }

/* 브레드크럼 */
.doc-crumb { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; margin: 4px 0 14px; font-size: 13px; color: var(--mute); }
.doc-crumb a { color: var(--mute); text-decoration: none; padding: 2px 6px; border-radius: 6px; }
.doc-crumb a:hover { background: #f1f5f9; color: var(--navy); }
.doc-crumb__sep { color: #cbd5e1; margin: 0 2px; }

/* 일괄 작업 바 */
.doc-bulkbar { display: flex; align-items: center; gap: 10px; padding: 8px 14px; margin-bottom: 12px;
    background: #eef2ff; border: 1px solid #c7d2fe; border-radius: 10px; }
.doc-bulkbar__cnt { font-size: 13px; color: var(--navy); }
.doc-bulkbar__cnt b { font-size: 15px; }
.doc-pastebar { display: flex; align-items: center; gap: 10px; padding: 10px 16px; margin-bottom: 12px;
    background: #fffbeb; border: 1px solid #fcd34d; border-radius: 10px; font-size: 13px; color: #92400e; }
.doc-pastebar [data-paste-info] { flex: 1; }
.doc-sl-create { margin-top: 20px; }
.doc-sl-create__row { display: flex; gap: 10px; align-items: center; }
.doc-sl-create__label { font-size: 13px; color: var(--mute); white-space: nowrap; }
.doc-sl-create__sel { margin: 0; width: auto; flex: 1; }
.doc-sl-list { margin-top: 20px; }
.doc-sl-item { padding: 14px 16px; background: #f8fafc; border-radius: 10px; border: 1px solid var(--line); margin-bottom: 10px; }
.doc-sl-item__url { display: flex; gap: 8px; align-items: center; }
.doc-sl-item__url input { flex: 1; margin: 0; font-size: 12px; font-family: monospace; }
.doc-sl-item__meta { margin-top: 8px; font-size: 12px; color: var(--mute); display: flex; gap: 12px; }
/* 직원 공유 모달 — approval.css al-* 클래스 재사용 */

/* 드롭존 + 테이블 */
.doc-drop { position: relative; border-radius: 12px; transition: .15s; min-height: 340px; }
.doc-drop__empty { padding: 56px 16px; }
.doc-drop.is-drag { outline: 2px dashed var(--navy); outline-offset: 4px; background: rgba(99,102,241,.04); }
.doc-drop__hint { display: none; position: absolute; inset: 0; align-items: center; justify-content: center;
    font-size: 15px; font-weight: 700; color: var(--navy); background: rgba(238,242,255,.85); border-radius: 12px; pointer-events: none; z-index: 3; }
.doc-drop.is-drag .doc-drop__hint { display: flex; }

.doc-table .doc-c-chk { width: 44px; text-align: center; vertical-align: middle; }
.doc-table .doc-check, .doc-table [data-check-all] { width: 18px; height: 18px; cursor: pointer; vertical-align: middle; accent-color: var(--navy); }
.doc-name { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); font-weight: 500; }
.doc-name:hover { color: var(--navy); text-decoration: underline; }
.doc-name--folder { font-weight: 600; }
.doc-rank-badge { display: inline-block; margin-left: 8px; padding: 1px 7px; border-radius: 10px; background: #fff3e0; color: #b26a00; font-size: 11px; font-weight: 700; vertical-align: middle; white-space: nowrap; }
.doc-ico { font-size: 16px; line-height: 1; flex: 0 0 auto; }
.doc-vchip { background: #f1f5f9; border: 1px solid var(--line); color: #475569; font-size: 11px; font-weight: 700;
    padding: 2px 8px; border-radius: 999px; cursor: pointer; transition: .15s; }
.doc-vchip:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.doc-acts { white-space: nowrap; }
.link-btn--danger { color: #dc2626; }

/* 모달 공통 입력/액션 */
.doc-input { width: 100%; height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; font-size: 14px; }
.doc-input:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(30,41,99,.08); }
.doc-modal-acts { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }
/* 모달 파일 드롭 */
.doc-fdrop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
    padding: 28px 16px; border: 2px dashed var(--line); border-radius: 12px; cursor: pointer; text-align: center; transition: .15s; }
.doc-fdrop:hover, .doc-fdrop.is-over { border-color: var(--navy); background: #f8fafc; }
.doc-fdrop__ic { font-size: 26px; }
.doc-fdrop__t { font-size: 13px; color: var(--mute); word-break: break-all; }

/* 버전 이력 */
.doc-verlist { display: flex; flex-direction: column; gap: 6px; max-height: 320px; overflow-y: auto; }
.doc-ver { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border: 1px solid var(--line);
    border-radius: 8px; text-decoration: none; color: var(--ink); }
.doc-ver:hover { background: #f8fafc; border-color: var(--navy); }
.doc-ver b { flex: 0 0 auto; color: var(--navy); }
.doc-ver span { flex: 1; font-size: 13px; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.doc-ver em { flex: 0 0 auto; font-style: normal; font-size: 12px; color: #94a3b8; }
