/* 회사소개 사이트 — 01 "Editorial Navy" 컨셉. 서체 Noto Sans KR. */
/* Noto Sans KR 은 회사 사이트 head(<link>)에서 로드 — @import 는 스타일 적용 전체를 막아 화면이 늦게 그려짐 */

: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 Variable", Pretendard, system-ui, sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.csite .container { max-width: 1280px; margin: 0 auto; padding: 0 32px; }
.csite .serif { font-family: "Pretendard Variable", 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 Variable", 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 Variable", 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 Variable", 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(14px); transition: opacity .6s cubic-bezier(.22,.61,.36,1), transform .6s cubic-bezier(.22,.61,.36,1); }
.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 Variable", 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 Variable", 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 Variable", 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 Variable", 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 Variable", 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 Variable", 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 Variable", 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-fab.is-ping { animation: gcPing 1s ease-out; }
@keyframes gcPing { 0% { box-shadow: 0 0 0 0 rgba(239,68,68,.55), 0 6px 20px rgba(10,26,47,.28); transform: scale(1); }
    25% { transform: scale(1.1); } 100% { box-shadow: 0 0 0 18px rgba(239,68,68,0), 0 6px 20px rgba(10,26,47,.28); transform: scale(1); } }
/* 새 메시지 토스트 — 메신저 버튼 바로 위 */
.gc-toasts { position: fixed; right: 20px; bottom: 86px; z-index: 9999; display: flex; flex-direction: column; gap: 8px; width: 320px; max-width: calc(100vw - 40px); pointer-events: none; }
.gc-toast { pointer-events: auto; display: flex; align-items: center; gap: 10px; padding: 12px 10px 12px 14px; background: #fff; border: 1px solid var(--line);
    border-left: 4px solid #ef4444; border-radius: 12px; box-shadow: 0 10px 28px rgba(10,26,47,.18); cursor: pointer; animation: gcToastIn .22s ease-out; transition: opacity .2s, transform .2s; }
.gc-toast:hover { box-shadow: 0 12px 32px rgba(10,26,47,.24); }
.gc-toast.is-out { opacity: 0; transform: translateX(16px); }
@keyframes gcToastIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.gc-toast__main { flex: 1; min-width: 0; }
.gc-toast__top { display: flex; align-items: baseline; gap: 6px; }
.gc-toast__top b { font-size: 14px; color: var(--ink); white-space: nowrap; }
.gc-toast__top span { font-size: 11px; color: var(--mute); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gc-toast__msg { margin-top: 2px; font-size: 13px; color: #374151; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gc-toast__x { flex: none; border: none; background: none; font-size: 18px; line-height: 1; color: var(--mute); cursor: pointer; padding: 2px 4px; }
.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-bubble { width: fit-content; max-width: 100%; box-sizing: border-box; }
.gc-msg.me .gc-bubble { margin-left: auto; }
.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; }
/* 주소록 선택창 */
html.ab-lock, html.ab-lock body { overflow: hidden; }
.ab-modal__list { overscroll-behavior: contain; }
.ab-modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 16px; }
.ab-modal[hidden] { display: none; }
.ab-modal__bg { position: absolute; inset: 0; background: rgba(15,23,42,.45); }
.ab-modal__panel { position: relative; width: min(560px, 100%); max-height: min(680px, calc(100vh - 32px)); display: flex; flex-direction: column;
    background: #fff; border-radius: 14px; box-shadow: 0 20px 50px rgba(15,23,42,.25); overflow: hidden; }
.ab-modal__head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line); font-size: 16px; color: var(--ink); }
.ab-modal__x { border: 0; background: none; font-size: 22px; line-height: 1; color: var(--mute); cursor: pointer; }
.ab-modal__search { padding: 12px 20px 0; }
.ab-modal__search input { width: 100%; height: 40px; border: 1px solid var(--line); border-radius: 8px; padding: 0 12px; font: inherit; font-size: 14px; box-sizing: border-box; }
.ab-modal__groups { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 20px; }
.ab-chip { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 4px 11px; font: inherit; font-size: 12px; color: var(--mute); cursor: pointer; }
.ab-chip.is-on { background: var(--navy, #12283f); border-color: var(--navy, #12283f); color: #fff; }
.ab-modal__list { flex: 1; min-height: 200px; overflow-y: auto; border-top: 1px solid var(--line); }
.ab-row { display: flex; align-items: center; gap: 10px; padding: 9px 20px; border-bottom: 1px solid #f1f5f9; cursor: pointer; }
.ab-row:hover { background: #f7f9fb; }
.ab-row input { width: 16px; height: 16px; accent-color: var(--navy, #12283f); flex: none; }
.ab-row__ava { flex: none; width: 32px; height: 32px; border-radius: 50%; background: #e2e8f0; color: #334155; font-size: 13px; font-weight: 700; display: grid; place-items: center; }
.ab-row__main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ab-row__main b { font-size: 14px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ab-row__main b small { margin-left: 4px; font-size: 12px; font-weight: 500; color: var(--mute); }
.ab-row__main em { font-style: normal; font-size: 12px; color: var(--mute); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ab-row__grp { flex: none; font-size: 11px; color: var(--mute); background: #f1f5f9; border-radius: 4px; padding: 2px 7px; }
.ab-empty { padding: 40px 0; text-align: center; color: var(--mute); font-size: 13px; }
.ab-modal__foot { display: flex; align-items: center; gap: 8px; padding: 12px 20px; border-top: 1px solid var(--line); }
.ab-modal__cnt { margin-right: auto; font-size: 13px; color: var(--mute); }
.ab-modal__foot .gw-btn--primary { margin-left: 0; }
/* 제목 입력 + 중요 토글(입력칸 안 오른쪽) */
.ml-subj-field { flex: 1; min-width: 0; position: relative; }
.ml-compose .ml-subj-field > input[type=text] { width: 100%; }
.ml-compose .ml-row .ml-subj-field > input[type=text] { padding-left: 80px; }
.ml-imp { position: absolute; left: 6px; top: 50%; transform: translateY(-50%); display: flex; }
.ml-imp input { position: absolute !important; left: 0; top: 0; margin: 0 !important; opacity: 0; width: 1px !important; height: 1px !important; pointer-events: none; }
.ml-imp label { display: inline-flex; align-items: center; gap: 4px; height: 28px; padding: 0 10px; border-radius: 6px; cursor: pointer; user-select: none;
    font-size: 12px; font-weight: 700; color: #94a3b8; background: #f5f6f8; border: 1px solid transparent; transition: all .12s; }
.ml-imp label svg { width: 13px; height: 13px; }
.ml-imp label:hover { color: #c0304a; background: #fdecef; }
.ml-imp input:checked + label { color: #fff; background: #c0304a; }
.ml-imp input:focus-visible + label { outline: 2px solid #c0304a; outline-offset: 2px; }
/* 메일 쓰기 폼 정돈: 줄 라벨·입력 높이 40·테두리·포커스 통일 */
.ml-compose .ml-row { gap: 10px; padding: 8px 0; border-bottom-color: #eef0f3; }
.ml-compose .ml-row > label { flex: 0 0 76px; font-size: 13px; font-weight: 600; color: #475569; }
.ml-compose .ml-row > input[type=text], .ml-compose .ml-subj-field > input[type=text] { height: 40px; padding-left: 12px; box-sizing: border-box; font-size: 14px; }
.ml-compose input[type=text], .ml-compose .ml-recip__box, .ml-compose .ml-cc-btn,
.ml-compose .ml-sched .cm-date > input[data-dp-display], .ml-compose .ml-sched .cm-dd__btn { border-color: #dfe3e8; border-radius: 8px; transition: border-color .12s, box-shadow .12s; }
.ml-compose input[type=text]:focus, .ml-compose .ml-recip__box:focus-within,
.ml-compose .ml-sched .cm-date > input:focus, .ml-compose .ml-sched .cm-dd__btn:focus { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(30,41,99,.08); outline: none; }
.ml-compose input::placeholder, .ml-compose .ml-recip__input::placeholder { color: #a0a8b4; }
.ml-compose .ml-cc-btn { flex: none; height: 40px; padding: 0 14px; font-size: 13px; font-weight: 600; color: #475569; }
.ml-compose .ml-cc-btn:hover { background: #f7f9fb; }
.ml-compose .ml-sched .cm-dd__btn { font-weight: 500; padding: 0 12px; min-width: 72px; justify-content: space-between; }
.ml-compose .ml-sched .cm-date { width: 160px; }
.ml-imp-tag { display: inline-block; margin-right: 6px; padding: 1px 6px; border-radius: 4px; background: #fdecef; color: #c0304a; font-size: 11px; font-weight: 800; vertical-align: 1px; }
.ml-imp-tag--lg { font-size: 13px; padding: 2px 8px; vertical-align: 3px; }
.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-chip[draggable=true] { cursor: grab; }
.ml-chip.is-dragging { opacity: .4; }
.ml-recip__box.is-drop { border-color: var(--navy); background: #f1f5fb; }
/* 휴대폰: 칩 길게 눌러 옮기기 메뉴 */
.ml-chip.is-picked { outline: 2px solid var(--navy); background: #e3eaf3; }
.ml-chip { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.ml-movemenu { position: fixed; z-index: 2000; display: flex; flex-direction: column; min-width: 170px; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 10px 28px rgba(15,23,42,.18); overflow: hidden; }
.ml-movemenu button { border: 0; background: #fff; padding: 13px 16px; text-align: left; font: inherit; font-size: 15px; color: var(--ink); }
.ml-movemenu button + button { border-top: 1px solid #eef1f4; }
.ml-movemenu button:active { background: #f1f5fb; }
.ml-movemenu .is-cancel { color: var(--mute); }
.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-recip__opt { display: flex; align-items: center; gap: 8px; }
.ml-recip__nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ml-recip__kind { flex: none; font-size: 11px; color: var(--mute); background: #f1f5f9; border-radius: 4px; padding: 1px 6px; }
.ml-recip__head { position: sticky; top: 0; background: #fff; padding: 8px 12px 4px; font-size: 11px; font-weight: 700; color: var(--mute); }
/* 추천 목록: 약 7줄 높이 + 내부 스크롤(최근 최대 15명) */
.ml-recip__sug { max-height: 300px; overscroll-behavior: contain; }
.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; justify-content: flex-start; 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-colorrow { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.ml-lbl-colorpick { width: 46px; height: 36px; padding: 2px; border: 1px solid var(--line); border-radius: 8px; background: #fff; cursor: pointer; }
.ml-lbl-swatches { display: inline-flex; gap: 8px; flex-wrap: wrap; }
.ml-lbl-sw { display: inline-block; width: 24px; height: 24px; border-radius: 50%; cursor: pointer; border: 0; padding: 0; outline: 2px solid transparent; outline-offset: 2px; }
.ml-lbl-sw:hover { outline-color: var(--navy); }
.ml-lbl-parent-lb { display: block; margin-top: 16px; margin-bottom: 5px; font-size: 12px; font-weight: 700; color: var(--mute); }
.ml-lbl-parent-sel { width: 100%; height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font-size: 14px; }
/* 새 라벨 모달 — 커스텀 상위그룹 select 가 모달 밖으로 안 잘리게 (복합선택자로 base .modal__panel{overflow-y:auto} 이김) */
.modal__panel.modal__panel--lblnew { overflow: visible; }
.modal__panel--lblnew .cm-wrap { display: block; width: 100%; }
.modal__panel--lblnew .cm-dd__btn { width: 100%; height: 40px; box-sizing: border-box; border: 1px solid var(--line); border-radius: 8px; background: #fff; display: flex; align-items: center; justify-content: space-between; padding: 0 12px; }
.modal__panel--lblnew .cm-dd__panel { max-height: 220px; overflow-y: auto; }
/* 라벨 계층 트리 */
.ml-lbl-tree { display: flex; flex-direction: column; }
.ml-lbl-row { display: flex; align-items: center; gap: 4px; padding: 3px 16px 3px 12px; }
.ml-lbl-row .ml-lbl-link { flex: 1 1 auto; min-width: 0; justify-content: flex-start; }
.ml-lbl-row .ml-lbl-link > span:not(.ml-lbl-dot):not(.ml-lbl-cnt) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ml-lbl-toggle { border: 0; background: none; cursor: pointer; width: 16px; flex: 0 0 16px; color: var(--mute); font-size: 11px; padding: 0; }
.ml-lbl-grp { font-weight: 600; color: var(--ink, #333); flex: 1 1 auto; }
.ml-lbl-cnt { flex: 0 0 auto; margin-left: auto; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--navy, #0A1A2F); color: #fff; font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; line-height: 1; }
.ml-lbl-children.is-collapsed { display: none; }
/* 라벨 칩 */
.ml-lblchip { display: inline-block; max-width: 100%; box-sizing: border-box; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 1px 7px; border-radius: 10px; font-size: 11px; color: #fff; font-weight: 600; vertical-align: middle; }
.ml-table .ml-subj { width: 100%; }
.ml-table .ml-lblcol { width: 120px; max-width: 120px; text-align: left; padding: 0 8px; }
/* 상세 상단 액션바 */
.ml-detail__acts--top { border-top: 0; padding-top: 0; margin-bottom: 12px; flex-wrap: wrap; align-items: center; justify-content: flex-start; }
.ml-detail__acts--top .gw-btn--primary { margin-left: 0; }
.ml-detail__lblset { display: inline-flex; gap: 4px; align-items: center; }
/* 메일 라벨 커스텀 select(툴바·상세) — 버튼줄과 높이 통일 + 폰트 축소 + 드롭다운 한 줄 자동폭 */
.ml-bulk-label .cm-wrap, .ml-detail__lblset .cm-wrap { display: inline-block; }
.ml-bulk-label .cm-dd__btn, .ml-detail__lblset .cm-dd__btn { height: 30.6px !important; min-height: 0 !important; padding: 0 12px !important; border: 1px solid #cbd5e1 !important; border-radius: 6px; font-size: 13px !important; color: #475569; }
.ml-bulk-label .cm-dd__panel, .ml-detail__lblset .cm-dd__panel { width: max-content; min-width: 100%; right: auto; }
.ml-bulk-label .cm-dd__opt, .ml-detail__lblset .cm-dd__opt { white-space: nowrap; }
.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, .mb-table .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, .mb-table .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 { width: auto; }
.ml-filter-add .cm-dd__panel { width: max-content; min-width: 100%; right: auto; }
.ml-filter-add .cm-dd__opt { white-space: nowrap; }
.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: flex; align-items: center; justify-content: space-between; gap: 6px; 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; }
.ml-fld-badge { flex: 0 0 auto; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--navy, #0A1A2F); color: #fff; font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; line-height: 1; }
.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: 0; border-top: 1px solid var(--line); padding-top: 0; }   /* 구분선 위·아래 여백 제거(항목 자체 패딩만) */
.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, html.gw-sub-collapsed .gw-body[data-collapsible] .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, html.gw-sub-collapsed .gw-body[data-collapsible] .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 .ap-sizeform, .gw-head-tools .ct-sizeform { display: contents; }   /* 페이지당 개수 폼 — 툴바 줄 배치 유지 */
.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); }
/* 행사 참가자 — 내부 스크롤 없이 페이지 자연 확장 */
/* 행사 참가자: 상단(제목·검색·버튼)·하단 페이지 고정, 표만 스크롤 — 화면 높이에 맞춘 세로 flex */
.ea-page .gw-body { height: calc(100vh - 64px); min-height: 0; overflow: hidden; }
.ea-page .gw-main { display: flex; flex-direction: column; min-height: 0; overflow: hidden; padding-bottom: 16px; }
.ea-page #ea-del { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.ea-page .ct-tablewrap { flex: 1 1 auto; min-height: 0; max-height: none; overflow: auto; }
.ea-page .gw-pager { flex: none; margin-top: 12px; }
.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; display: inline-flex; align-items: center; justify-content: center; line-height: 1; text-align: center; }
.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 { font-size: 13px; color: var(--ink); line-height: 1.6; white-space: pre-wrap; word-break: break-word; }
/* ===== 근태 대시보드 (리디자인) ===== */
.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; }
/* 이전 날짜 퇴근 누락 입력 */
.att-punch__miss { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; position: relative; z-index: 1;
    background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.18); border-radius: 10px; padding: 7px 8px 7px 12px; font-size: 13px; }
.att-punch__miss-ico { flex: none; width: 20px; height: 20px; border-radius: 50%; background: #ffb4a3; color: #7a1d0c;
    font-style: normal; font-weight: 800; font-size: 12px; display: grid; place-items: center; }
.att-punch__miss-msg { flex: 1; min-width: 0; }
.att-punch__miss-msg b { font-weight: 800; }
.att-punch__miss-msg em { font-style: normal; margin-left: 6px; opacity: .7; font-size: 12px; font-variant-numeric: tabular-nums; }
.att-punch__miss-btn { flex: none; border: 0; border-radius: 8px; padding: 7px 14px; background: #fff; color: #c0392b;
    font: inherit; font-size: 13px; font-weight: 800; cursor: pointer; transition: transform .12s, box-shadow .12s; }
.att-punch__miss-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 10px rgba(0,0,0,.15); }

/* ==== 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+2):nth-child(-n+7),
.contact-table th:nth-child(n+2):nth-child(-n+7) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* 열: 1 체크 · 2 이름 · 3 메일 · 4 휴대폰 · 5 회사번호 · 6 회사명 · 7 그룹 · 8 관리 (별표 열 없음 — 이전 nth 가 한 칸 밀려 이름·메일 겹침) */
.contact-table th:nth-child(2), .contact-table td:nth-child(2) { width: 15%; }  /* 이름 */
.contact-table th:nth-child(3), .contact-table td:nth-child(3) { width: 23%; }  /* 메일 주소 */
.contact-table th:nth-child(4), .contact-table td:nth-child(4) { width: 13%; }  /* 휴대폰 */
.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: 15%; }  /* 회사명 */
.contact-table th:nth-child(7), .contact-table td:nth-child(7) { width: 11%; }  /* 그룹 */
.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; table-layout: fixed; }
.mb-table th, .mb-table td { vertical-align: middle; }
/* 고정 레이아웃: 열 너비는 th 지정값 고정, 내용에 따라 재조정 안 함. 긴 내용은 줄바꿈. */
.mb-table td { overflow-wrap: anywhere; word-break: break-word; }
.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; }
.mb-grip { flex: none; cursor: grab; color: #8a94a6; font-size: 17px; font-weight: 700; letter-spacing: -5px; padding: 4px 8px 4px 0; user-select: none; line-height: 1; }
.mb-grip:hover { color: var(--navy); }
.mb-list li.is-dragging { opacity: .45; border-style: dashed; }
.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 Variable", 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; }
  /* aspect-ratio 3/2 + img max-height 120 조합이 셀 최소폭 252px를 강제 → 2열 502px 가로 오버플로. 이미지 축소로 해소 */
  .client-cell { padding: 16px; }
  .client-cell img { max-height: 64px; }
  .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: 31px; 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; }
/* 직원 선택 모달 (화면 중앙 고정, 딤 배경 = box-shadow 100vmax 트릭) */
.ct-handler__picker { position: relative; display: inline-flex; }
.ct-hpop { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 1000;
    width: 360px; max-width: 92vw; max-height: 82vh; display: flex; flex-direction: column;
    background: #fff; border: 1px solid #e2e8f0; border-radius: 12px;
    box-shadow: 0 20px 50px rgba(15,23,42,.28), 0 0 0 100vmax rgba(15,23,42,.38); overflow: hidden; }
/* display:flex 가 UA [hidden]{display:none} 을 덮어써 항상 보이던 회귀 방지 — 명시적으로 숨김 */
.ct-hpop[hidden] { display: none; }
.ct-hpop__search { margin: 12px; width: calc(100% - 24px); flex: 0 0 auto; }
.ct-hpop__list { flex: 1 1 auto; min-height: 0; 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 { flex: 0 0 auto; 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-thumb { width: 30px; height: 30px; object-fit: cover; border-radius: 4px; border: 1px solid var(--line); background: #fff; flex: 0 0 auto; }
.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; }

/* 근태 사내 IP 관리 */
.oip-current { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: #f8fafc; font-size: 14px; }
.oip-badge { font-size: 12px; font-weight: 700; border-radius: 999px; padding: 3px 10px; }
.oip-badge.is-ok { background: #e7f6ee; color: #0e7d5a; }
.oip-badge.is-off { background: #fdecef; color: #b0234e; }

/* 컨텐츠 목록 관리 열: 수정 버튼 + 삭제 */
.ct-acts { white-space: nowrap; }
.ct-acts > a, .ct-acts > form { display: inline-flex; vertical-align: middle; }
.ct-acts > a { margin: 0 6px 0 0; }
.mb-name.is-empty { color: #b08a3e; font-style: italic; }
/* 채용공고 목록: 고정 열 폭·말줄임·게시 배지 */
.ct-jobs { table-layout: fixed; }
.ct-jobs .ct-ellip { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ct-pub { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.ct-pub.is-on { background: #e7f6ee; color: #0e7d5a; }
.ct-pub.is-off { background: #f1f5f9; color: #94a3b8; }
/* 문의 목록: 이름·연락처·날짜·처리 열은 줄바꿈 없이 (연락처·날짜 글자 겹침 방지) */
.ct-tablewrap--inq .mb-table th.iq-w-name { width: 150px; }
.ct-tablewrap--inq .mb-table th.iq-w-pos { width: 120px; }
.ct-tablewrap--inq .mb-table th.iq-w-phone { width: 160px; }
.ct-tablewrap--inq .mb-table th.iq-w-file { width: 90px; }
.ct-tablewrap--inq .mb-table th.iq-w-date { width: 90px; }
.ct-tablewrap--inq .mb-table th.iq-w-act { width: 90px; }
.gc-unread--btn { display: inline-block; min-width: 16px; height: 16px; line-height: 16px; font-size: 10px; padding: 0 4px; margin-left: 2px; vertical-align: 1px; }
/* 메신저: 이모티콘·드롭 영역 */
.gc-emoji-btn { flex: 0 0 auto; border: 0; background: none; font-size: 19px; line-height: 1; cursor: pointer; padding: 4px; border-radius: 8px; filter: grayscale(.2); }
.gc-emoji-btn:hover { background: #f1f5f9; filter: none; }
.gc-emoji { position: absolute; left: 10px; right: 10px; bottom: 62px; z-index: 5; display: grid; grid-template-columns: repeat(8, 1fr); gap: 2px; padding: 8px;
    background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 10px 28px rgba(10,26,47,.16); }
.gc-emoji[hidden] { display: none; }
.gc-emoji__it { border: 0; background: none; font-size: 21px; line-height: 1; padding: 6px 0; border-radius: 8px; cursor: pointer; }
.gc-emoji__it:hover { background: #f1f5f9; }
.gc-drop { position: absolute; inset: 0; z-index: 6; display: flex; align-items: center; justify-content: center; background: rgba(18,40,63,.06); border: 2px dashed var(--navy, #12283f); border-radius: 16px; pointer-events: none; }
.gc-drop[hidden] { display: none; }
.gc-drop div { background: #fff; color: var(--navy, #12283f); font-weight: 700; font-size: 14px; padding: 12px 18px; border-radius: 10px; box-shadow: 0 6px 18px rgba(10,26,47,.12); }
.gc-filetag.is-err { color: #b0234e; background: #fdecef; }
/* 연차 현황 */
.ls-table td, .ls-table th { white-space: nowrap; }
.ls-adj { display: inline-flex; align-items: center; gap: 6px; margin: 0; }
.ls-adj input { width: 64px; height: 32px; box-sizing: border-box; border: 1px solid var(--line); border-radius: 6px; padding: 0 8px; font: inherit; font-size: 13px; text-align: right; }
.ls-adj input:focus { outline: none; border-color: var(--navy); }
.ls-warn { font-size: 12px; font-weight: 700; color: #b0234e; background: #fdecef; border-radius: 4px; padding: 2px 6px; }
.ls-neg { color: #b0234e; font-weight: 700; }
/* 직원 월간 근태 */
.mm-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin: 4px 0 14px; }
.mm-bar .cm-sel, .mm-bar select { min-width: 220px; }
.mm-nav { display: flex; align-items: center; gap: 6px; }
.mm-nav .gw-btn { margin-left: 0; }
.mm-ym { font-size: 16px; color: var(--navy); margin: 0 6px; font-variant-numeric: tabular-nums; }
.mm-sum { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.mm-chip { display: inline-flex; align-items: baseline; gap: 6px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 13px; }
.mm-chip i { font-style: normal; color: var(--mute); }
.mm-chip b { color: var(--ink); }
.mm-chip--warn b { color: #c27803; }
.mm-chip--bad b { color: #b0234e; }
/* 휴면 정책: 선택 + 저장 한 줄 정렬 */
.pd-ctl { display: flex; align-items: center; gap: 8px; flex-wrap: nowrap; }
.pd-ctl .cm-wrap, .pd-ctl .cm-sel { flex: 0 1 280px; width: 280px; min-width: 0; }
.pd-ctl .pd-save { flex: none; margin-left: 0; height: 40px; padding: 0 18px; }
/* 직원 월간 근태: 표 안에서만 스크롤(페이지 전체 스크롤 제거) — 상단 선택바·요약칩 높이만큼 더 뺌 */
.gw-body .ct-tablewrap.mm-tablewrap, .gw-body:has(.gw-rail--admin) .ct-tablewrap.mm-tablewrap { max-height: calc(100vh - 372px); min-height: 0; }
/* 감사 로그: 고정 열 폭(colgroup)이 .mb-c 72px 보다 우선 · 넘치면 말줄임 */
.audit-table .mb-c { width: auto; }
.audit-table td.ct-ellip { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.audit-table .audit-act { white-space: nowrap; }
.ls-acts { white-space: nowrap; }
.ls-link { border: 0; background: none; padding: 2px 6px; font: inherit; font-size: 13px; color: #1155cc; cursor: pointer; text-decoration: none; }
.ls-link:hover { text-decoration: underline; }
.ls-plus { color: #0e7d5a; font-weight: 700; }
.ls-editrow td { background: #f8fafc; }
.ls-editrow .ls-adj { gap: 10px; font-size: 13px; }
.ls-hint { color: var(--mute); font-size: 12px; }
.mm-sumtable td, .mm-sumtable th { white-space: nowrap; }
.mm-sumtable .mb-c { width: auto; }
.mm-warn { color: #c27803; font-weight: 700; }
.mm-bad { color: #b0234e; font-weight: 700; }
.mm-note { font-size: 12px; color: #475569; }
/* 문의 폼: 2열 배치·동의·오류 강조 */
.contact-form--grid { grid-template-columns: 1fr 1fr; column-gap: 16px; }
.contact-form--grid > div:has(textarea), .contact-form--grid > .cf-consent, .contact-form--grid > button, .contact-form--grid > .form-msg { grid-column: 1 / -1; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--navy); }
.contact-form .is-invalid { border-color: #b0234e !important; background: #fff7f8; }
.cf-consent { border: 1px solid var(--line); background: #fafafa; padding: 14px 16px; }
.contact-form .cf-check { display: flex; align-items: flex-start; gap: 10px; margin: 0 !important; font-size: 14px !important; color: var(--ink) !important; cursor: pointer; }
.contact-form .cf-check input[type=checkbox] { -webkit-appearance: auto; appearance: auto; width: 18px; height: 18px; margin: 1px 0 0; padding: 0; border: 0; background: none; flex: none; accent-color: var(--navy); cursor: pointer; }
.cf-check em { font-style: normal; color: #b0234e; font-size: 13px; }
.cf-check.is-invalid { color: #b0234e !important; background: none; }
.cf-terms { margin: 8px 0 0 28px; font-size: 13px; color: var(--mute); }
.cf-terms summary { cursor: pointer; width: max-content; text-decoration: underline; text-underline-offset: 3px; }
.cf-terms ul { margin: 8px 0 6px; padding-left: 18px; line-height: 1.7; }
.cf-terms p { margin: 0; line-height: 1.6; }
.cf-terms a { color: var(--navy); }
@media (max-width: 720px) {
    .contact-form--grid { grid-template-columns: 1fr; }
    .contact-form button { justify-self: stretch; }
}
/* 푸터: 링크(채용·처리방침) 묶음 · 모바일은 정보 한 줄씩 + 링크 한 줄 */
.footer-links { display: inline-flex; gap: 18px; }
@media (max-width: 720px) {
    .footer-bar { flex-direction: column; align-items: flex-start; gap: 14px; }
    .footer-meta { flex-direction: column; gap: 6px; font-size: 13px; }
    .footer-links { margin-top: 6px; gap: 16px; }
    .footer-links a { color: var(--ink); font-weight: 500; }
}
/* 결재·근태 공용: 기간 입력(시작 ~ 종료) 한 줄 정렬 */
.lv-range [data-vac-end-wrap] { display: flex; align-items: center; gap: 8px; flex: 1 1 0; min-width: 130px; }
.lv-range [data-vac-end-wrap] .cm-date { flex: 1 1 0; }
.lv-range__tilde { color: var(--mute); flex: 0 0 auto; }
/* 일정 페이지 상단 근태 카드: 출퇴근 시각·IP 글자 줄바꿈 방지 */
.att-punch__t, .att-punch__t b, .att-punch__ip, .att-punch__ip em { white-space: nowrap; }
.att-punch__row { flex-wrap: wrap; row-gap: 6px; }
/* 결재 양식 관리: 관리 열(수정·숨김/노출·삭제) 잘림 방지 */
.ap-forms-table th.ap-fm-act, .ap-forms-table td.ap-fm-act { width: 210px; white-space: nowrap; }
/* 행사 페이지: 상태 칸 — 선택칸이 칸 폭 안에 맞게(수정 중 권한 버튼과 겹침 방지) */
.ep-table td.ep-st { overflow: visible; }
.ep-table td.ep-st .cm-wrap, .ep-table td.ep-st .cm-sel { width: 100%; min-width: 0; max-width: 104px; margin: 0 auto; }
.ep-table td.ep-st .cm-dd__btn { width: 100%; min-width: 0; height: 34px; padding: 0 10px; font-size: 13px; box-sizing: border-box; }
.ep-table td.ep-st .cm-dd__panel { min-width: 104px; }
/* 일정: 근태(휴가) 칩 클릭 → 상세 모달 */
.cal-leave[data-lv-name] { cursor: pointer; }
.cal-leave[data-lv-name]:hover { filter: brightness(.96); text-decoration: underline; }
.lvd-panel { max-width: 420px; padding: 0; border-radius: 12px; overflow: hidden; }
.lvd-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line); font-size: 16px; color: var(--ink); }
.lvd-x { border: 0; background: none; font-size: 22px; line-height: 1; color: var(--mute); cursor: pointer; }
.lvd-list { display: grid; grid-template-columns: 72px 1fr; gap: 10px 12px; margin: 0; padding: 18px 20px 22px; font-size: 14px; }
.lvd-list dt { color: var(--mute); }
.lvd-list dd { margin: 0; color: var(--ink); white-space: pre-wrap; word-break: break-word; }
/* 회사 홈: 앵커 이동 부드럽게(감속모드 제외) */
@media (prefers-reduced-motion: no-preference) { html:has(body.csite:not(.gw)) { scroll-behavior: smooth; } }
/* 같은 사이트 페이지 이동 시 부드러운 전환(Chrome·Edge 126+, 미지원 브라우저는 기존과 동일) */
/* 페이지 전환 페이드 끔 — 전환 중엔 이전 화면 스냅숏이 덮여 메뉴가 안 눌림(2026-11-19) */
@view-transition { navigation: none; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .18s; }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }
/* 메일 쓰기: 편집기 로딩 전 자리 확보(편집기가 뜨며 아래가 밀리는 현상 방지) */
.ml-quill-wrap textarea[data-cke] { min-height: 560px; }

/* =====================================================================
   DESIGN A — "Clean SaaS"  (그룹웨어 전용 테마 레이어, body.gw 범위)
   흰 바탕 · 회색 계층 · 인디고 포인트 · 8px · 은은한 그림자 · Pretendard
   ===================================================================== */
body.gw {
  --a-bg: #f7f8fa; --a-surface: #ffffff; --a-line: #e6e8ec; --a-line-2: #eff1f4;
  --a-ink: #111827; --a-ink-2: #374151; --a-mute: #6b7280; --a-faint: #9ca3af;
  --a-accent: #4f46e5; --a-accent-2: #4338ca; --a-accent-soft: #eef2ff;
  --a-ok: #059669; --a-ok-soft: #ecfdf5; --a-warn: #d97706; --a-warn-soft: #fffbeb; --a-bad: #dc2626; --a-bad-soft: #fef2f2;
  --a-r: 8px; --a-shadow: 0 1px 2px rgba(16,24,40,.05); --a-shadow-2: 0 4px 16px rgba(16,24,40,.08);
  --navy: var(--a-accent); --ink: var(--a-ink); --mute: var(--a-mute); --line: var(--a-line); --paper: var(--a-bg);
  font-family: "Pretendard Variable", Pretendard, system-ui, sans-serif; background: var(--a-bg); color: var(--a-ink); letter-spacing: -.005em;
}
/* 헤더 */
body.gw .gw-header { background: var(--a-surface); border-bottom: 1px solid var(--a-line); height: 60px; box-shadow: none; }
body.gw .gw-header a, body.gw .gw-header button { border-radius: var(--a-r); }
/* 레일(맨 왼쪽 아이콘) */
body.gw .gw-rail { background: var(--a-surface); border-right: 1px solid var(--a-line); }
body.gw .gw-rail a .gw-rail__ic { background: transparent; color: var(--a-mute); border-radius: 10px; }
body.gw .gw-rail a:hover .gw-rail__ic { background: var(--a-bg); color: var(--a-ink); }
body.gw .gw-rail a.is-active .gw-rail__ic { background: var(--a-accent-soft); color: var(--a-accent); box-shadow: inset 0 0 0 1px #c7d2fe; }
body.gw .gw-rail a { color: var(--a-mute); }
body.gw .gw-rail a.is-active { color: var(--a-accent); font-weight: 600; }
/* 서브 메뉴 */
body.gw .gw-subnav { background: var(--a-surface); border-right: 1px solid var(--a-line); }
body.gw .gw-subnav__sec { border-top-color: var(--a-line-2); }
body.gw .gw-subnav__nav a { margin: 1px 8px; width: calc(100% - 16px); padding: 8px 12px; border-left: 0; border-radius: var(--a-r); font-size: 14px; color: var(--a-ink-2); }
body.gw .gw-subnav__nav a:hover { background: var(--a-bg); }
body.gw .gw-subnav__nav a.is-active { background: var(--a-accent-soft); color: var(--a-accent); font-weight: 600; border-left: 0; }
body.gw .gw-subnav__nav span.gw-subnav__head, body.gw .gw-subnav--admin .gw-subnav__head { font-size: 11px; font-weight: 600; color: var(--a-faint); letter-spacing: .04em; text-transform: uppercase; padding: 16px 20px 6px; }
/* 본문 */
body.gw .gw-main { background: var(--a-bg); padding: 28px 32px; }
body.gw .gw-head-row h1 { font-size: 22px; font-weight: 700; color: var(--a-ink); letter-spacing: -.02em; }
body.gw .gw-count { color: var(--a-faint); font-weight: 500; }
body.gw .tk-desc { color: var(--a-mute); font-size: 13.5px; }
/* 버튼 */
body.gw .gw-btn { height: 36px; padding: 0 14px; border-radius: var(--a-r); border: 1px solid var(--a-line); background: var(--a-surface); color: var(--a-ink-2); font-weight: 600; font-size: 13px; box-shadow: var(--a-shadow); transition: background .12s, border-color .12s, box-shadow .12s; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
body.gw .gw-btn:hover { background: var(--a-bg); border-color: #d1d5db; }
body.gw .gw-btn--sm { height: 30px; padding: 0 10px; font-size: 12.5px; }
body.gw .gw-btn--primary, body.gw .btn-save { background: var(--a-accent); border-color: var(--a-accent); color: #fff; box-shadow: 0 1px 2px rgba(79,70,229,.3); border-radius: var(--a-r); }
body.gw .gw-btn--primary:hover, body.gw .btn-save:hover { background: var(--a-accent-2); border-color: var(--a-accent-2); }
body.gw .gw-btn--danger { color: var(--a-bad); border-color: #fecaca; background: var(--a-surface); }
body.gw .gw-btn--danger:hover { background: var(--a-bad-soft); }
body.gw .gw-btn--ghost { background: transparent; box-shadow: none; }
body.gw .btn-cancel { border-radius: var(--a-r); }
/* 입력 */
body.gw input[type=text], body.gw input[type=email], body.gw input[type=tel], body.gw input[type=number], body.gw input[type=password], body.gw input[type=date], body.gw input[type=time], body.gw textarea, body.gw .gw-search, body.gw .cm-dd__btn, body.gw .cm-date > input[data-dp-display] {
  border: 1px solid var(--a-line) !important; border-radius: var(--a-r) !important; background: var(--a-surface); color: var(--a-ink); box-shadow: var(--a-shadow); }
body.gw input:focus, body.gw textarea:focus, body.gw .gw-search:focus, body.gw .cm-dd__btn:focus { outline: none; border-color: var(--a-accent) !important; box-shadow: 0 0 0 3px rgba(79,70,229,.15) !important; }
body.gw .cm-dd__panel { border-radius: 10px; border: 1px solid var(--a-line); box-shadow: var(--a-shadow-2); }
/* 표 */
body.gw .att-table, body.gw .mb-table { background: var(--a-surface); border: 1px solid var(--a-line); border-radius: 12px; border-collapse: separate; border-spacing: 0; overflow: hidden; box-shadow: var(--a-shadow); }
body.gw .att-table thead th, body.gw .mb-table thead th { background: #f9fafb; color: var(--a-mute); font-size: 12px; font-weight: 600; border-bottom: 1px solid var(--a-line); letter-spacing: .01em; }
body.gw .att-table td, body.gw .mb-table td, body.gw .mb-table tbody td { border-bottom: 1px solid var(--a-line-2); color: var(--a-ink-2); }
body.gw .att-table tbody tr:last-child td, body.gw .mb-table tbody tr:last-child td { border-bottom: 0; }
body.gw .att-table tbody tr:hover td, body.gw .mb-table tbody tr:hover td { background: #fafbff; }
body.gw .ct-tablewrap thead th { background: #f9fafb; }
/* 배지 */
body.gw .ct-pub, body.gw .ap-fb-badge, body.gw .oip-badge, body.gw .att-badge, body.gw .ml-imp-tag, body.gw .audit-act { border-radius: 999px; font-weight: 600; font-size: 11.5px; padding: 2px 9px; }
body.gw .ct-pub.is-on, body.gw .ap-fb-badge.is-on { background: var(--a-ok-soft); color: var(--a-ok); box-shadow: inset 0 0 0 1px #a7f3d0; }
body.gw .ct-pub.is-off, body.gw .ap-fb-badge.is-off { background: #f3f4f6; color: var(--a-mute); }
/* 카드·패널 */
body.gw .sec-iplist, body.gw .mgr-bar, body.gw .oip-current, body.gw .cf-consent, body.gw .ml-compose, body.gw .ev-form, body.gw .lv-modal, body.gw .ab-modal__panel { border-radius: 12px; }
body.gw .mgr-bar, body.gw .oip-current { background: var(--a-surface); border: 1px solid var(--a-line); box-shadow: var(--a-shadow); }
body.gw .modal__panel { border-radius: 14px; box-shadow: 0 20px 50px rgba(16,24,40,.18); }
/* 페이저 */
body.gw .gw-pager a, body.gw .gw-pager button, body.gw .pager__btn { border-radius: var(--a-r); }
body.gw .gw-pager .is-active, body.gw .pager__btn.is-active { background: var(--a-accent); border-color: var(--a-accent); color: #fff; }
/* 근태 카드 */
body.gw .att-punch { border-radius: 16px; background: linear-gradient(135deg, #312e81 0%, #4f46e5 60%, #6366f1 100%); box-shadow: 0 8px 24px rgba(79,70,229,.25); }
body.gw .att-punch.is-working { background: linear-gradient(135deg, #065f46 0%, #059669 60%, #10b981 100%); }

/* ---------- DESIGN A 레이아웃: 떠 있는 카드형 (회색 캔버스 위 레일·메뉴·본문 카드) ---------- */
body.gw .gw-header { height: 56px; padding: 0 20px; }
body.gw .gw-body { background: #eef0f4; gap: 12px; padding: 12px; min-height: calc(100vh - 56px); align-items: flex-start; }
body.gw .gw-rail { flex: 0 0 64px; width: 64px; top: 68px; height: calc(100vh - 80px); border: 1px solid var(--a-line); border-radius: 16px; box-shadow: var(--a-shadow); padding: 10px 0; }
body.gw .gw-rail a { font-size: 10.5px; gap: 3px; }
body.gw .gw-rail__ic { width: 38px; height: 38px; }
body.gw .gw-subnav { flex: 0 0 236px; width: 236px; top: 68px; height: calc(100vh - 80px); border: 1px solid var(--a-line); border-radius: 16px; box-shadow: var(--a-shadow); padding: 14px 0 0; overflow: hidden; }
body.gw .gw-subnav__add { margin: 0 12px 12px !important; height: 40px; border-radius: 10px !important; }
body.gw .gw-subnav__foot { border-top-color: var(--a-line-2); background: #fafbfc; }
body.gw .gw-main { background: var(--a-surface) !important; border: 1px solid var(--a-line); border-radius: 16px; box-shadow: var(--a-shadow); padding: 0 28px 28px; min-height: calc(100vh - 80px); }
/* 본문 상단: 툴바 띠(제목 왼쪽·도구 오른쪽, 아래 구분선) */
body.gw .gw-main > .gw-head-row:first-child, body.gw .gw-main > th\:block > .gw-head-row:first-child { margin: 0 -28px 18px; padding: 18px 28px; border-bottom: 1px solid var(--a-line-2); }
body.gw .gw-main > .gw-head-row:first-of-type { margin: 0 -28px 18px; padding: 18px 28px; border-bottom: 1px solid var(--a-line-2); }
body.gw .gw-main .gw-head-row h1 { font-size: 20px; }
/* 본문 안 표는 카드 안 카드가 되지 않게 테두리 대신 구분선만 */
body.gw .gw-main .att-table, body.gw .gw-main .mb-table { box-shadow: none; }

/* ---------- 공통 모바일(≤768px) ---------- */
@media (max-width: 768px) {
  body.gw .gw-header { height: 52px; padding: 0 12px; position: sticky; top: 0; }
  body.gw .gw-header__logo img { height: 28px; }
  body.gw .gw-header__right { gap: 6px; }
  body.gw .gw-header__right > a.gw-home, body.gw .gw-header__right > span { display: none; }
  body.gw .gw-header .gw-logout { height: 30px; padding: 0 10px; font-size: 12px; }
  body.gw .gw-admin__btn { padding: 4px 8px; font-size: 12px; }
  /* 서브 메뉴 → 가로로 넘기는 칩 줄 */
  body.gw .gw-subnav { position: sticky !important; width: 100% !important; flex: none !important; height: auto !important; padding: 8px 0 !important; border-right: 0 !important; z-index: 20; }
  body.gw .gw-subnav__add { display: none; }
  body.gw .gw-subnav__nav { flex-direction: row !important; overflow-x: auto; gap: 6px; padding: 0 12px; }
  body.gw .gw-subnav__sec { display: contents; }
  body.gw .gw-subnav__nav span.gw-subnav__head, body.gw .gw-subnav__sechead, body.gw .gw-subnav__foot, body.gw .gw-subnav--admin .gw-subnav__head { display: none !important; }
  body.gw .gw-subnav__nav a { flex: none; width: auto !important; margin: 0 !important; padding: 7px 14px !important; border: 1px solid var(--line) !important; border-radius: 999px !important; font-size: 13px; white-space: nowrap; }
  body.gw .gw-subnav__nav a.is-active { border-color: var(--navy) !important; }
  html.gw-sub-collapsed body.gw .gw-body[data-collapsible] .gw-subnav { display: flex !important; }
  body.gw .gw-rail-expand, body.gw [data-subnav-toggle] { display: none !important; }
  /* 본문 */
  body.gw .gw-main { padding: 16px 14px 24px !important; max-width: none; }
  body.gw .gw-head-row { flex-wrap: wrap; gap: 10px; }
  body.gw .gw-head-row h1 { font-size: 20px !important; }
  body.gw .gw-head-tools, body.gw .gw-head-tools form { width: 100%; flex-wrap: wrap; }
  body.gw .gw-search { width: 100% !important; min-width: 0; }
  body.gw .ct-tablewrap { max-height: none !important; min-height: 0 !important; overflow-x: auto !important; -webkit-overflow-scrolling: touch; }
  body.gw .ct-tablewrap > table, body.gw .att-table, body.gw .mb-table { min-width: 680px; }
  body.gw .att-punch { grid-template-columns: 1fr !important; padding: 14px !important; }
  body.gw .modal__panel, body.gw .ab-modal__panel, body.gw .lv-modal { width: calc(100vw - 24px) !important; max-width: none !important; max-height: calc(100vh - 40px); overflow: auto; }
  body.gw .gc-panel { right: 8px; left: 8px; width: auto; bottom: 76px; height: calc(100vh - 140px); }
  body.gw .ea-page .gw-body, body.gw.ea-page .gw-body { height: auto; overflow: visible; }
}
/* ---------- A 모바일: 아이콘 레일 → 하단 탭 바(앱 스타일), 카드 여백 축소 ---------- */
@media (max-width: 768px) {
  body.gw .gw-body { display: block; padding: 0 0 72px; background: #eef0f4; }
  body.gw .gw-rail { position: fixed !important; left: 8px; right: 8px; bottom: 8px; top: auto !important; z-index: 40; width: auto !important; height: 60px !important; flex-direction: row !important; justify-content: space-around; align-items: center; padding: 0 4px !important; overflow-x: auto; border-radius: 18px; box-shadow: 0 8px 24px rgba(16,24,40,.18); }
  body.gw .gw-rail a { flex: 1 0 52px; padding: 4px 2px; font-size: 10px; }
  body.gw .gw-rail__ic { width: 30px !important; height: 30px !important; }
  body.gw .gw-subnav { top: 52px !important; border-radius: 0 !important; border-left: 0 !important; border-right: 0 !important; box-shadow: none !important; }
  body.gw .gw-main { margin: 10px; border-radius: 14px !important; min-height: 0 !important; }
  body.gw .gw-main > .gw-head-row:first-of-type { margin: 0 -14px 14px !important; padding: 14px !important; }
  body.gw .gc-fab { bottom: 80px; }
}

@media (max-width: 768px) {
  body.gw .gw-subnav__nav { align-items: center; }
  /* 칩 줄에는 메뉴 링크만(캘린더 체크 목록·자원·안내문 등은 숨김) */
  body.gw .gw-subnav__nav > :not(a):not(.gw-subnav__sec), body.gw .gw-subnav__sec > :not(a) { display: none !important; }
  body.gw .gw-subnav > :not(.gw-subnav__nav) { display: none !important; }
  body.gw .cal-head h2, body.gw [class*="cal"] h2, body.gw .att-cal__head h2 { white-space: nowrap; font-size: 18px; }
}

/* ===== A · 근태 카드(출퇴근) 재설계: 흰 카드 · 시계 | 나·상태 | 지표 한 줄 | 지금 할 행동 하나 ===== */
body.gw .att-punch { display: grid !important; grid-template-columns: auto auto 1fr auto; align-items: center; gap: 0 28px; padding: 18px 22px !important;
  background: #fff !important; color: var(--a-ink); border: 1px solid var(--a-line); border-radius: 14px; box-shadow: var(--a-shadow); position: relative; overflow: hidden; margin-bottom: 16px; }
body.gw .att-punch::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--a-accent); }
body.gw .att-punch.is-working::before { background: var(--a-ok); }
body.gw .att-punch.is-done::before { background: #9ca3af; }
body.gw .att-punch::after { display: none; }
body.gw .att-punch__clock { display: flex; flex-direction: column; }
body.gw .att-punch__time { font-size: 28px; font-weight: 700; letter-spacing: -.01em; color: var(--a-ink); font-variant-numeric: tabular-nums; line-height: 1.1; }
body.gw .att-punch__date { font-size: 12.5px; color: var(--a-mute); margin-top: 2px; }
body.gw .att-punch__who { display: flex; flex-direction: column; gap: 6px; padding-left: 24px; border-left: 1px solid var(--a-line-2); }
body.gw .att-punch__name { display: flex; align-items: center; gap: 8px; }
body.gw .att-punch__name b { font-size: 15px; font-weight: 700; }
body.gw .att-punch__state { font-size: 11.5px; font-weight: 600; padding: 2px 9px; border-radius: 999px; background: var(--a-accent-soft); color: var(--a-accent); }
body.gw .att-punch.is-working .att-punch__state { background: var(--a-ok-soft); color: var(--a-ok); }
body.gw .att-punch.is-done .att-punch__state { background: #f3f4f6; color: var(--a-mute); }
body.gw .att-punch__ip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--a-mute); background: none; padding: 0; white-space: nowrap; }
body.gw .att-punch__dot { width: 7px; height: 7px; border-radius: 50%; }
body.gw .att-punch__ip.is-ok .att-punch__dot { background: #10b981; box-shadow: 0 0 0 3px #d1fae5; }
body.gw .att-punch__ip.is-off .att-punch__dot { background: #f59e0b; box-shadow: 0 0 0 3px #fef3c7; }
body.gw .att-punch__metrics { display: flex; flex-wrap: wrap; align-items: stretch; gap: 0; margin: 0; justify-self: center; }
body.gw .att-punch__metrics > div { padding: 2px 18px; display: flex; flex-direction: column; gap: 2px; }
body.gw .att-punch__metrics > div.is-sep { border-left: 1px solid var(--a-line-2); }
body.gw .att-punch__metrics dt { font-size: 11.5px; color: var(--a-mute); }
body.gw .att-punch__metrics dd { margin: 0; font-size: 18px; font-weight: 700; color: var(--a-ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
body.gw .att-punch__metrics dd small { font-size: 12px; font-weight: 500; color: var(--a-mute); margin-left: 1px; }
body.gw .att-punch__act { display: flex; align-items: center; }
body.gw .att-punch .att-pbtn { min-width: 128px; height: 46px; border-radius: 10px; font-size: 15px; font-weight: 700; border: 0; cursor: pointer; transition: background .12s, transform .12s, box-shadow .12s; }
body.gw .att-punch .att-pbtn:disabled { display: none; }
body.gw .att-punch .att-pbtn--in { background: var(--a-accent); color: #fff; box-shadow: 0 4px 12px rgba(79,70,229,.3); }
body.gw .att-punch .att-pbtn--in:hover { background: var(--a-accent-2); transform: translateY(-1px); }
body.gw .att-punch .att-pbtn--out { background: #111827; color: #fff; box-shadow: 0 4px 12px rgba(17,24,39,.25); }
body.gw .att-punch .att-pbtn--out:hover { background: #1f2937; transform: translateY(-1px); }
body.gw .att-punch__done { display: inline-flex; align-items: center; height: 46px; padding: 0 18px; border-radius: 10px; background: #f3f4f6; color: var(--a-mute); font-weight: 600; font-size: 14px; }
body.gw .att-punch__miss { grid-column: 1 / -1; margin: 16px -22px -18px; padding: 10px 22px; border: 0; border-top: 1px solid #fde68a; border-radius: 0; background: #fffbeb; color: #92400e; }
body.gw .att-punch__miss-ico { background: #f59e0b; color: #fff; }
body.gw .att-punch__miss-msg em { color: #b45309; opacity: 1; }
body.gw .att-punch__miss-btn { background: #fff; color: #92400e; border: 1px solid #fcd34d; }
/* 일정 화면에 들어간 카드(.cal-dash)도 같은 모양 */
body.gw .cal-dash .att-punch { padding: 14px 18px !important; }
body.gw .cal-dash .att-pbtn { min-width: 112px; height: 40px; padding: 0 18px; }
@media (max-width: 1100px) {
  body.gw .att-punch { grid-template-columns: auto 1fr auto; row-gap: 14px; }
  body.gw .att-punch__metrics { grid-column: 1 / -1; grid-row: 2; justify-self: start; }
  body.gw .att-punch__metrics > div:first-child { padding-left: 0; }
}
@media (max-width: 768px) {
  body.gw .att-punch { grid-template-columns: 1fr auto !important; padding: 14px 16px !important; gap: 12px; }
  body.gw .att-punch__who { grid-column: 1 / -1; grid-row: 2; padding-left: 0; border-left: 0; flex-direction: row; justify-content: space-between; align-items: center; }
  body.gw .att-punch__metrics { grid-column: 1 / -1; grid-row: 3; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px 0; }
  body.gw .att-punch__metrics > div { padding: 0 8px; border-left: 0 !important; }
  body.gw .att-punch__act { grid-column: 2; grid-row: 1; }
  body.gw .att-punch .att-pbtn { min-width: 0; height: 42px; padding: 0 16px; font-size: 14px; }
  body.gw .att-punch__miss { margin: 4px -16px -14px; padding: 10px 16px; flex-wrap: wrap; }
}

/* ===== A · 장식 걷어내기(절제 톤): 색띠·알약 배지·빛번짐·버튼 그림자·그라데이션 제거, 강조색 = 회사 남색 하나 ===== */
body.gw { --a-accent: #12283f; --a-accent-2: #0b1b2c; --a-accent-soft: #f1f3f6; --a-shadow: none; --a-shadow-2: 0 6px 20px rgba(17,24,39,.10); }
/* 카드: 그림자 대신 얇은 선만 */
body.gw .gw-rail, body.gw .gw-subnav, body.gw .gw-main, body.gw .att-punch, body.gw .att-table, body.gw .mb-table, body.gw .mgr-bar, body.gw .oip-current { box-shadow: none !important; }
body.gw .gw-btn, body.gw input, body.gw textarea, body.gw .gw-search, body.gw .cm-dd__btn { box-shadow: none !important; }
body.gw .gw-btn--primary, body.gw .btn-save { box-shadow: none !important; }
/* 근태 카드: 왼쪽 색띠 제거, 상태는 글자로만 */
body.gw .att-punch::before { display: none !important; }
body.gw .att-punch__state, body.gw .att-punch.is-working .att-punch__state, body.gw .att-punch.is-done .att-punch__state { background: none !important; padding: 0; color: var(--a-mute); font-weight: 500; font-size: 13px; }
body.gw .att-punch.is-working .att-punch__state { color: var(--a-ok); }
body.gw .att-punch__state::before { content: '· '; }
body.gw .att-punch__dot { box-shadow: none !important; width: 6px; height: 6px; }
body.gw .att-punch .att-pbtn--in, body.gw .att-punch .att-pbtn--out { box-shadow: none !important; transform: none !important; background: var(--a-accent); }
body.gw .att-punch .att-pbtn--in:hover, body.gw .att-punch .att-pbtn--out:hover { background: var(--a-accent-2); }
body.gw .att-punch__done { background: none; border: 1px solid var(--a-line); }
body.gw .att-punch__miss { background: #fafafa; color: var(--a-ink-2); border-top-color: var(--a-line-2); }
body.gw .att-punch__miss-ico { background: none; color: #b45309; border: 1px solid #b45309; width: 18px; height: 18px; font-size: 11px; }
body.gw .att-punch__miss-msg em { color: var(--a-mute); }
body.gw .att-punch__miss-btn { color: var(--a-ink); border-color: var(--a-line); }
/* 레일·메뉴 선택 표시: 연한 회색 바탕 + 굵은 글씨(색 박스·테두리 링 없음) */
body.gw .gw-rail a.is-active .gw-rail__ic { background: var(--a-accent-soft) !important; color: var(--a-ink) !important; box-shadow: none !important; }
body.gw .gw-rail a.is-active { color: var(--a-ink); }
body.gw .gw-subnav__nav a.is-active { background: var(--a-accent-soft) !important; color: var(--a-ink) !important; }
/* 배지: 알약·색 배경 대신 작은 글자 + 얇은 테두리 */
body.gw .ct-pub, body.gw .ap-fb-badge, body.gw .oip-badge, body.gw .att-badge, body.gw .ml-imp-tag, body.gw .audit-act, body.gw .ls-warn {
  border-radius: 4px !important; background: none !important; box-shadow: none !important; border: 1px solid var(--a-line); color: var(--a-ink-2); font-weight: 500 !important; }
body.gw .ct-pub.is-on, body.gw .ap-fb-badge.is-on { color: var(--a-ok) !important; border-color: #cfe8dc; }
body.gw .ct-pub.is-off, body.gw .ap-fb-badge.is-off { color: var(--a-faint) !important; }
body.gw .ml-imp-tag, body.gw .ls-warn { color: #b42318 !important; border-color: #f2c9c4; }
/* 메신저 버튼·토스트의 색 강조 완화 */
body.gw .gc-fab { background: var(--a-accent) !important; box-shadow: 0 4px 14px rgba(17,24,39,.18) !important; }
body.gw .gc-toast { border-left: 1px solid var(--a-line) !important; }
/* 페이지 번호 */
body.gw .gw-pager .is-active, body.gw .pager__btn.is-active { background: var(--a-accent); border-color: var(--a-accent); }
/* 제목 숫자·포인트 색 */
body.gw .gw-count { color: var(--a-faint) !important; }

/* ===== 모바일: 운영자 메뉴 숨김 · 운영자 화면 직접 진입 시 PC 이용 안내 ===== */
@media (max-width: 768px) {
  body.gw .gw-admin { display: none !important; }
  body.gw .gw-body:has(.gw-rail--admin) .gw-main::before {
    content: '운영자 화면은 PC에서 이용해 주세요. 휴대폰에서는 일부 표·버튼이 불편할 수 있습니다.';
    display: block; margin: 0 0 14px; padding: 10px 12px; border: 1px solid var(--a-line); border-radius: 8px; background: #fafafa; color: var(--a-ink-2); font-size: 13px; line-height: 1.5; }
}

/* ===== A · 오늘 근무(진척률) 패널: 원형 게이지 → 숫자 + 가는 막대 + 출근/퇴근 예정/남은 시간 ===== */
body.gw .att-panel { background: #fff; border: 1px solid var(--a-line); border-radius: 12px; box-shadow: none; padding: 16px 18px; }
body.gw .att-panel__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
body.gw .att-panel__head h3 { font-size: 13px; font-weight: 600; color: var(--a-mute); margin: 0; }
body.gw .att-today__pct { font-size: 13px; font-weight: 600; color: var(--a-ink); font-variant-numeric: tabular-nums; }
body.gw .att-today { display: block; width: auto; height: auto; }
body.gw .att-today__num { margin: 0 0 10px; display: flex; align-items: baseline; gap: 6px; }
body.gw .att-today__num b { font-size: 24px; font-weight: 700; color: var(--a-ink); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
body.gw .att-today__num span { font-size: 13px; color: var(--a-mute); }
body.gw .att-today__bar { height: 6px; background: #eef0f3; border-radius: 3px; overflow: hidden; }
body.gw .att-today__bar span { display: block; height: 100%; background: var(--a-accent); border-radius: 3px; transition: width .4s; }
body.gw .att-today__meta { list-style: none; margin: 14px 0 0; padding: 12px 0 0; border-top: 1px solid var(--a-line-2); display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
body.gw .att-today__meta li { display: flex; flex-direction: column; gap: 2px; }
body.gw .att-today__meta span { font-size: 11.5px; color: var(--a-mute); }
body.gw .att-today__meta b { font-size: 14px; font-weight: 600; color: var(--a-ink); font-variant-numeric: tabular-nums; }
/* 이번 주 막대도 같은 톤 */
body.gw .att-week__bar { height: 6px; background: #eef0f3; border-radius: 3px; }
body.gw .att-week__bar span { background: var(--a-accent); border-radius: 3px; }

/* ===== A · 일정·근태 탭 정리 ===== */
/* 머리줄: 제목 왼쪽 · [‹ 2026-11 ›  오늘] 오른쪽 묶음 */
body.gw .att-hist-head { display: flex !important; align-items: center; gap: 10px; }
body.gw .att-hist-head h1 { flex: 1; order: 1; }
body.gw .att-hist-date { order: 2; text-align: right;  font-size: 15px; font-weight: 600; color: var(--a-ink); font-variant-numeric: tabular-nums; }
body.gw .att-hist-nav { order: 3; display: flex; gap: 4px; }
/* 요약 칩: 알약 대신 숫자 나열 */
body.gw .att-sum { display: flex; gap: 0; margin: 0 0 14px; border: 1px solid var(--a-line); border-radius: 10px; overflow: hidden; width: max-content; max-width: 100%; }
body.gw .att-sum__chip { border: 0 !important; border-right: 1px solid var(--a-line-2) !important; border-radius: 0 !important; background: #fff !important; padding: 8px 14px; font-size: 12.5px; color: var(--a-mute); cursor: pointer; }
body.gw .att-sum__chip:last-child { border-right: 0 !important; }
body.gw .att-sum__chip b { color: var(--a-ink); margin-left: 4px; }
body.gw .att-sum__chip.is-on { background: var(--a-accent-soft) !important; color: var(--a-ink); }
/* 근무유형 배지 → 글자 */
body.gw .att-badge--wt { background: none !important; border: 0 !important; padding: 0 !important; color: var(--a-ink-2); font-weight: 400 !important; }
/* 신청 바로가기 줄 */
body.gw .att-req-bar { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 16px; }
body.gw .att-req-bar .gw-btn { margin-left: 0; }
body.gw .att-empty-box { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 56px 16px; border: 1px dashed var(--a-line); border-radius: 12px; color: var(--a-mute); font-size: 13.5px; text-align: center; }
body.gw .att-empty-box b { color: var(--a-ink); font-size: 15px; }
/* 휴가 현황 카드 */
body.gw .lv-bcard { border: 1px solid var(--a-line) !important; border-radius: 12px !important; box-shadow: none !important; background: #fff !important; }
/* 일정 사이드: 섹션 머리·체크 목록 정돈 */
body.gw .cal-side .gw-subnav__sechead { padding: 14px 16px 6px !important; }
body.gw .cal-side .gw-subnav__head { font-size: 11.5px !important; font-weight: 600 !important; color: var(--a-faint) !important; }
body.gw .cal-side label { font-size: 13.5px; }
body.gw .cal-side [data-holiday-sync], body.gw .cal-side .cal-sync { border-style: solid !important; border-color: var(--a-line) !important; color: var(--a-mute); border-radius: 8px !important; }
/* 일정 화면 상단 '근태 요약' 토글 · 보기 전환 버튼 */
body.gw .cal-dash__toggle { border: 1px solid var(--a-line); border-radius: 8px; background: #fff; }
body.gw .cal-today, body.gw .cal-grid .is-today { background: #f7f8fb !important; }

/* ===== A · 상태 색(의미 있는 곳에만): 정상·지각·조기퇴근·퇴근 누락·결근, 결재 상태, 근태 유형 ===== */
body.gw { --st-ok: #047857; --st-ok-bg: #ecfdf5; --st-warn: #b45309; --st-warn-bg: #fffbeb; --st-miss: #c2410c; --st-miss-bg: #fff7ed; --st-bad: #b91c1c; --st-bad-bg: #fef2f2; --st-info: #1d4ed8; --st-info-bg: #eff6ff; }
body.gw .att-st { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
body.gw .att-st[data-st="정상"] { color: var(--st-ok); background: var(--st-ok-bg); }
body.gw .att-st[data-st*="지각"], body.gw .att-st[data-st*="조기퇴근"] { color: var(--st-warn); background: var(--st-warn-bg); }
body.gw .att-st[data-st*="퇴근 누락"] { color: var(--st-miss); background: var(--st-miss-bg); }
body.gw .att-st[data-st="결근"] { color: var(--st-bad); background: var(--st-bad-bg); }
body.gw .att-st[data-st="-"] { color: var(--a-faint); background: none; }
body.gw .hist-late-in { color: var(--st-warn) !important; font-weight: 600; }
body.gw .att-lt { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 12.5px; font-weight: 600; color: var(--st-info); background: var(--st-info-bg); }
/* 결재(신청) 상태 */
body.gw .lv-status { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 12.5px; font-weight: 600; }
body.gw .lv-status--승인 { color: var(--st-ok); background: var(--st-ok-bg); }
body.gw .lv-status--대기, body.gw .lv-status--진행 { color: var(--st-warn); background: var(--st-warn-bg); }
body.gw .lv-status--반려 { color: var(--st-bad); background: var(--st-bad-bg); }
/* 요약 숫자: 0 이 아니면 유형 색 */
body.gw .att-sum__chip[data-filter="휴가"] b { color: var(--st-info); }
body.gw .att-sum__chip[data-filter="외근"] b, body.gw .att-sum__chip[data-filter="출장"] b, body.gw .att-sum__chip[data-filter="재택근무"] b { color: #6d28d9; }
body.gw .att-sum__chip[data-filter="연장근로"] b { color: var(--st-warn); }
/* 직원 월간 요약 칩·표 */
body.gw .mm-chip--warn b, body.gw .mm-warn { color: var(--st-warn) !important; }
body.gw .mm-chip--bad b, body.gw .mm-bad { color: var(--st-bad) !important; }
/* 근태 카드 상태 글자 */
body.gw .att-punch.is-idle .att-punch__state { color: var(--st-warn) !important; }
body.gw .att-punch.is-working .att-punch__state { color: var(--st-ok) !important; }
/* 퇴근 누락 경고 띠: 주황 톤 */
body.gw .att-punch__miss { background: var(--st-miss-bg) !important; border-top-color: #fed7aa !important; }
body.gw .att-punch__miss-ico { color: var(--st-miss) !important; border-color: var(--st-miss) !important; }

/* 근태 카드 지표: 한 줄 유지(특별휴가 있을 때 줄바꿈 방지) */
body.gw .att-punch__metrics { flex-wrap: nowrap; }
body.gw .att-punch__metrics > div { padding: 2px 14px; }
@media (max-width: 1280px) { body.gw .att-punch__metrics > div { padding: 2px 10px; } body.gw .att-punch__metrics dd { font-size: 16px; } }
/* 근태 화면 달력의 근태 칩: 유형색 */
body.gw .att-leave { background: var(--st-info-bg) !important; color: var(--st-info) !important; border: 0 !important; }
body.gw .cal-leave { background: var(--st-info-bg) !important; color: var(--st-info) !important; border-left-color: var(--st-info) !important; }

/* ===== A · 로그인 화면: 왼쪽 브랜드 · 오른쪽 폼 (모바일은 폼만) ===== */
body.auth-a { margin: 0; background: #fff; font-family: "Pretendard Variable", Pretendard, system-ui, sans-serif; color: #111827; }
.auth-a__wrap { display: grid; grid-template-columns: minmax(380px, 44%) 1fr; min-height: 100vh; }
.auth-a__brand { background: #12283f; color: #fff; padding: 40px 56px; display: flex; flex-direction: column; justify-content: space-between; }
.auth-a__logo img { height: 30px; filter: brightness(0) invert(1); display: block; }
.auth-a__eyebrow { font-size: 12px; letter-spacing: .14em; color: #9fb0c6; margin: 0 0 16px; }
.auth-a__copy h1 { font-size: 34px; line-height: 1.35; font-weight: 700; letter-spacing: -.02em; margin: 0 0 14px; }
.auth-a__copy p { margin: 0; color: #c7d1de; font-size: 15px; }
.auth-a__foot { margin: 0; font-size: 12px; color: #7f91a8; }
.auth-a__panel { display: flex; align-items: center; justify-content: center; padding: 40px 24px; background: #fff; }
.auth-a__card { width: 100%; max-width: 380px; }
.auth-a__mlogo { display: none; }
.auth-a__card h2 { font-size: 26px; font-weight: 700; margin: 0 0 6px; letter-spacing: -.02em; }
.auth-a__sub { margin: 0 0 24px; color: #6b7280; font-size: 14px; }
.auth-a__alert { margin: 0 0 16px; padding: 10px 12px; border-radius: 8px; font-size: 13px; line-height: 1.5; }
.auth-a__alert.is-err { background: #fef2f2; color: #b91c1c; }
.auth-a__alert.is-ok { background: #ecfdf5; color: #047857; }
.auth-a form.auth-card { display: flex; flex-direction: column; gap: 6px; padding: 0; border: 0; box-shadow: none; background: none; }
.auth-a form.auth-card label { font-size: 13px; font-weight: 600; color: #374151; margin-top: 10px; }
.auth-a form.auth-card input[type=text], .auth-a form.auth-card input[type=password] { height: 46px; padding: 0 14px; border: 1px solid #d9dde3; border-radius: 8px; font: inherit; font-size: 15px; width: 100%; box-sizing: border-box; }
.auth-a form.auth-card input:focus { outline: none; border-color: #12283f; box-shadow: 0 0 0 3px rgba(18,40,63,.12); }
.auth-a__row { display: flex; align-items: center; justify-content: space-between; margin: 12px 0 6px; font-size: 13px; }
.auth-a__row .auth-remember { display: inline-flex; align-items: center; gap: 6px; margin: 0 !important; font-weight: 400 !important; color: #4b5563 !important; }
.auth-a__row a { color: #4b5563; text-decoration: none; }
.auth-a__row a:hover { text-decoration: underline; }
.auth-a form.auth-card button[type=submit] { height: 48px; margin-top: 8px; border: 0; border-radius: 8px; background: #12283f; color: #fff; font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; }
.auth-a form.auth-card button[type=submit]:hover { background: #0b1b2c; }
.auth-a__signup { margin: 22px 0 0; font-size: 13.5px; color: #6b7280; text-align: center; }
.auth-a__signup a { color: #12283f; font-weight: 600; text-decoration: none; }
@media (max-width: 860px) {
  .auth-a__wrap { grid-template-columns: 1fr; }
  .auth-a__brand { display: none; }
  .auth-a__panel { align-items: flex-start; padding: 56px 20px; }
  .auth-a__mlogo { display: block; margin-bottom: 36px; }
  .auth-a__mlogo img { height: 28px; display: block; }
}
/* 로그인: 장식 없이 가운데 폼 하나 */
body.auth-a { background: #f5f6f8; }
.auth-a__wrap { display: flex !important; align-items: center; justify-content: center; min-height: 100vh; padding: 24px 16px; box-sizing: border-box; }
.auth-a__panel { background: none; padding: 0; width: 100%; display: flex; justify-content: center; align-items: center !important; }
.auth-a__card { max-width: 360px; background: #fff; border: 1px solid #e6e8ec; border-radius: 12px; padding: 32px 28px; }
.auth-a__mlogo { display: block !important; margin: 0 0 8px !important; text-align: center; }
.auth-a__mlogo img { height: 30px !important; display: inline-block !important; }
.auth-a__sub { text-align: center; margin: 0 0 18px !important; font-size: 13.5px; }
.auth-a form.auth-card label { margin-top: 8px; }
.auth-a__signup { margin-top: 18px !important; }
@media (max-width: 860px) { .auth-a__panel { padding: 0 !important; } .auth-a__card { border: 0; background: none; padding: 8px 4px; } body.auth-a { background: #fff; } }
/* 로그인: 왼쪽 브랜드 영역만 제거 — 기존 오른쪽 폼 모양 그대로 가운데 */
body.auth-a { background: #fff !important; }
.auth-a__card { max-width: 380px !important; background: none !important; border: 0 !important; padding: 0 !important; }
.auth-a__mlogo { text-align: left !important; margin: 0 0 32px !important; }
.auth-a__sub { text-align: left !important; margin: 0 0 24px !important; font-size: 14px !important; }

/* ===== A · 앱 틀 고정: 페이지 전체 스크롤·가로 밀림 없음, 본문 카드 안에서만 스크롤 (PC) ===== */
@media (min-width: 769px) {
  html:has(body.gw), body.gw { height: 100%; overflow: hidden; }
  body.gw .gw-header { position: relative; }
  body.gw .gw-body { height: calc(100vh - 56px); min-height: 0; overflow: hidden; box-sizing: border-box; align-items: stretch; }
  body.gw .gw-rail, body.gw .gw-subnav { position: relative; top: auto; height: auto; align-self: stretch; }
  body.gw .gw-main { min-width: 0; min-height: 0 !important; height: auto; align-self: stretch; overflow: auto; overscroll-behavior: contain; }
  /* 본문 머리줄(제목·도구)은 스크롤해도 위에 고정 */
  body.gw .gw-main > .gw-head-row:first-of-type { position: sticky; top: 0; z-index: 5; background: #fff; }
  /* 표 영역은 본문이 스크롤하므로 자체 높이 제한 해제(이중 스크롤 방지) */
  body.gw .ct-tablewrap { max-height: none !important; min-height: 0 !important; overflow: visible !important; }
  body.gw .ct-tablewrap thead th { top: var(--head-h, 0px); }
}
body.gw { overflow-x: hidden; }

/* ===== A · 일정 화면: 상단(근태 카드·보기 전환·월 이동) 고정, 달력만 스크롤 ===== */
@media (min-width: 769px) {
  body.gw .gw-main.cal-main { overflow: hidden !important; display: flex; flex-direction: column; padding-top: 20px; padding-bottom: 20px; }
  body.gw .cal-main > .cal-dash, body.gw .cal-main > .cal-toolbar, body.gw .cal-main > .att-inline { flex: none; }
  body.gw .cal-main > .cal-grid { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; border-radius: 10px; }
  body.gw .cal-grid .cal-dows { position: sticky; top: 0; z-index: 3; background: #f9fafb; }
  body.gw .cal-main .tg-body { height: auto; flex: 1 1 auto; min-height: 0; }
  body.gw .cal-main > :has(> .tg-body) { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
  body.gw .cal-main > .cal-agenda, body.gw .cal-main > [data-cal-list] { flex: 1 1 auto; min-height: 0; overflow-y: auto; }
}
/* 근태 막대: 일정 막대와 같은 높이·폭, 유형별 연한 색(일정보다 한 단계 옅게) */
body.gw .cal-bar--leave { cursor: pointer; color: #1e3a8a; background: #e8efff; border-left: 3px solid #3b5bdb; font-weight: 600; }
body.gw .cal-bar--leave.is-work { color: #5b21b6; background: #f1ebff; border-left-color: #7c3aed; }
body.gw .cal-bar--leave.is-over { color: #92400e; background: #fff4e0; border-left-color: #d97706; }
body.gw .cal-bar--leave:hover { filter: brightness(.97); }
body.gw .cal-bar--leave .cal-bar__title { color: inherit; }
@media (min-width: 769px) {
  body.gw .cal-main > [data-cal-listview] { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
  body.gw .cal-main > [data-cal-listview] > .cal-toolbar { flex: none; }
  body.gw .cal-main > [data-cal-listview] > .cal-grid, body.gw .cal-main > [data-cal-listview] > [data-cal-list] { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
  body.gw .cal-main > [data-cal-listview] > :has(.tg-body) { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
}
/* 퇴근 누락 여러 날: 날짜 선택 */
body.gw .mo-count { font-weight: 500; color: var(--st-miss, #c2410c); font-size: 12px; margin-left: 6px; }
body.gw .mo-days { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
body.gw .mo-pick { display: block; cursor: pointer; }
body.gw .mo-pick input { position: absolute; opacity: 0; pointer-events: none; }
body.gw .mo-pick > span { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border: 1px solid #e5e7eb; border-radius: 8px; background: #fff; }
body.gw .mo-pick > span b { font-size: 14px; color: #111827; }
body.gw .mo-pick > span em { font-style: normal; font-size: 12px; color: #6b7280; }
body.gw .mo-pick input:checked + span { border-color: #12283f; box-shadow: 0 0 0 1px #12283f inset; background: #f5f7fa; }
body.gw .mo-pick input:focus-visible + span { outline: 2px solid #12283f; outline-offset: 2px; }
/* 출퇴근 내역 상태: 출근 전(회색) · 휴가(파랑) · 출장/외근/재택(보라) */
body.gw .att-st[data-st="출근 전"] { color: #6b7280; background: #f3f4f6; }
body.gw .att-st[data-st*="연차"], body.gw .att-st[data-st*="반차"], body.gw .att-st[data-st*="휴가"], body.gw .att-st[data-st*="경조"], body.gw .att-st[data-st*="병가"] { color: #1e40af; background: #e8efff; }
body.gw .att-st[data-st*="출장"], body.gw .att-st[data-st*="외근"], body.gw .att-st[data-st*="재택"] { color: #5b21b6; background: #f1ebff; }
/* 내 근태 현황 달력 칩: 유형 이름만, 유형별 색 */
body.gw .att-leave[data-lt="출장"], body.gw .att-leave[data-lt="외근"], body.gw .att-leave[data-lt="재택근무"] { background: #f1ebff !important; color: #5b21b6 !important; }
body.gw .att-leave[data-lt="연장근로"] { background: #fff4e0 !important; color: #92400e !important; }

/* ===== A · 내 휴가 현황 ===== */
body.gw .bal-year { margin-left: 10px; font-size: 14px; color: #6b7280; font-weight: 600; }
body.gw .bal-sum { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); border: 1px solid #e5e7eb; border-radius: 12px; background: #fff; }
body.gw .bal-sum__i { padding: 18px 20px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
body.gw .bal-sum__i + .bal-sum__i { border-left: 1px solid #eef0f3; }
body.gw .bal-sum__i > span { font-size: 12.5px; color: #6b7280; font-weight: 600; }
body.gw .bal-sum__i > b { font-size: 24px; font-weight: 700; color: #111827; letter-spacing: -.02em; }
body.gw .bal-sum__i > b small { font-size: 13px; font-weight: 500; color: #9ca3af; margin-left: 3px; }
body.gw .bal-sum__i > b.is-pend { color: #b45309; }
body.gw .bal-sum__i > em { font-style: normal; font-size: 12px; color: #9ca3af; }
body.gw .bal-sum__i--main > b { font-size: 34px; color: #12283f; }
body.gw .bal-meter { display: flex; height: 8px; background: #eef1f5; border-radius: 4px; overflow: hidden; margin: 6px 0 4px; }
body.gw .bal-meter__used { background: #12283f; }
body.gw .bal-meter__pend { background: #f5b74a; }
body.gw .bal-sum__i em .dot { display: inline-block; width: 7px; height: 7px; border-radius: 2px; margin: 0 4px 0 6px; vertical-align: 0; }
body.gw .bal-sum__i em .dot:first-child { margin-left: 0; }
body.gw .dot--used { background: #12283f; } body.gw .dot--pend { background: #f5b74a; }
body.gw .bal-grid { display: grid; grid-template-columns: minmax(280px, 1fr) 2fr; gap: 16px; margin-top: 16px; }
body.gw .bal-card { border: 1px solid #e5e7eb; border-radius: 12px; padding: 18px 20px; background: #fff; min-width: 0; }
body.gw .bal-card h2 { font-size: 14.5px; font-weight: 700; margin: 0 0 14px; color: #111827; }
body.gw .bal-card h2 small { font-size: 12px; color: #9ca3af; font-weight: 500; margin-left: 6px; }
body.gw .bal-dl { margin: 0; }
body.gw .bal-dl > div { display: flex; justify-content: space-between; padding: 7px 0; font-size: 13.5px; }
body.gw .bal-dl dt { color: #6b7280; } body.gw .bal-dl dd { margin: 0; font-weight: 600; color: #111827; }
body.gw .bal-dl__sum { border-top: 1px solid #e5e7eb; margin-top: 6px; padding-top: 10px !important; }
body.gw .bal-dl__sum dd { color: #12283f; font-size: 15px; }
body.gw .bal-note { margin: 12px 0 0; font-size: 12px; color: #9ca3af; line-height: 1.5; }
body.gw .bal-chart { display: grid; grid-template-columns: repeat(12, 1fr); gap: 6px; height: 150px; align-items: end; }
body.gw .bal-chart__col { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 4px; }
body.gw .bal-chart__col i { display: block; width: 60%; max-width: 26px; min-height: 2px; background: #c9d3e0; border-radius: 3px 3px 0 0; }
body.gw .bal-chart__col.is-now i { background: #12283f; }
body.gw .bal-chart__v { font-size: 11.5px; font-weight: 700; color: #374151; min-height: 14px; }
body.gw .bal-chart__m { font-size: 11.5px; color: #9ca3af; }
body.gw .bal-chart__col.is-now .bal-chart__m { color: #12283f; font-weight: 700; }
body.gw .bal-other { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 16px; padding-top: 12px; border-top: 1px solid #eef0f3; font-size: 13px; color: #6b7280; }
body.gw .bal-other b { color: #111827; font-size: 15px; }
@media (max-width: 1100px) { body.gw .bal-sum { grid-template-columns: repeat(2, 1fr); } body.gw .bal-sum__i--main { grid-column: 1 / -1; } body.gw .bal-sum__i + .bal-sum__i { border-left: 0; border-top: 1px solid #eef0f3; } body.gw .bal-grid { grid-template-columns: 1fr; } }
/* 퇴근 누락 날짜: 한 줄 3칸, 넘치면 ‹ › */
body.gw .mo-car { position: relative; }
body.gw .mo-car .mo-days { display: flex !important; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
body.gw .mo-car .mo-days::-webkit-scrollbar { display: none; }
body.gw .mo-car .mo-pick { flex: 0 0 calc((100% - 16px) / 3); scroll-snap-align: start; }
body.gw .mo-car__btn { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 28px; height: 28px; border-radius: 50%; border: 1px solid #d9dde3; background: #fff; color: #111827; font-size: 18px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; }
body.gw .mo-car__btn[hidden] { display: none; }
body.gw .mo-car__btn--prev { left: -12px; } body.gw .mo-car__btn--next { right: -12px; }
body.gw .mo-car__btn:hover { background: #f3f4f6; }
body.gw .bal-hint { color: #b0b6bf; }
@media (max-width: 768px) { body.gw .mo-car .mo-pick { flex-basis: calc((100% - 8px) / 2); } }
/* 시간 선택(시·분): 넓게 — 답답하지 않게 */
body.gw .ot-time { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
body.gw .ot-time .cm-dd { min-width: 88px; }
body.gw .ot-time .cm-dd__btn { width: 100%; min-width: 88px; height: 42px; padding: 0 12px 0 14px; justify-content: space-between; font-size: 15px; }
body.gw .ot-time .cm-dd__panel { min-width: 88px; max-height: 240px; }
body.gw .ot-time .cm-dd__opt { padding: 8px 14px; font-size: 14.5px; }
body.gw .ot-time .ot-colon { color: #9ca3af; font-weight: 600; }
body.gw .ot-time .lv-range__tilde { margin: 0 6px; color: #9ca3af; }
/* 증빙 첨부 */
body.gw .lv-opt { font-weight: 400; color: #9ca3af; font-size: 12px; margin-left: 6px; }
body.gw .lv-file { display: flex; align-items: center; gap: 10px; cursor: pointer; }
body.gw .lv-file input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
body.gw .lv-file__btn { display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border: 1px solid #d9dde3; border-radius: 8px; background: #fff; font-size: 13.5px; font-weight: 600; color: #374151; }
body.gw .lv-file:hover .lv-file__btn { background: #f3f4f6; }
body.gw .lv-file input:focus-visible + .lv-file__btn { outline: 2px solid #12283f; outline-offset: 2px; }
body.gw .lv-file__hint { font-size: 12.5px; color: #9ca3af; }
body.gw .lv-file__hint.is-err { color: #b91c1c; }
body.gw .lv-file__list { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
body.gw .lv-file__list:empty { display: none; }
body.gw .lv-file__list li { display: flex; justify-content: space-between; gap: 10px; padding: 7px 10px; background: #f7f8fa; border-radius: 6px; font-size: 13px; color: #374151; }
body.gw .lv-file__list li em { font-style: normal; color: #9ca3af; flex: none; }
body.gw .lv-files-cell { max-width: 200px; }
body.gw .lv-file-link { display: block; max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #1d4ed8; font-size: 13px; text-decoration: none; }
body.gw .lv-file-link::before { content: "📎 "; }
body.gw .lv-file-link:hover { text-decoration: underline; }
/* 결재 흐름 미리보기: 신청 › 1차 › 2차, 참조 줄 */
body.gw .lv-line-preview { display: block; margin-top: 10px; padding: 12px; border: 1px solid #e5e7eb; border-radius: 10px; background: #fafbfc; }
body.gw .lv-line-preview[hidden] { display: none; }
body.gw .lv-flow { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
body.gw .lv-flow__step { display: flex; flex-direction: column; gap: 2px; padding: 7px 12px; background: #fff; border: 1px solid #e5e7eb; border-radius: 8px; min-width: 0; }
body.gw .lv-flow__step.is-me { background: #f1f4f8; border-color: #e1e6ee; }
body.gw .lv-flow__tag { font-size: 11px; color: #6b7280; font-weight: 600; }
body.gw .lv-flow__name { font-size: 13.5px; font-weight: 700; color: #111827; white-space: nowrap; }
body.gw .lv-flow__arrow { color: #9ca3af; font-size: 18px; line-height: 1; }
body.gw .lv-flow__ref { display: flex; align-items: center; gap: 8px; margin-top: 10px; padding-top: 10px; border-top: 1px dashed #e5e7eb; font-size: 13px; color: #374151; }
body.gw .lv-flow__ref .lv-flow__tag { padding: 2px 6px; background: #eef1f5; border-radius: 4px; }
body.gw .cm-dd__opt.is-sel { background: #eef2f7; font-weight: 700; color: #12283f; }
/* 유형 탭(출퇴근 내역·신청 목록): 전체 + 유형별, 선택은 남색 채움 */
body.gw .att-sum { display: inline-flex; flex-wrap: wrap; gap: 0; border: 1px solid #e5e7eb; border-radius: 10px; overflow: hidden; background: #fff; }
body.gw .att-sum__chip { cursor: pointer; padding: 8px 14px; font-size: 13px; color: #4b5563; border: 0 !important; border-radius: 0 !important; background: #fff !important; user-select: none; }
body.gw .att-sum__chip + .att-sum__chip { border-left: 1px solid #eef0f3 !important; }
body.gw .att-sum__chip:hover { background: #f5f7fa !important; }
body.gw .att-sum__chip.is-active { background: #12283f !important; color: #fff !important; font-weight: 700; }
body.gw .att-sum__chip.is-active b { color: #fff !important; }
body.gw .att-sum__chip:focus-visible { outline: 2px solid #12283f; outline-offset: -2px; }
body.gw .att-sub-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
body.gw .att-sub-bar .att-req-bar { margin: 0 !important; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
body.gw .att-req-bar__label { font-size: 12.5px; color: #9ca3af; margin-right: 2px; }
/* 결재 진행 칸: 결재자 단계 줄바꿈 없이 + 참조 줄 */
body.gw .att-sub-table td .lv-step { white-space: nowrap; margin: 2px 4px 2px 0; }
body.gw .lv-refline { margin-top: 5px; font-size: 12.5px; color: #4b5563; }
body.gw .lv-refline > span { display: inline-block; padding: 1px 6px; margin-right: 4px; border-radius: 4px; background: #eef1f5; color: #6b7280; font-size: 11.5px; font-weight: 600; }
/* 종일/반차·종일/기간 토글: 내용 너비만 */
body.gw .lv-radio { width: auto !important; max-width: max-content; align-self: flex-start; }
body.gw .lv-radio:not([hidden]) { display: inline-flex; }
body.gw .lv-radio label { min-width: 72px; justify-content: center; padding: 0 18px; }
/* 공휴일 칸: 연한 빨강 바탕 + 이름 */
body.gw .cal-cell--hol { background: #fff6f6; }
body.gw .cal-cell--hol.cal-cell--out { background: #fbf3f3; }
body.gw .cal-cell__hol { color: #dc2626; font-weight: 600; font-size: 12px; }
body.gw .cal-cell--out .cal-cell__num.is-sun, body.gw .cal-cell--out .cal-cell__num.is-sat, body.gw .cal-cell--out .cal-cell__hol { opacity: .45; }
/* 근태 현황 달력 공휴일 칸 */
body.gw .att-cal td:has(.att-cal__hol) { background: #fff6f6; }
/* 날짜 선택기: 공휴일 빨강 + 아래 점, 달 아래 공휴일 이름 목록 */
.cm-cal__day.is-hol { color: #dc2626 !important; font-weight: 700; position: relative; }
.cm-cal__day.is-hol::after { content: ""; position: absolute; left: 50%; bottom: 3px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: #dc2626; }
.cm-cal__day.is-hol.is-selected::after { background: #fff; }
.cm-cal__hols { margin-top: 8px; padding-top: 8px; border-top: 1px solid #eef0f3; font-size: 12px; color: #dc2626; line-height: 1.5; }
/* 일정 메뉴: 일정 달력 아래 여유 + 캘린더 목록을 같은 묶음으로 */
body.gw .cal-side .cal-sub { margin-top: 14px; padding-top: 12px; border-top: 1px solid #eef0f3; }
body.gw .cal-side .cal-sub__head { display: flex; align-items: center; justify-content: space-between; padding: 0 8px 0 10px !important; margin: 0 0 4px; background: none !important; min-height: 28px; }
body.gw .cal-side .cal-sub__head + .cal-list { margin-bottom: 12px; }
body.gw .cal-side .cal-sub__head .gw-subnav__head { padding: 0 !important; font-size: 12px; color: #9ca3af; }
body.gw .cal-side .cal-sub .cal-item { padding-left: 10px; }
body.gw .cal-side .cal-sub { border-top: 0; }
body.gw .cal-side .cal-sub__head { padding: 0 6px 0 12px !important; }
body.gw .cal-side .gw-subnav__sechead { padding-left: 12px !important; }
body.gw .cal-side .gw-subnav__sechead .gw-subnav__head { padding-left: 0 !important; }
body.gw .cal-side .cal-sub__head, body.gw .cal-side .gw-subnav__sechead { padding-left: 20px !important; }
body.gw .cal-side .gw-subnav__sec > p, body.gw .cal-side .cal-res-empty { padding-left: 20px; }
/* 일정 보기 전환(월간·주간·일간·목록): 유형 탭과 같은 붙은 탭, 선택=남색 */
body.gw .cal-views { display: inline-flex !important; gap: 0 !important; border: 1px solid #e5e7eb; border-radius: 10px; overflow: hidden; background: #fff; }
body.gw .cal-views .gw-btn { border: 0 !important; border-radius: 0 !important; height: 36px; padding: 0 16px; background: #fff; color: #4b5563; font-weight: 500; box-shadow: none !important; margin: 0 !important; }
body.gw .cal-views .gw-btn + .gw-btn { border-left: 1px solid #eef0f3 !important; }
body.gw .cal-views .gw-btn:hover { background: #f5f7fa; }
body.gw .cal-views .gw-btn.is-active { background: #12283f !important; color: #fff !important; font-weight: 700; }
/* 일정 목록: 바깥 상자 테두리 하나만(표 자체 테두리·둥근모서리 제거 — 이중 테두리 방지) */
body.gw .cal-list[data-cal-list] { border: 1px solid #e5e7eb; border-radius: 10px; background: #fff; }
body.gw .cal-list[data-cal-list] .cal-list-table { border: 0 !important; border-radius: 0 !important; box-shadow: none !important; margin: 0 !important; outline: 0 !important; }
body.gw .cal-list[data-cal-list] .cal-list-table tbody tr:last-child td { border-bottom: 0; }
body.gw .cal-list[data-cal-list] .cal-list-table thead th { background: #f9fafb; border-bottom: 1px solid #e5e7eb; }
@media (min-width: 769px) { body.gw .cal-main > [data-cal-listview] > [data-cal-list] { flex: 0 1 auto; } }
/* 일정 목록 머리줄 고정: 표·tbody 의 overflow 가 sticky 를 막지 않게 */
body.gw .cal-list[data-cal-list] .cal-list-table, body.gw .cal-list[data-cal-list] .cal-list-table thead, body.gw .cal-list[data-cal-list] .cal-list-table tr { overflow: visible !important; }
body.gw .cal-list[data-cal-list] .cal-list-table thead th { position: sticky !important; top: 0 !important; z-index: 3; background: #f9fafb !important; box-shadow: inset 0 -1px 0 #e5e7eb; }
/* 주간·일간 시간표: 요일 줄·종일 줄·본문 모두 스크롤바 자리 확보 → 칸 정렬 일치 */
body.gw .tg-head, body.gw .tg-allday { box-sizing: border-box; }   /* 오른쪽 여백은 JS가 본문 스크롤바 폭만큼 채움 */
/* 일정 본문 카드: 안쪽 여백 상하좌우 동일 */
@media (min-width: 769px) { body.gw .gw-main.cal-main { padding: 24px !important; } }
/* 근태 현황 달력 칩: 이름·유형 전부 보이게(두 줄 허용) */
body.gw .att-leave { display: block; white-space: normal !important; overflow: visible !important; text-overflow: clip !important; line-height: 1.35; padding: 2px 6px !important; font-size: 11.5px; word-break: keep-all; }
/* 근태 막대의 내 근태 아이콘 */
body.gw .cal-bar--leave .cal-ev__attend { color: #16a34a; margin-left: auto; display: inline-flex; }
body.gw .att-cal td .att-leave { width: 100%; box-sizing: border-box; }
/* 캘린더 색 변경 */
.cal-dot--edit { border: 0; padding: 0; cursor: pointer; width: 12px; height: 12px; border-radius: 50%; flex: none; box-shadow: 0 0 0 2px #fff, 0 0 0 3px transparent; transition: box-shadow .12s; }
.cal-dot--edit:hover, .cal-dot--edit:focus-visible { box-shadow: 0 0 0 2px #fff, 0 0 0 3px #9ca3af; outline: none; }
.cal-colorpop { position: fixed; z-index: 1200; background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; padding: 10px; box-shadow: 0 8px 24px rgba(17,24,39,.12); width: 196px; }
.cal-colorpop[hidden] { display: none; }
.cal-colorpop__grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.cal-colorpop__sw { width: 22px; height: 22px; border-radius: 50%; border: 0; cursor: pointer; }
.cal-colorpop__sw.is-on, .cal-colorpop__sw:hover { box-shadow: 0 0 0 2px #fff, 0 0 0 4px #111827; }
.cal-colorpop__custom { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; padding-top: 8px; border-top: 1px solid #eef0f3; font-size: 12.5px; color: #6b7280; }
.cal-colorpop__custom input { width: 34px; height: 24px; border: 1px solid #e5e7eb; border-radius: 6px; padding: 0; background: none; cursor: pointer; }
/* 색 점(편집용)은 줄 오른쪽에, 마우스를 올리면 보임 — 체크박스가 이미 캘린더 색을 보여줌 */
.cal-item .cal-dot--edit { display: inline-block; order: 5; margin-left: auto; opacity: 0; }
.cal-item:hover .cal-dot--edit, .cal-item .cal-dot--edit:focus-visible { opacity: 1; }
.cal-item .cal-del { order: 6; }
@media (hover: none) { .cal-item .cal-dot--edit { opacity: 1; } }
.cal-colorpop__shared { margin-top: 8px; padding-top: 8px; border-top: 1px solid #eef0f3; display: flex; flex-direction: column; gap: 6px; }
.cal-colorpop__shared[hidden] { display: none; }
.cal-colorpop__note { margin: 0; font-size: 11.5px; color: #9ca3af; line-height: 1.4; }
.cal-colorpop__all { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: #374151; cursor: pointer; }
.cal-colorpop__reset { border: 1px solid #e5e7eb; background: #fff; border-radius: 6px; height: 28px; font-size: 12px; color: #374151; cursor: pointer; }
.cal-colorpop__reset[hidden] { display: none; }
.cal-colorpop__reset:hover { background: #f5f7fa; }
/* 일정 왼쪽 메뉴 하단 여백(자원·공휴일 동기화가 바닥에 붙지 않게) */
body.gw .cal-side .gw-subnav__nav { padding-bottom: 16px; }
/* 일정 화면 안에서 연 근태 화면: 안쪽 카드(gw-main) 겉모양 제거 + 근태 영역만 스크롤 */
@media (min-width: 769px) {
  body.gw .cal-main > [data-att-inline]:not([hidden]) { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; margin: -24px; padding: 0; }
}
body.gw [data-att-inline] > .gw-main { border: 0 !important; box-shadow: none !important; border-radius: 0 !important; background: none !important; height: auto !important; min-height: 0 !important; overflow: visible !important; margin: 0 !important; }
body.gw [data-att-inline] > .gw-main > .gw-head-row:first-of-type { position: sticky; top: 0; z-index: 5; background: #fff; }
/* 일정 목록 머리줄 아래 선 하나만(테두리+그림자 이중선 제거 — 고정 시에도 보이는 그림자 선만 유지) */
body.gw .cal-list[data-cal-list] .cal-list-table thead th { border-bottom: 0 !important; }
body.gw .att-cal__cell { align-items: stretch !important; }
body.gw .att-cal__cell .att-leave { align-self: stretch; width: auto !important; max-width: none !important; }

/* ===== 규칙: 왼쪽 메뉴 묶음(섹션) 간격 — 모든 그룹웨어 화면 공통 =====
   구분선 위아래로 같은 여백(10px). 마지막 항목이 다음 구분선에 붙지 않게, 첫 묶음 위는 0. */
@media (min-width: 769px) {
  body.gw .gw-subnav__sec { padding-top: 10px !important; padding-bottom: 10px !important; }
  body.gw .gw-subnav__sec:first-child { padding-top: 0 !important; }
  body.gw .gw-subnav__sec:has(.gw-subnav__newfolder) { padding-top: 0 !important; }
}

/* ===== 규칙: 일정·근태 표는 열 너비 고정(colgroup + table-layout:fixed) =====
   탭·필터로 보이는 행이 바뀌어도 열 위치가 움직이지 않게. 넘치는 글자는 줄바꿈. */
body.gw table.att-fixed, body.gw .cal-list-table { table-layout: fixed !important; width: 100% !important; }
body.gw table.att-fixed th, body.gw table.att-fixed td { overflow-wrap: anywhere; word-break: keep-all; }
/* 내 근태 현황 달력: 결재 대기 중인 내 신청 = 점선 테두리 */
body.gw .att-leave.is-pending { background: #fff !important; outline: 1px dashed currentColor; outline-offset: -1px; }

/* ===== 일정 월간 달력: 근태 현황 달력과 같은 모양 =====
   날짜 왼쪽 위 · 오늘은 숫자만 남색 동그라미 · 요일 줄 바탕 없음 · 세로선 없음(가로선만) */
body.gw .cal-grid { border-left: 0 !important; border-top: 0 !important; }
body.gw .cal-grid .cal-dows { background: #fff !important; border-bottom: 1px solid #e5e7eb; }
body.gw .cal-grid .cal-dow { background: none !important; border: 0 !important; font-size: 12.5px; font-weight: 600; color: #6b7280; }
body.gw .cal-grid .cal-dow--sun { color: #dc2626; } body.gw .cal-grid .cal-dow--sat { color: #2563eb; }
body.gw .cal-cell { border-right: 0 !important; border-bottom: 1px solid #eef0f3 !important; padding: 6px 6px 6px !important; }
body.gw .cal-cell--today { background: none !important; }
body.gw .cal-cell--out { background: #fafbfc !important; }
body.gw .cal-cell__num { text-align: left !important; padding: 0 !important; height: 24px; display: flex; align-items: center; }
body.gw .cal-cell--today .cal-cell__num { display: inline-flex; justify-content: center; width: 24px; height: 24px; border-radius: 50%; background: #12283f; color: #fff !important; font-weight: 700; }
body.gw .cal-cell__hol { margin-top: 2px; }
/* 일정 월간: 날짜 아래 여백 + 마우스 올림 표시를 근태 달력과 동일하게 */
body.gw .cal-cell__num { margin-bottom: 6px; }
body.gw .cal-week__bars { top: 36px !important; }
body.gw .cal-cell { cursor: pointer; transition: background .12s, box-shadow .12s; }
body.gw .cal-cell:hover { background: #f7f8fa !important; box-shadow: inset 0 0 0 2px #12283f; }
/* 이전달·다음달 칸은 공휴일이어도 바탕 회색(빨간 바탕은 이번 달만) */
body.gw .att-cal td.is-other:has(.att-cal__hol) { background: #fafbfc !important; }
body.gw .cal-cell--hol.cal-cell--out { background: #fafbfc !important; }
/* 근태 유형 표시: 달력 막대와 같은 색 — 휴가 파랑 · 출장/외근/재택 보라 · 연장근로 주황 */
body.gw .lv-type { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 12.5px; font-weight: 600; line-height: 1.5; }
body.gw .lv-type[data-k="off"]  { color: #1e40af; background: #e8efff; }
body.gw .lv-type[data-k="work"] { color: #5b21b6; background: #f1ebff; }
body.gw .lv-type[data-k="over"] { color: #92400e; background: #fff4e0; }
/* 휴가 종류별 색(휴가 안에서도 구분): 연차 파랑 · 반차 청록 · 특별/기타휴가 초록 */
body.gw .lv-type[data-t="반차"], body.gw .lv-type[data-t^="연차(반차"] { color: #0e7490; background: #e0f6fa; }
body.gw .lv-type[data-t^="특별휴가"], body.gw .lv-type[data-t^="기타휴가"] { color: #15803d; background: #e7f7ec; }
/* 연차 사용 내역 더보기 */
body.gw .ct-tablewrap:not(.is-open) .bal-more-row { display: none; }
body.gw .bal-more-btn { display: block; width: 100%; margin-top: 8px; height: 38px; border: 1px solid #e5e7eb; border-radius: 8px; background: #fff; color: #374151; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
body.gw .bal-more-btn:hover { background: #f5f7fa; }

/* ===== 근태 표 화면(출퇴근 내역·휴가·근태 신청): 상단(제목·탭·버튼) + 표 머리줄 고정, 표 내용만 스크롤 ===== */
@media (min-width: 769px) {
  body.gw .cal-main > [data-att-inline]:not([hidden]):has(.att-scroll) { overflow: hidden !important; display: flex; flex-direction: column; }
  body.gw [data-att-inline]:has(.att-scroll) > .gw-main { flex: 1 1 auto; min-height: 0; display: flex !important; flex-direction: column; overflow: hidden !important; }
  body.gw [data-att-inline]:has(.att-scroll) > .gw-main > * { flex: none; }
  body.gw [data-att-inline] .ct-tablewrap.att-scroll { flex: 1 1 auto !important; min-height: 0 !important; overflow: auto !important; max-height: none !important; margin-bottom: 24px; }
  body.gw [data-att-inline] .ct-tablewrap.att-scroll thead th { position: sticky; top: 0; z-index: 3; background: #f9fafb; box-shadow: inset 0 -1px 0 #e5e7eb; border-bottom: 0 !important; }
}
/* 표 머리줄 고정을 막던 table overflow:hidden 해제(스크롤 상자 안 표 공통) */
body.gw .ct-tablewrap table, body.gw .cal-list table { overflow: visible !important; }
/* 근태 표: 둥근 상자는 고정, 안쪽만 스크롤 · 얇은 스크롤바 · 스크롤 시 머리줄 그림자 */
@media (min-width: 769px) {
  body.gw [data-att-inline] .ct-tablewrap.att-scroll { overflow: hidden !important; display: flex; flex-direction: column; }
  body.gw .att-scroll__in { flex: 1 1 auto; min-height: 0; overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #cfd5dd transparent; }
  body.gw .att-scroll__in::-webkit-scrollbar { width: 8px; height: 8px; }
  body.gw .att-scroll__in::-webkit-scrollbar-thumb { background: #cfd5dd; border-radius: 8px; border: 2px solid #fff; }
  body.gw .att-scroll__in::-webkit-scrollbar-track { background: transparent; }
  body.gw .att-scroll__in thead th { position: sticky; top: 0; z-index: 3; background: #f9fafb; box-shadow: inset 0 -1px 0 #e5e7eb; transition: box-shadow .15s; }
  body.gw .ct-tablewrap.is-scrolled .att-scroll__in thead th { box-shadow: inset 0 -1px 0 #e5e7eb, 0 4px 8px -4px rgba(17,24,39,.12); }
}

/* ===== 규칙: 표 상자 둥근 모서리 — 안쪽(머리줄 배경·행)이 모서리 밖으로 나오지 않게 clip =====
   clip 은 스크롤 상자를 만들지 않아 바깥 스크롤 기준 sticky 머리줄도 그대로 동작. */
@media (min-width: 769px) {
  body.gw .ct-tablewrap { overflow: clip !important; border-radius: 10px; }
  body.gw [data-att-inline] .ct-tablewrap.att-scroll { overflow: hidden !important; }
}
body.gw .ct-tablewrap > table, body.gw .ct-tablewrap .att-scroll__in > table { border: 0 !important; border-radius: 0 !important; margin: 0 !important; }
body.gw .ct-tablewrap tbody tr:last-child td { border-bottom: 0 !important; }
/* 스크롤 시 머리줄 아래 표시: 칸마다 끊기지 않는 얇은 선 */
body.gw .ct-tablewrap.is-scrolled .att-scroll__in thead th { box-shadow: inset 0 -1px 0 #e5e7eb, 0 2px 0 0 rgba(17,24,39,.06) !important; }
/* 테두리는 바깥 상자 한 곳만(표 자체 테두리는 위에서 제거) */
body.gw .ct-tablewrap { border: 1px solid #e5e7eb !important; background: #fff; }
/* 표 상자 자체가 스크롤될 때 머리줄은 상자 맨 위(0)에 고정 — 예전 64px 값 때문에 머리줄이 행 위로 밀리던 문제 */
body.gw .mb-scroll thead th { top: 0 !important; background: #f9fafb; box-shadow: inset 0 -1px 0 #e5e7eb; }
/* 스크롤 시 머리줄 아래 추가 선 제거 — 항상 같은 1px 선만 */
body.gw .ct-tablewrap.is-scrolled .att-scroll__in thead th { box-shadow: inset 0 -1px 0 #e5e7eb !important; }
/* 연차 사용 내역 접힘 상태: 보이는 마지막(5번째) 줄 아래 선 제거 → 상자 테두리와 겹침 방지 */
body.gw .ct-tablewrap:not(.is-open):has(.bal-more-row) tbody tr:nth-child(5) td { border-bottom: 0 !important; }
/* 더보기 버튼: 마우스 클릭 후 초점 테두리 숨김(키보드 이동 때만 표시) */
body.gw .bal-more-btn:focus:not(:focus-visible) { outline: none; box-shadow: none; border-color: #e5e7eb; }
body.gw .bal-more-btn:focus-visible { outline: 2px solid #12283f; outline-offset: 2px; }

/* ===== 일정 휴지통 ===== */
@media (min-width: 769px) {
  body.gw .gw-main.trash-main { display: flex; flex-direction: column; overflow: hidden !important; }
  body.gw .trash-main > * { flex: none; }
  body.gw .trash-main > .ct-tablewrap.att-scroll { flex: 1 1 auto !important; min-height: 0; overflow: hidden !important; display: flex; flex-direction: column; margin-top: 14px; }
}
body.gw .trash-desc { margin: 0 0 14px; font-size: 13px; color: #6b7280; }
body.gw .trash-kind { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 12px; font-weight: 600; }
body.gw .trash-kind[data-k="event"] { color: #1e40af; background: #e8efff; }
body.gw .trash-kind[data-k="cal"]   { color: #5b21b6; background: #f1ebff; }
body.gw .trash-kind[data-k="res"]   { color: #92400e; background: #fff4e0; }
body.gw .trash-name { font-weight: 600; color: #111827; }
body.gw .trash-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 7px; vertical-align: 1px; }
body.gw .trash-meta { color: #6b7280; font-size: 13px; }
body.gw .trash-acts { white-space: nowrap; }
body.gw .trash-acts form { display: inline; }
body.gw .trash-acts form + form { margin-left: 4px; }
body.gw .trash-purge { color: #b91c1c !important; border-color: #f3c9c9 !important; background: #fff !important; }
body.gw .trash-purge:hover { background: #fef2f2 !important; }
body.gw .trash-empty td { text-align: center; color: #9ca3af; padding: 48px 0 !important; }
/* 휴지통에서 보는 왼쪽 메뉴: 캘린더 체크박스는 보기만(조작은 일정 화면에서) */
body.gw .cal-side--trash .cal-item { pointer-events: none; }
body.gw .cal-side--trash .cal-item input { opacity: .9; }
body.gw .gw-subnav__trash.is-active { background: #f1f4f8; font-weight: 700; color: #12283f; }
/* 규칙: 표 머리줄 아래 선은 하나 — 테두리(border) 대신 sticky 에서도 남는 inset 선만 (모든 표 상자 공통) */
body.gw .ct-tablewrap thead th, body.gw .att-scroll__in thead th { border-bottom: 0 !important; box-shadow: inset 0 -1px 0 #e5e7eb !important; }

/* ===== 일정 쓰기/수정: 왼쪽 본문(제목·일시·반복·장소·내용·할 일) | 오른쪽 설정(캘린더·참석자·자원·첨부), 하단 버튼 고정 ===== */
body.gw .cal-formview { max-width: none !important; }
@media (min-width: 769px) {
  body.gw .cal-main > .cal-formview:not([hidden]) { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; margin: -24px; }
  body.gw .cal-formview > .cal-formview__head { flex: none; margin: 0 !important; padding: 18px 24px; border-bottom: 1px solid #eef0f3; }
  body.gw .cal-formview > .ev-form { flex: 1 1 auto; min-height: 0; display: flex !important; flex-direction: column; gap: 0 !important; }
  body.gw .ev-layout { flex: 1 1 auto; min-height: 0; overflow-y: auto; display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 0; }
  body.gw .ev-main { padding: 20px 28px 28px 24px; min-width: 0; }
  body.gw .ev-aside { padding: 20px 24px 28px; border-left: 1px solid #eef0f3; background: #fafbfc; min-width: 0; }
  body.gw .ev-form__actions { flex: none; display: flex; align-items: center; gap: 8px; padding: 12px 24px; border-top: 1px solid #eef0f3; background: #fff; margin: 0 !important; }
}
body.gw .ev-row { margin-bottom: 16px; gap: 6px; }
body.gw .ev-row__label { margin-top: 0 !important; font-size: 12.5px; font-weight: 600; color: #4b5563; }
body.gw .ev-form input[type=text], body.gw .ev-form textarea { width: 100%; box-sizing: border-box; height: 40px; border: 1px solid #d9dde3; border-radius: 8px; padding: 0 12px; font: inherit; font-size: 14px; background: #fff; }
body.gw .ev-form textarea { height: auto; min-height: 140px; padding: 10px 12px; resize: vertical; line-height: 1.6; }
body.gw .ev-form input[type=text]:focus, body.gw .ev-form textarea:focus { outline: none; border-color: #12283f; box-shadow: 0 0 0 3px rgba(18,40,63,.1); }
/* 제목: 크게, 라벨 숨김(자리표시로 대신) */
body.gw .ev-row--title .ev-row__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
body.gw .ev-row--title input#ev-title { height: 52px !important; font-size: 20px !important; font-weight: 700; border: 0 !important; border-bottom: 1px solid #e5e7eb !important; border-radius: 0 !important; padding: 0 2px !important; box-shadow: none !important; }
body.gw .ev-row--title input#ev-title:focus { border-bottom-color: #12283f !important; }
/* 일시: 시작 ~ 종료 한 줄 + 종일 */
body.gw .ev-row--dt .ev-row__field { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
body.gw .ev-row--dt .ev-datetime { display: inline-flex; align-items: center; gap: 6px; }
body.gw .ev-row--dt .ev-datetime + .ev-datetime::before { content: "~"; color: #9ca3af; margin-right: 4px; }
body.gw .ev-row--dt .cm-date input { width: 130px; }
body.gw .ev-row--dt .cm-dd { min-width: 72px; }
body.gw .ev-row--dt .ev-allday { display: inline-flex; align-items: center; gap: 6px; margin-left: 6px; font-size: 13px; color: #374151; }
/* 오른쪽 설정 칸: 회색 바탕 위 흰 입력 */
body.gw .ev-aside .ev-row small { display: block; margin-top: 4px; font-size: 12px; line-height: 1.5; }
body.gw .ev-aside [data-att-open] { width: 100%; }
@media (max-width: 1100px) { body.gw .ev-layout { grid-template-columns: 1fr; } body.gw .ev-aside { border-left: 0; border-top: 1px solid #eef0f3; } }
/* 일정 쓰기 보정: 일시 왼쪽 정렬 한 줄 · 저장 버튼이 채팅 버튼에 가리지 않게 · 첨부 모양 · 기존 첨부 목록 */
body.gw .ev-row--dt .ev-row__field { flex-direction: row !important; justify-content: flex-start !important; align-items: center !important; }
body.gw .ev-row--dt .ev-datetime { flex: none; margin: 0 !important; }
body.gw .ev-row--dt .ev-datetime .cm-date { flex: 0 0 140px; max-width: 140px; }
body.gw .ev-row--dt .ev-datetime + .ev-datetime::before { margin: 0 6px 0 2px; }
body.gw .ev-form__actions { padding-right: 96px !important; }
body.gw .ev-form__actions .btn-cancel, body.gw .ev-form__actions .btn-save { height: 40px; padding: 0 20px; border-radius: 8px; }
body.gw .ev-filepick { margin-top: 2px; }
body.gw .ev-filelist:empty { display: none; }
body.gw .ev-filelist { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; }
body.gw .ev-file { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 7px 10px; background: #fff; border: 1px solid #e5e7eb; border-radius: 6px; font-size: 13px; }
body.gw .ev-file__name { color: #1d4ed8; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.gw .ev-file__name::before { content: "📎 "; }
body.gw .ev-file__del { border: 0; background: none; color: #9ca3af; font-size: 16px; cursor: pointer; line-height: 1; }
body.gw .ev-file__del:hover { color: #b91c1c; }
/* 참석자 안내 줄 간격 */
body.gw .ev-aside .ev-att-chips { margin-top: 6px; font-size: 13px; color: #6b7280; }
body.gw .ev-aside .ev-att-chips:empty { display: none; }

/* ===== 레일(맨 왼쪽 아이콘 줄): 모든 아이콘 같은 칸 · 선택=남색 옅은 칸 · 뱃지 또렷하게 ===== */
@media (min-width: 769px) {
  body.gw .gw-rail a .gw-rail__ic { position: relative; width: 40px; height: 36px; display: inline-flex; align-items: center; justify-content: center;
    border-radius: 10px; border: 1px solid transparent; background: transparent; box-sizing: border-box; transition: background .12s, border-color .12s; }
  body.gw .gw-rail a:hover .gw-rail__ic { background: #f3f4f6; border-color: #e5e7eb; }
  body.gw .gw-rail a.is-active .gw-rail__ic { background: #eef2f7 !important; border-color: #d6dde7 !important; color: #12283f !important; }
  body.gw .gw-rail a.is-active { color: #12283f !important; font-weight: 700; }
}
body.gw .gw-rail__badge { position: absolute !important; top: -6px !important; right: -7px !important; left: auto !important;
  min-width: 18px; height: 18px; padding: 0 5px; box-sizing: border-box; border-radius: 9px;
  background: #e11d48 !important; color: #fff !important; font-size: 11px !important; font-weight: 800 !important; line-height: 18px !important;
  text-align: center; letter-spacing: -.02em; box-shadow: 0 0 0 2px #fff; font-variant-numeric: tabular-nums; }
@media (min-width: 769px) {
  body.gw .gw-rail a .gw-rail__ic { border-color: #e6e9ee; background: #fff; }
  body.gw .gw-rail a:hover .gw-rail__ic { background: #f5f7fa; border-color: #d6dde7; }
}
/* 일정 쓰기: 스크롤 없이 한 화면 — 반복·장소 한 줄, 간격·높이 축소 */
@media (min-width: 1101px) {
  body.gw .ev-main { display: grid; grid-template-columns: 1fr 1fr; column-gap: 14px; align-content: start; padding-top: 14px !important; padding-bottom: 16px !important; }
  body.gw .ev-main > .ev-row { grid-column: 1 / -1; }
  body.gw .ev-main > .ev-row:has(#ev-recur), body.gw .ev-main > .ev-row:has(#ev-loc) { grid-column: auto; }
}
body.gw .ev-row { margin-bottom: 12px !important; }
body.gw .ev-row--title { margin-bottom: 14px !important; }
body.gw .ev-row--title input#ev-title { height: 44px !important; font-size: 19px !important; }
body.gw .ev-form textarea#ev-memo { min-height: 96px; height: 96px; }
body.gw .ev-main .todo-edit-list:empty { display: none; }
body.gw .ev-main .ev-row:has([data-todo-input]) small { display: none; }
body.gw .ev-aside { padding-top: 14px !important; }
body.gw .ev-aside .ev-row small { font-size: 11.5px; }
body.gw .cal-formview > .cal-formview__head { padding: 14px 24px !important; }
/* 카카오맵: 장소 검색 목록 · 쓰기 화면 미니 지도 · 상세 팝업 지도 */
body.gw .ev-place { position: relative; }
body.gw .ev-place__list { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 30; list-style: none; margin: 0; padding: 4px; background: #fff; border: 1px solid #e5e7eb; border-radius: 8px; box-shadow: 0 8px 24px rgba(17,24,39,.12); max-height: 260px; overflow-y: auto; }
body.gw .ev-place__list[hidden] { display: none; }
body.gw .ev-place__list li { display: flex; flex-direction: column; gap: 1px; padding: 7px 10px; border-radius: 6px; cursor: pointer; }
body.gw .ev-place__list li:hover, body.gw .ev-place__list li:focus { background: #f3f5f8; outline: none; }
body.gw .ev-place__list b { font-size: 13.5px; color: #111827; }
body.gw .ev-place__list em { font-style: normal; font-size: 12px; color: #6b7280; }
body.gw .ev-place-map[hidden] { display: none; }
body.gw .ev-place-map__map { width: 100%; height: 170px; border-radius: 8px; border: 1px solid #e5e7eb; overflow: hidden; background: #eef1f5; }
body.gw .ev-place-map__addr { margin: 6px 0 0; font-size: 12px; color: #6b7280; }
body.gw .ev-pop__map[hidden] { display: none; }
body.gw .ev-pop__map { margin-top: 8px; }
body.gw .ev-pop__mapview { width: 100%; height: 150px; border-radius: 8px; border: 1px solid #e5e7eb; overflow: hidden; background: #eef1f5; }
body.gw .ev-pop__maplinks { display: flex; align-items: center; gap: 10px; margin-top: 6px; font-size: 12px; color: #6b7280; }
body.gw .ev-pop__maplinks span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.gw .ev-pop__maplinks a { color: #1d4ed8; text-decoration: none; font-weight: 600; white-space: nowrap; }
body.gw .ev-pop__maplinks a:hover { text-decoration: underline; }
body.gw .ev-place__list li.is-active { background: #eef2f7; }
body.gw .ev-place__list li.is-empty { cursor: default; color: #6b7280; font-size: 12.5px; }
body.gw .ev-place__list li.is-empty:hover { background: none; }
/* 장소 지도: 내용 칸 옆(같은 줄) — 장소가 있을 때만, 스크롤 생기지 않게 */
@media (min-width: 1101px) {
  body.gw .ev-main:has(.ev-place-map:not([hidden])) > .ev-row--memo { grid-column: 1 / 2; }
  body.gw .ev-main > .ev-place-map { grid-column: 2 / 3 !important; }
}
body.gw .ev-main .ev-place-map { position: relative; }
body.gw .ev-main .ev-place-map__map { height: 96px; }
body.gw .ev-main .ev-place-map__addr { position: absolute; left: 6px; bottom: 4px; margin: 0; padding: 2px 6px; background: rgba(255,255,255,.92); border-radius: 4px; font-size: 11.5px; max-width: calc(100% - 12px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; z-index: 2; }
/* 장소 지도: 전체 폭·넓게, 내용 칸은 그 아래 */
@media (min-width: 1101px) {
  body.gw .ev-main:has(.ev-place-map:not([hidden])) > .ev-row--memo { grid-column: 1 / -1 !important; }
  body.gw .ev-main > .ev-place-map { grid-column: 1 / -1 !important; }
}
body.gw .ev-main .ev-place-map__map { height: 180px !important; }
/* 참석자 칩: × 로 바로 빼기 */
body.gw .ev-att-chip { display: inline-flex; align-items: center; gap: 2px; padding: 3px 4px 3px 10px; }
body.gw .ev-att-chip__x { border: 0; background: none; width: 18px; height: 18px; border-radius: 50%; color: #9ca3af; font-size: 14px; line-height: 1; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
body.gw .ev-att-chip__x:hover { background: #fee2e2; color: #b91c1c; }
body.gw .ev-att-chip__x:focus-visible { outline: 2px solid #12283f; outline-offset: 1px; }
/* 첨부 목록: 이름 · 크기 · × */
body.gw .lv-file__list li { align-items: center; }
body.gw .lv-file__name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.gw .lv-file__x { border: 0; background: none; width: 20px; height: 20px; border-radius: 50%; color: #9ca3af; font-size: 15px; line-height: 1; cursor: pointer; flex: none; }
body.gw .lv-file__x:hover { background: #fee2e2; color: #b91c1c; }
/* 장소·지도 맨 아래: 반복은 왼쪽 절반만, 장소·지도는 전체 폭 */
@media (min-width: 1101px) {
  body.gw .ev-main > .ev-row:has(#ev-recur) { grid-column: 1 / 2 !important; }
  body.gw .ev-main > .ev-row:has(#ev-recur) + .ev-row { grid-column: 1 / -1; }
  body.gw .ev-main > .ev-row:has(#ev-loc) { grid-column: 1 / -1 !important; }
}
body.gw .ev-main .ev-place-map__map { height: 160px !important; }
body.gw .ev-form textarea#ev-memo { min-height: 80px; height: 80px; }
body.gw .ev-main .ev-place-map__map { height: 140px !important; }
body.gw .ev-main > .ev-place-map { margin-bottom: 0 !important; }
/* 할 일 [추가]: 입력칸과 같은 높이(40px)·폭 넉넉히 */
body.gw .todo-add { display: flex; gap: 8px; align-items: stretch; }
body.gw .todo-add [data-todo-add] { height: 40px !important; min-width: 72px; padding: 0 16px !important; border-radius: 8px !important; font-size: 13.5px; font-weight: 600; flex: none; }
body.gw .ev-place__list { z-index: 1200 !important; }
/* 장소·지도: 오른쪽 설정 칸 아래(첨부 다음) · 본문 내용 칸은 다시 넉넉히 */
body.gw .ev-aside .ev-place-map__map { height: 170px !important; }
body.gw .ev-aside .ev-place-map { position: relative; }
body.gw .ev-aside .ev-place-map__addr { position: absolute; left: 6px; bottom: 4px; margin: 0; padding: 2px 6px; background: rgba(255,255,255,.92); border-radius: 4px; font-size: 11.5px; max-width: calc(100% - 12px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; z-index: 2; }
body.gw .ev-form textarea#ev-memo { min-height: 160px !important; height: 160px !important; }
@media (min-width: 1101px) { body.gw .ev-main > .ev-row:has(#ev-recur) { grid-column: 1 / 2 !important; } }
body.gw .ev-aside .ev-place-map__map { height: 140px !important; }
body.gw .ev-aside > .ev-row:last-child { margin-bottom: 0 !important; }
/* 일정 상세 참석자: 이름 첫 글자 동그라미 + 이름(알약 배경 없음) */
body.gw .ev-pop__att { align-items: center; }
body.gw .ev-pop__att-label { padding-top: 0 !important; min-width: 44px; }
body.gw .ev-pop__att-chips { gap: 4px 14px !important; align-items: center; }
body.gw .ev-pop__person { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; color: #111827; font-weight: 500; }
body.gw .ev-pop__person i { font-style: normal; width: 22px; height: 22px; border-radius: 50%; background: #12283f; color: #fff; font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
body.gw .ev-place__detail { margin-top: 6px; }
body.gw .ev-aside .ev-place-map__map { height: 124px !important; }

/* ===== 메일 왼쪽 메뉴 라벨: 편지함 메뉴와 같은 줄 높이·여백, 그룹도 같은 크기, × 는 마우스 올릴 때만 ===== */
body.gw .ml-lbl-head { display: flex; align-items: center; justify-content: space-between; padding: 4px 10px 6px 20px !important; font-size: 12px !important; font-weight: 600 !important; color: #9ca3af !important; }
body.gw .ml-lbl-add { width: 24px !important; height: 24px !important; border: 0 !important; background: none !important; border-radius: 6px !important; color: #6b7280 !important; font-size: 18px; line-height: 1; display: inline-flex; align-items: center; justify-content: center; }
body.gw .ml-lbl-add:hover { background: #f3f4f6 !important; color: #12283f !important; }
body.gw .ml-lbl-tree { gap: 1px; padding: 0 8px; }
body.gw .ml-lbl-row { position: relative; min-height: 36px; padding-right: 8px !important; gap: 4px; border-radius: 8px; box-sizing: border-box; }
body.gw .ml-lbl-row:hover { background: #f5f7fa; }
body.gw .ml-lbl-row:has(.ml-lbl-link.is-active) { background: #eef1f5; }
body.gw .ml-lbl-row .ml-lbl-link { padding: 0 !important; background: none !important; min-height: 36px; gap: 9px; font-size: 14px; color: #374151; text-decoration: none; }
body.gw .ml-lbl-row .ml-lbl-link.is-active { color: #111827; font-weight: 700; }
body.gw .ml-lbl-dot { width: 8px !important; height: 8px !important; flex: 0 0 8px !important; }
body.gw .ml-lbl-grp { font-size: 14px !important; font-weight: 600 !important; color: #374151 !important; line-height: 36px; }
body.gw .ml-lbl-toggle { width: 16px !important; flex: 0 0 16px !important; margin-left: -4px; color: #9ca3af !important; font-size: 10px !important; transition: transform .15s; }
body.gw .ml-lbl-row.is-leaf { padding-left: calc(var(--pl, 0px)); }
body.gw .ml-lbl-cnt { margin-left: auto; }
body.gw .ml-lbl-del { flex: none; width: 20px; height: 20px; border-radius: 50%; margin-left: 4px !important; color: #9ca3af !important; font-size: 14px; line-height: 1; opacity: 0; transition: opacity .12s; display: inline-flex; align-items: center; justify-content: center; }
body.gw .ml-lbl-row:hover .ml-lbl-del, body.gw .ml-lbl-del:focus-visible { opacity: 1; }
body.gw .ml-lbl-del:hover { background: #fee2e2; color: #b91c1c !important; }
/* 라벨 정렬: 색 점=편지함 글자 시작선, × 는 겹쳐 띄워 숫자 뱃지가 편지함 뱃지와 같은 세로줄 */
body.gw .ml-lbl-tree { padding: 0 !important; }
body.gw .ml-lbl-row { padding-right: 12px !important; }
body.gw .ml-lbl-del { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); margin: 0 !important; background: #fff; }
body.gw .ml-lbl-row:hover .ml-lbl-cnt { visibility: hidden; }
body.gw .ml-lbl-row.is-group { cursor: pointer; user-select: none; }

/* 그룹웨어 글꼴: Pretendard 우선(각 화면 head 에서 로드) */
body.gw { font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, "Noto Sans KR", sans-serif; }

/* ===== 메일 쓰기: 제목 줄을 다른 화면과 같게 · 받는사람 테두리 한 겹 · 줄 높이 40px 통일 ===== */
body.gw .ml-compose__acts--top { margin: 0 -28px 8px !important; padding: 16px 28px !important; border-bottom: 1px solid #eef0f3; display: flex; align-items: center; justify-content: space-between; background: #fff; }
body.gw .ml-compose__acts--top h1 { margin: 0; font-size: 20px; font-weight: 700; letter-spacing: -.02em; }
body.gw .ml-compose__btns { display: flex; align-items: center; gap: 8px; }
body.gw .ml-compose__btns .gw-btn { height: 36px; padding: 0 16px; border-radius: 8px; font-size: 13.5px; }
body.gw .ml-recip__box { border: 1px solid #d9dde3 !important; border-radius: 8px !important; background: #fff; padding: 0 6px !important; min-height: 40px; }
body.gw .ml-recip__box:focus-within { border-color: #12283f !important; box-shadow: 0 0 0 3px rgba(18,40,63,.1); }
body.gw .ml-recip__box input, body.gw .ml-recip__box input:focus { border: 0 !important; box-shadow: none !important; outline: none !important; background: transparent !important; height: 38px !important; padding: 0 6px !important; min-width: 120px; flex: 1; }
body.gw .ml-cc-btn { height: 40px !important; border-radius: 8px !important; border-color: #d9dde3 !important; padding: 0 14px !important; font-size: 13px !important; color: #374151 !important; }
body.gw .ml-cc-btn:hover { background: #f5f7fa; border-color: #c4cbd5 !important; color: #111827 !important; }
/* 날짜 선택기 오늘: 남색 테두리 동그라미(선택=남색 채움과 구분) */
.cm-cal__day.is-today { font-weight: 800; color: #12283f; box-shadow: inset 0 0 0 1.5px #12283f; border-radius: 50%; }
.cm-cal__day.is-today.is-selected { box-shadow: none; }
/* 날짜 선택기: 날짜 칸 동그라미 통일(선택=남색 채움, 오늘=남색 테두리) · 입력칸 초점 남색 */
.cm-cal__day { width: 34px; height: 34px; margin: 0 auto; padding: 0 !important; border-radius: 50% !important; display: inline-flex; align-items: center; justify-content: center; }
.cm-cal__day.is-selected { background: #12283f !important; color: #fff !important; border-radius: 50% !important; }
.cm-cal__day:not(.is-selected):hover { background: #eef1f5; }
.cm-date [data-dp-display]:focus, .cm-date [data-dp-display]:focus-visible { outline: none !important; border-color: #12283f !important; box-shadow: 0 0 0 3px rgba(18,40,63,.1) !important; }

/* ===== 주소록 창: 높이 고정(탭·검색 결과에 따라 변하지 않게), 목록만 스크롤 ===== */
.ab-modal__panel { height: min(640px, calc(100vh - 32px)) !important; max-height: none !important; }
.ab-modal__list { flex: 1 1 auto !important; min-height: 0 !important; overflow-y: auto; scrollbar-width: thin; }
.ab-modal__list:empty::after { content: "검색 결과가 없습니다."; display: block; padding: 48px 0; text-align: center; color: #9ca3af; font-size: 13px; }
.ab-modal__list .ab-row:last-child { border-bottom: 0; }
/* 그룹 탭: 붙은 세그먼트·선택 남색(규칙 5) */
.ab-modal__groups { gap: 0 !important; padding: 12px 20px !important; }
.ab-modal__groups .ab-chip { border-radius: 0 !important; margin-left: -1px; padding: 6px 12px !important; font-size: 12.5px !important; color: #4b5563; border-color: #e5e7eb !important; }
.ab-modal__groups .ab-chip:first-child { border-radius: 8px 0 0 8px !important; margin-left: 0; }
.ab-modal__groups .ab-chip:last-child { border-radius: 0 8px 8px 0 !important; }
.ab-modal__groups .ab-chip.is-on { background: #12283f !important; border-color: #12283f !important; color: #fff !important; position: relative; z-index: 1; font-weight: 700; }

/* ===== 규칙: 선택칸(select[data-cm])은 자체 드롭다운으로 바뀌기 전·후 크기 동일 — 들어올 때 높이 바뀜 방지 ===== */
body.gw select[data-cm] { height: 40px; box-sizing: border-box; }
body.gw .cm-dd__btn { height: 40px; box-sizing: border-box; }
/* 메일 목록 툴바: 버튼·선택칸 모두 32px */
body.gw .ml-toolbar .gw-btn, body.gw .ml-toolbar select[data-cm], body.gw .ml-toolbar .cm-dd__btn { height: 32px !important; min-height: 32px; box-sizing: border-box; font-size: 13px; }
body.gw .ml-toolbar select[data-cm], body.gw .ml-toolbar .cm-dd { width: 130px; min-width: 130px; }
body.gw .ml-toolbar .cm-dd__btn { padding: 0 10px; border-radius: 6px; }
body.gw .ml-toolbar { align-items: center; }
/* 선택칸 글자: 변환 전(select)과 후(.cm-dd) 같은 크기 — 기본 14px, 툴바 13px */
body.gw select[data-cm], body.gw .cm-dd__btn, body.gw .cm-dd__btn span { font-size: 14px; font-weight: 400; }
body.gw .cm-dd__btn span { font-size: inherit !important; }
body.gw .ml-toolbar select[data-cm], body.gw .ml-toolbar .cm-dd__btn { font-size: 13px !important; }

/* ===== 메일 목록: 제목·검색·툴바 고정, 목록만 스크롤(규칙 4) · 검색 버튼=검색칸 높이 ===== */
@media (min-width: 769px) {
  body.gw .gw-main:has(> .ml-listform) { display: flex; flex-direction: column; overflow: hidden !important; }
  body.gw .gw-main:has(> .ml-listform) > * { flex: none; }
  body.gw .gw-main > .ml-listform { flex: 1 1 auto !important; min-height: 0; display: flex; flex-direction: column; }
  body.gw .ml-listform > * { flex: none; }
  body.gw .ml-listform > .ml-listwrap { flex: 1 1 auto !important; min-height: 0; overflow: hidden !important; display: flex; flex-direction: column; margin-bottom: 0; }
  body.gw .gw-main:has(> .ml-listform) > .gw-pager { margin-top: 12px; }
}
body.gw .gw-head-tools .gw-search { height: 36px; box-sizing: border-box; }
body.gw .gw-head-tools .ml-search-btn { height: 36px !important; padding: 0 14px; border-radius: 8px; }
/* 메일 목록 표: 머리줄·열 고정 · 안읽음은 굵게(색 막대 없음) */
body.gw .ml-table thead th { font-size: 12px; font-weight: 600; color: #6b7280; height: 40px; padding: 0 10px; white-space: nowrap; }
body.gw .ml-table thead th.ml-c { text-align: center; }
body.gw .ml-table td { height: 48px; padding: 0 10px; vertical-align: middle; }
body.gw .ml-table .ml-date { text-align: right; color: #6b7280; font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; }
body.gw .ml-table .ml-from__nm, body.gw .ml-table .ml-subj__t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.gw .ml-table .ml-subj a { display: flex; align-items: center; gap: 6px; min-width: 0; overflow: hidden; color: #111827; text-decoration: none; }
body.gw .ml-table .ml-prev { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #9ca3af; font-size: 13px; }
body.gw .ml-table .ml-subj__t { flex: 0 1 auto; max-width: 60%; }
body.gw .ml-table tr.ml-unread .ml-from__nm, body.gw .ml-table tr.ml-unread .ml-subj__t { font-weight: 700; color: #111827; }
body.gw .ml-table tr:not(.ml-unread) .ml-from__nm, body.gw .ml-table tr:not(.ml-unread) .ml-subj__t { font-weight: 400; color: #374151; }
body.gw .ml-table tbody tr:hover td { background: #f8fafc; }
body.gw .ml-table .ml-lblcol { width: auto !important; max-width: none !important; }
/* 메일 제목 먼저 다 보이고 남는 폭에 미리보기 · 중요 표시 한 줄 */
body.gw .ml-table .ml-subj__t { max-width: none !important; flex: 0 1 auto; min-width: 0; }
body.gw .ml-table .ml-prev { flex: 1 1 0; min-width: 40px; }
body.gw .ml-table .ml-imp-tag, body.gw .ml-table .ml-sched { flex: none; white-space: nowrap; display: inline-flex; align-items: center; height: 20px; padding: 0 6px; font-size: 11px; border-radius: 4px; }
body.gw .ml-table .ml-clip { flex: none; }

/* 기본 선택칸을 처음부터 자체 드롭다운(.cm-dd__btn)과 같은 모양으로 — 바뀌어도 눈에 보이는 차이 없음 */
body.gw select[data-cm] {
  visibility: visible; -webkit-appearance: none; appearance: none; box-sizing: border-box; height: 40px;
  border: 1px solid #e6e8ec; border-radius: 8px; background-color: #fff; color: #111827;
  font-family: inherit; font-size: 14px; font-weight: 500; line-height: 1; padding: 0 30px 0 12px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='6' viewBox='0 0 8 6'%3E%3Cpath d='M0 0h8L4 6z' fill='%236b7280'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 13px center; background-size: 7px 5px;
}
body.gw .ml-toolbar select[data-cm] { height: 32px; font-size: 13px; font-weight: 400; width: 130px; }
/* 본문 편집기(TinyMCE)가 뜨기 전 원래 입력칸(HTML 코드) 숨김 — 같은 자리만 차지 */
body.gw textarea[data-cke] { visibility: hidden; min-height: 560px; width: 100%; border: 1px solid #e5e7eb; border-radius: 8px; }
body.gw textarea[data-cke].is-cke-fallback { visibility: visible; }
body.gw [data-sign-form] textarea[data-cke] { min-height: 350px; }

/* ===== 메일 목록 모바일(≤768px): 표 대신 카드 — 보낸 사람·날짜 / 제목 / 미리보기 ===== */
@media (max-width: 768px) {
  body.gw .gw-main:has(> .ml-listform) .gw-head-tools { display: flex; width: 100%; gap: 6px; }
  body.gw .gw-main:has(> .ml-listform) .gw-head-tools .gw-search { flex: 1; width: auto !important; min-width: 0; }
  body.gw .ml-toolbar { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; gap: 6px; padding-bottom: 4px; }
  body.gw .ml-toolbar::-webkit-scrollbar { display: none; }
  body.gw .ml-toolbar > * { flex: none; }
  body.gw .ml-table, body.gw .ml-table tbody { display: block; min-width: 0 !important; width: 100% !important; }
  body.gw .ml-table colgroup, body.gw .ml-table thead { display: none; }
  body.gw .ml-table tr { display: grid; grid-template-columns: 28px 1fr auto; grid-template-areas: "chk from date" "chk subj subj" "chk lbl star"; column-gap: 8px; row-gap: 2px; padding: 10px 12px; border-bottom: 1px solid #eef0f3; }
  body.gw .ml-table td { display: block; height: auto !important; padding: 0 !important; border: 0 !important; min-width: 0; }
  body.gw .ml-table td:nth-child(1) { grid-area: chk; padding-top: 2px !important; }
  body.gw .ml-table td:nth-child(2) { grid-area: star; justify-self: end; }
  body.gw .ml-table td.ml-from { grid-area: from; }
  body.gw .ml-table td.ml-lblcol { grid-area: lbl; }
  body.gw .ml-table td.ml-lblcol:empty { display: none; }
  body.gw .ml-table td.ml-subj { grid-area: subj; }
  body.gw .ml-table td.ml-date { grid-area: date; font-size: 12px; }
  body.gw .ml-table .ml-avatar { display: none; }
  body.gw .ml-table .ml-subj a { flex-wrap: wrap; row-gap: 2px; }
  body.gw .ml-table .ml-prev { flex-basis: 100%; }
}
@media (max-width: 768px) { body.gw .ml-table tr { grid-template-columns: 28px minmax(0,1fr) auto !important; } body.gw .ml-listwrap, body.gw .ml-listwrap .att-scroll__in { overflow-x: hidden !important; } }

/* 이름 첫 글자 동그라미: 글자 정가운데 · 안읽음 테두리 링 제거 */
body.gw .ml-avatar { display: inline-flex !important; align-items: center; justify-content: center; width: 26px; height: 26px; flex: 0 0 26px; line-height: 1 !important; padding: 0 !important; font-size: 12px; box-shadow: none !important; }

/* ===== 메일 상세: 제목 줄(제목 + 목록) → 버튼 줄(32px) → 정보 상자 ===== */
body.gw .ml-detail__acts--top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 16px !important; padding: 0 !important; position: static !important; background: none; }
body.gw .ml-detail__acts--top .gw-btn, body.gw .ml-detail__acts--top select[data-cm], body.gw .ml-detail__acts--top .cm-dd__btn { height: 32px !important; min-height: 32px; font-size: 13px !important; margin: 0 !important; }
body.gw .ml-detail__acts--top form { display: inline-flex !important; align-items: center; gap: 6px; margin: 0; }
body.gw .ml-detail__acts--top .ml-detail__lblset { margin-left: auto !important; }
body.gw .ml-detail__acts--top select[data-cm], body.gw .ml-detail__acts--top .cm-dd { width: 130px; min-width: 130px; }
body.gw .ml-detail__meta { display: grid; grid-template-columns: 76px 1fr; row-gap: 8px; column-gap: 12px; padding: 16px 18px !important; border: 1px solid #e5e7eb; border-radius: 10px; background: #fafbfc; font-size: 13.5px; }
body.gw .ml-detail__meta > div { display: contents; }
body.gw .ml-detail__meta b { font-weight: 500; color: #6b7280; }
body.gw .ml-detail__meta span { color: #111827; min-width: 0; overflow-wrap: anywhere; }
body.gw .ml-detail__meta .ml-lblchip { justify-self: start; width: auto; }
@media (max-width: 768px) {
  body.gw .ml-table tr { grid-template-areas: "chk from date" "chk subj star" "chk lbl lbl" !important; }
}
/* 모바일 메일 툴바: 가로 밀기 대신 줄바꿈 — 표와 같은 폭 안에 모두 보이게(버튼 줄 + 라벨 줄) */
@media (max-width: 768px) {
  body.gw .ml-toolbar { flex-wrap: wrap !important; overflow: visible !important; gap: 6px !important; padding-bottom: 0 !important; margin-bottom: 10px; }
  body.gw .ml-toolbar .ml-bulk-label { flex: 1 1 100%; margin-left: 0 !important; display: flex; gap: 6px; }
  body.gw .ml-toolbar .ml-bulk-label .cm-dd, body.gw .ml-toolbar .ml-bulk-label select[data-cm] { flex: 1; width: auto !important; min-width: 0 !important; max-width: none; }
}

/* ===== 모바일 하단 메뉴: 메일·일정·근태·결재·Task + 더보기, 더보기=전체 메뉴 판(아래에서 올라옴) ===== */
.gw-rail__more { display: none; }
@media (max-width: 768px) {
  body.gw .gw-rail { overflow: visible !important; justify-content: space-around; }
  body.gw .gw-rail > a { flex: 1 1 0 !important; }
  body.gw .gw-rail > a:not(.is-mobile-main):not([data-mm]) { display: none !important; }
  body.gw .gw-rail__more { display: flex; flex: 1 1 0; flex-direction: column; align-items: center; gap: 3px; border: 0; background: none; font: inherit; font-size: 10px; color: #6b7280; cursor: pointer; padding: 4px 2px; }
  body.gw .gw-rail__more .gw-rail__ic { width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; }
  body.gw .gw-rail__more svg { width: 20px; height: 20px; }
  /* 펼친 판 */
  body.gw.rail-more-open .gw-rail { position: fixed; left: 8px; right: 8px; bottom: 8px; top: auto; height: auto !important; z-index: 1300; display: grid !important; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 14px 10px 10px; border-radius: 16px; box-shadow: 0 -8px 30px rgba(17,24,39,.18); background: #fff; }
  body.gw.rail-more-open .gw-rail > a { display: flex !important; }
  body.gw.rail-more-open::after { content: ""; position: fixed; inset: 0; background: rgba(15,23,42,.35); z-index: 1250; }
  body.gw.rail-more-open .gw-rail__more { grid-column: 1 / -1; flex-direction: row; justify-content: center; font-size: 12px; padding: 8px 0 0; border-top: 1px solid #eef0f3; margin-top: 4px; }
}
@media (max-width: 768px) {
  body.gw.rail-more-open .gw-rail > a:not(.is-mobile-main):not([data-mm]) { display: flex !important; }
  body.gw.rail-more-open .gw-rail > a { flex: none !important; }
  body.gw.rail-more-open .msg-fab, body.gw.rail-more-open [data-msg-fab], body.gw.rail-more-open .chat-fab { display: none !important; }

  /* 모바일 일정: 보기 전환 한 줄 / 월 표시+이동 한 줄, 위 여백 축소, 칸 안 일정은 작은 제목만 */
  body.gw .gw-main.cal-main { padding: 14px 12px !important; }
  body.gw .cal-toolbar { display: grid !important; grid-template-columns: 1fr auto; grid-template-areas: "views views" "title nav"; row-gap: 10px; align-items: center; margin-bottom: 8px; }
  body.gw .cal-toolbar .cal-views { grid-area: views; width: 100%; display: flex !important; }
  body.gw .cal-toolbar .cal-views .gw-btn { flex: 1; }
  body.gw .cal-toolbar .cal-title, body.gw .cal-toolbar h1, body.gw .cal-toolbar h2 { grid-area: title; font-size: 18px !important; white-space: nowrap; margin: 0; text-align: left; }
  body.gw .cal-toolbar .cal-nav { grid-area: nav; }
  body.gw .cal-cell { height: 92px !important; padding: 4px 3px !important; }
  body.gw .cal-cell__num { font-size: 12px; height: 20px; margin-bottom: 2px; }
  body.gw .cal-cell--today .cal-cell__num { width: 20px; height: 20px; }
  body.gw .cal-week__bars { top: 26px !important; }
  body.gw .cal-ev .cal-ev__time, body.gw .cal-ev__dot, body.gw .cal-ev__attend, body.gw .cal-bar .cal-ev__attend { display: none !important; }
  body.gw .cal-ev, body.gw .cal-bar { font-size: 10px !important; padding: 0 3px !important; height: 18px !important; line-height: 18px; overflow: hidden; white-space: nowrap; text-overflow: clip; }
  body.gw .cal-cell__hol { font-size: 9px; white-space: nowrap; overflow: hidden; }
}
@media (max-width: 768px) { body.gw.rail-more-open .gc-fab { display: none !important; } }
/* 모바일: 상단 바 아래 선 + 메뉴 칩 줄 위 선 겹침 제거 */
@media (max-width: 768px) { body.gw .gw-subnav { border-top: 0 !important; } }

/* 채팅 버튼: 창·팝업보다 아래 층, 창·팝업이 열려 있으면 숨김(내용·버튼 가림 방지) */
body.gw .gc-fab { z-index: 900 !important; }
body.gw:has(.modal:not([hidden]), .ab-modal:not([hidden]), [data-ev-modal]:not([hidden]), [data-detail]:not([hidden]), .lv-modal:not([hidden]), [role="dialog"]:not([hidden]):not(.gc-panel)) .gc-fab { display: none !important; }
/* 모바일 주간·일간 시간표: 좁은 칸에 맞게 — 시간 축 축소, 일정은 제목 한 줄(작게), 스크롤바 숨김 */
@media (max-width: 768px) {
  body.gw .tg-head, body.gw .tg-allday, body.gw .tg-body { grid-template-columns: 34px repeat(var(--tg-cols, 7), minmax(0, 1fr)) !important; }
  body.gw .tg-head__dow { font-size: 10px; }
  body.gw .tg-head__day { font-size: 14px !important; }
  body.gw .tg-hour, body.gw .tg-axis { font-size: 9.5px !important; }
  body.gw .tg-allday { scrollbar-width: none; }
  body.gw .tg-allday::-webkit-scrollbar { display: none; }
  body.gw .tg-allday__axis { font-size: 9.5px; }
  body.gw .tg-allday .cal-bar, body.gw .tg-allday a, body.gw .tg-allday span { font-size: 9.5px !important; }
  body.gw [class*="tg-ev"] { padding: 2px 3px !important; }
  body.gw .tg-ev__time, body.gw .tg-ev__attend { display: none !important; }
  body.gw .tg-ev__title { font-size: 9.5px !important; line-height: 1.25; white-space: nowrap !important; overflow: hidden; text-overflow: ellipsis; display: block; word-break: keep-all; }
}
@media (max-width: 768px) {
  body.gw .tg-head, body.gw .tg-allday, body.gw .tg-body { grid-template-columns: 40px repeat(var(--tg-cols, 7), minmax(0, 1fr)) !important; }
  /* 모바일 일정 목록: 표 대신 카드 — 날짜·시간 / 제목 / 캘린더·장소 */
  body.gw .cal-list-table, body.gw .cal-list-table tbody { display: block; width: 100% !important; min-width: 0 !important; }
  body.gw .cal-list-table colgroup, body.gw .cal-list-table thead { display: none; }
  body.gw .cal-list-table tr { display: grid; grid-template-columns: auto minmax(0,1fr); grid-template-areas: "date time" "title title" "cal loc"; column-gap: 8px; row-gap: 3px; padding: 10px 12px; border-bottom: 1px solid #eef0f3; }
  body.gw .cal-list-table td { display: block; padding: 0 !important; border: 0 !important; height: auto !important; min-width: 0; width: auto !important; font-size: 12.5px; }
  body.gw .cal-list-table td.lt-date { grid-area: date; font-weight: 700; color: #12283f; }
  body.gw .cal-list-table td.lt-date:empty { display: none; }
  body.gw .cal-list-table tr:has(td.lt-date:empty) { grid-template-areas: "time time" "title title" "cal loc"; }
  body.gw .cal-list-table td.lt-time { grid-area: time; color: #6b7280; }
  body.gw .cal-list-table td:nth-child(4) { grid-area: title; font-size: 14px; font-weight: 600; color: #111827; white-space: normal; }
  body.gw .cal-list-table td.lt-cal { grid-area: cal; color: #6b7280; }
  body.gw .cal-list-table td.lt-loc { grid-area: loc; color: #6b7280; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  body.gw .cal-list-table td.lt-by { display: none; }
}
@media (max-width: 768px) { body.gw .cal-list-table tr.is-today { background: #f3f6fb; } body.gw .cal-list-table tr td { background: transparent !important; } }
/* 하단 메뉴(모바일 레일): 링크 전체의 네모 터치·초점 표시 제거 → 아이콘 칸 하나로만 선택 표시, 칸 모양 PC와 동일(둥근 네모) */
body.gw .gw-rail a, body.gw .gw-rail__more { -webkit-tap-highlight-color: transparent; outline: none !important; box-shadow: none !important; background: none !important; }
body.gw .gw-rail a:focus-visible .gw-rail__ic, body.gw .gw-rail__more:focus-visible .gw-rail__ic { outline: 2px solid #12283f; outline-offset: 2px; }
@media (max-width: 768px) {
  body.gw .gw-rail a .gw-rail__ic, body.gw .gw-rail__more .gw-rail__ic { width: 36px !important; height: 30px !important; border-radius: 9px !important; border: 1px solid transparent; background: transparent; }
  body.gw .gw-rail a.is-active .gw-rail__ic { background: #eef2f7 !important; border-color: #d6dde7 !important; }
  body.gw .gw-rail a.is-active { color: #12283f !important; font-weight: 700; }
  body.gw .gw-rail__badge { top: -6px !important; right: -6px !important; }
}
/* 모바일 카드 목록: 마우스 올림 바탕은 카드 전체 한 번(칸별 얼룩 방지) · 미리보기 줄 제목과 정렬 */
@media (max-width: 768px) {
  body.gw .ml-table tbody tr:hover td, body.gw .ml-table tbody tr td { background: transparent !important; }
  body.gw .ml-table tbody tr:hover { background: #f8fafc; }
  body.gw .ml-table tbody tr.ml-unread { background: #fff; }
  body.gw .ml-table .ml-prev { margin-left: 0 !important; padding-left: 0 !important; }
  body.gw .cal-list-table tbody tr:hover td { background: transparent !important; }
  body.gw .cal-list-table tbody tr:hover { background: #f8fafc; }
}
/* 모바일 일간: 하루 칸이 전체 폭(주간용 7칸 규칙 덮어쓰기) */
@media (max-width: 768px) { body.gw .tg--day .tg-head, body.gw .tg--day .tg-allday, body.gw .tg--day .tg-body { grid-template-columns: 40px minmax(0, 1fr) !important; } body.gw .tg--day .tg-ev__time { display: block !important; font-size: 10px; } body.gw .tg--day .tg-ev__title { font-size: 12px !important; white-space: normal !important; } }

/* ===== 모바일 공통: 열 고정 표 → 카드(항목 | 값), 탭 한 줄 가로 밀기, 위쪽 간격 축소 ===== */
@media (max-width: 768px) {
  body.gw .gw-body { gap: 8px !important; }
  body.gw .gw-main { margin-top: 0 !important; }
  body.gw .gw-subnav { padding-top: 6px !important; padding-bottom: 6px !important; }
  body.gw .att-sum { display: flex !important; flex-wrap: nowrap !important; overflow-x: auto; max-width: 100%; scrollbar-width: none; }
  body.gw .att-sum::-webkit-scrollbar { display: none; }
  body.gw .att-sum__chip { flex: none; white-space: nowrap; }
  body.gw table.att-fixed:not(.ml-table):not(.cal-list-table) { display: block; width: 100% !important; min-width: 0 !important; table-layout: auto !important; }
  body.gw table.att-fixed:not(.ml-table):not(.cal-list-table) colgroup, body.gw table.att-fixed:not(.ml-table):not(.cal-list-table) thead { display: none; }
  body.gw table.att-fixed:not(.ml-table):not(.cal-list-table) tbody { display: block; }
  body.gw table.att-fixed:not(.ml-table):not(.cal-list-table) tr { display: block; padding: 10px 14px; border-bottom: 1px solid #eef0f3; }
  body.gw table.att-fixed:not(.ml-table):not(.cal-list-table) td { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 8px; align-items: start; padding: 3px 0 !important; border: 0 !important; height: auto !important; text-align: left !important; font-size: 13px; background: none !important; }
  body.gw table.att-fixed:not(.ml-table):not(.cal-list-table) td::before { content: attr(data-label); color: #9ca3af; font-size: 12px; font-weight: 500; }
  body.gw table.att-fixed:not(.ml-table):not(.cal-list-table) td:first-child { font-weight: 700; color: #111827; }
  body.gw table.att-fixed:not(.ml-table):not(.cal-list-table) td.trash-acts, body.gw table.att-fixed td:has(> form) { display: flex; gap: 6px; flex-wrap: wrap; }
  body.gw table.att-fixed:not(.ml-table):not(.cal-list-table) td.trash-acts::before, body.gw table.att-fixed td:has(> form)::before { display: none; }
  body.gw table.att-fixed tr.trash-empty td, body.gw table.att-fixed tr.trash-empty td::before { display: block; content: none; text-align: center !important; }
  body.gw .ct-tablewrap.att-scroll, body.gw .att-scroll__in { overflow-x: hidden !important; }
}
@media (max-width: 768px) {
  /* 카드 칸: 항목명 왼쪽 고정(절대 위치), 값은 오른쪽에 흐름 — 배지가 늘어나거나 줄바꿈이 항목명 자리로 밀리지 않게 */
  body.gw table.att-fixed:not(.ml-table):not(.cal-list-table) td { display: block !important; position: relative; padding: 4px 0 4px 96px !important; min-height: 22px; line-height: 1.6; }
  body.gw table.att-fixed:not(.ml-table):not(.cal-list-table) td::before { position: absolute; left: 0; top: 4px; width: 88px; }
  body.gw table.att-fixed:not(.ml-table):not(.cal-list-table) td > * { display: inline-flex; vertical-align: middle; margin: 0 4px 4px 0; max-width: 100%; }
  body.gw table.att-fixed:not(.ml-table):not(.cal-list-table) td .lv-refline { display: flex; margin-top: 2px; }
  body.gw table.att-fixed:not(.ml-table):not(.cal-list-table) td.trash-acts, body.gw table.att-fixed td:has(> form) { padding-left: 0 !important; }
  /* 신청 버튼 줄: 한 줄 가로 밀기 */
  body.gw .att-sub-bar { flex-direction: column; align-items: stretch; gap: 8px; }
  body.gw .att-req-bar { flex-wrap: nowrap !important; overflow-x: auto; scrollbar-width: none; }
  body.gw .att-req-bar::-webkit-scrollbar { display: none; }
  body.gw .att-req-bar > * { flex: none; }
  /* 제목 줄: 제목·건수 한 줄, 월 이동은 오른쪽 */
  body.gw [data-att-inline] .gw-head-row { flex-wrap: wrap; gap: 8px; }
  body.gw [data-att-inline] .gw-head-row h1 { font-size: 18px; white-space: nowrap; }
}
@media (max-width: 768px) {
  body.gw .gw-main { margin-top: 10px !important; }
  /* 메일 상세 버튼 줄: 한 줄 가로 밀기 */
  body.gw .ml-detail__acts--top { flex-wrap: nowrap !important; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px !important; }
  body.gw .ml-detail__acts--top::-webkit-scrollbar { display: none; }
  body.gw .ml-detail__acts--top > *, body.gw .ml-detail__acts--top form { flex: none; }
  body.gw .ml-detail__acts--top .ml-detail__lblset { margin-left: 0 !important; }
}
/* 모바일 메일 카드: [중요] 제목 … 📎 한 줄, 미리보기는 다음 줄 */
@media (max-width: 768px) {
  body.gw .ml-table .ml-subj a { display: block !important; white-space: nowrap; overflow: hidden; }
  body.gw .ml-table .ml-subj a > * { vertical-align: middle; }
  body.gw .ml-table .ml-imp-tag, body.gw .ml-table .ml-sched { display: inline-flex !important; margin-right: 4px; }
  body.gw .ml-table .ml-subj__t { display: inline-block; max-width: calc(100% - 64px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  body.gw .ml-table .ml-clip { display: inline-block; margin-left: 4px; font-size: 13px; }
  body.gw .ml-table .ml-prev { display: block; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}
@media (max-width: 768px) {
  /* 상단 메뉴 칩 줄: 위·아래 여백 같게(6px) */
  body.gw .gw-subnav__nav { padding-bottom: 0 !important; }
  /* 근태 제목 줄(모바일): 1줄=제목+건수, 2줄=월(왼쪽) ‹ 오늘 ›(오른쪽) · 위 여백 축소 */
  body.gw .att-hist-head { display: grid !important; grid-template-columns: 1fr auto; grid-template-areas: "title title" "date nav"; row-gap: 8px; align-items: center; margin: 0 -16px 12px !important; padding: 12px 16px !important; }
  body.gw .att-hist-head h1 { grid-area: title; margin: 0; font-size: 18px; }
  body.gw .att-hist-head .att-hist-date { grid-area: date; font-size: 15px; justify-self: start; }
  body.gw .att-hist-head .att-hist-nav { grid-area: nav; display: flex; gap: 6px; }
  body.gw [data-att-inline] > .gw-main { padding: 0 16px 16px !important; }
  body.gw .gw-main > .gw-head-row:first-of-type { margin-left: -16px !important; margin-right: -16px !important; padding: 12px 16px !important; }
}
/* 모바일 본문 제목 줄: 모든 화면 같은 위 여백(카드 위 14px) */
@media (max-width: 768px) {
  body.gw .gw-main, body.gw .gw-main.cal-main:has(> [data-att-inline]:not([hidden])) { padding-top: 0 !important; }
  body.gw .gw-main.cal-main { padding-top: 14px !important; }
  body.gw .gw-main.cal-main:has(> [data-att-inline]:not([hidden])) { padding-top: 0 !important; }
  body.gw .gw-main > .gw-head-row:first-of-type, body.gw [data-att-inline] .gw-head-row:first-of-type { padding-top: 14px !important; padding-bottom: 12px !important; margin-top: 0 !important; }
  body.gw .gw-main > .ml-compose .gw-head-row, body.gw .ml-compose__acts--top { padding-top: 14px !important; }
}

/* ===== 일정 제목 줄: 메일과 같은 gw-head-row(제목·건수 자리에 월, 오른쪽 이동) + 아래 보기 전환 줄 ===== */
body.gw .cal-headrow { flex: none; display: flex !important; align-items: center; justify-content: space-between; margin: -24px -24px 16px !important; padding: 18px 24px !important; border-bottom: 1px solid #eef0f3; }
body.gw .cal-headrow h1 { margin: 0; font-size: 20px; font-weight: 700; }
body.gw .cal-headrow .cal-title { font-size: 15px; font-weight: 600; color: #6b7280; margin-left: 8px; }
body.gw .cal-headrow .cal-nav { display: flex; gap: 6px; }
body.gw .cal-toolbar { display: flex !important; justify-content: flex-start !important; margin-bottom: 14px !important; }
@media (max-width: 768px) {
  body.gw .cal-headrow { margin: -14px -12px 12px !important; padding: 14px 12px 12px !important; }
  body.gw .cal-headrow h1 { font-size: 18px; }
  body.gw .cal-toolbar { display: flex !important; grid-template-areas: none !important; }
  body.gw .cal-toolbar .cal-views { width: 100%; }
}
@media (max-width: 768px) { body.gw .cal-headrow { flex-wrap: nowrap !important; } body.gw .cal-headrow h1 { white-space: nowrap; } body.gw .cal-headrow .cal-nav { width: auto !important; flex: none; } body.gw .cal-headrow .cal-title { font-size: 14px; margin-left: 4px; } }
/* 메일 라벨 줄: 편지함 항목과 같은 좌우 여백(8px)·높이(38px)·선택 바탕 · × 는 투명 바탕 */
body.gw .ml-lbl-tree { padding: 0 8px !important; }
body.gw .ml-lbl-row { min-height: 38px !important; padding-left: 12px; padding-right: 12px !important; }
body.gw .ml-lbl-row .ml-lbl-link { min-height: 38px !important; }
body.gw .ml-lbl-grp { line-height: 38px !important; }
body.gw .ml-lbl-row:has(.ml-lbl-link.is-active) { background: #f1f3f6 !important; }
body.gw .ml-lbl-del { background: transparent !important; right: 10px !important; }
body.gw .ml-lbl-del:hover { background: #fee2e2 !important; }
body.gw .ml-lbl-row { padding-top: 0 !important; padding-bottom: 0 !important; }
/* 모바일 근태(일정 안): 안쪽 여백 이중 제거 — 메일과 같은 카드 여백(12px) */
@media (max-width: 768px) {
  body.gw [data-att-inline] > .gw-main { padding: 0 0 16px !important; }
  body.gw [data-att-inline] .gw-head-row:first-of-type, body.gw [data-att-inline] .att-hist-head { margin: 0 -12px 12px !important; padding: 14px 12px 12px !important; }
}
body.gw .ml-lbl-row { height: 38px; min-height: 38px !important; box-sizing: border-box; }
/* ===== 모바일 본문 카드·제목 줄 기준값(사용자 확정): 카드 좌우 14px, 제목 줄 margin 0 -14px 0 · padding 14px ===== */
@media (max-width: 768px) {
  body.gw .gw-main, body.gw .gw-main.cal-main { padding: 0 14px 14px !important; }
  body.gw .gw-main > .gw-head-row:first-of-type,
  body.gw .gw-main .cal-headrow,
  body.gw [data-att-inline] .gw-head-row:first-of-type,
  body.gw [data-att-inline] .att-hist-head,
  body.gw .ml-compose__acts--top { margin: 0 -14px 0 !important; padding: 14px !important; }
  body.gw [data-att-inline] > .gw-main { padding: 0 0 14px !important; }
  /* 제목 줄 다음 요소는 14px 띄움 */
  body.gw .gw-main > .gw-head-row:first-of-type + *,
  body.gw .gw-main .cal-headrow + *,
  body.gw [data-att-inline] .gw-head-row:first-of-type + * { margin-top: 14px !important; }
}
/* 모바일: 제목 줄 흰 바탕이 카드 둥근 모서리를 덮지 않게 — 카드 모서리 잘라냄(clip 은 sticky 유지) */
@media (max-width: 768px) { body.gw .gw-main { overflow: clip !important; } body.gw .gw-main > .gw-head-row:first-of-type, body.gw .gw-main .cal-headrow, body.gw [data-att-inline] .gw-head-row:first-of-type { border-radius: inherit; border-bottom-left-radius: 0; border-bottom-right-radius: 0; } }
/* 신청 버튼 하나(유형 탭 오른쪽) */
body.gw .att-sub-bar { display: flex !important; flex-direction: row !important; align-items: center; justify-content: space-between; gap: 10px; }
body.gw .att-req-btn { flex: none; height: 36px; padding: 0 16px; border-radius: 8px; font-weight: 700; }
@media (max-width: 768px) {
  body.gw .att-sub-bar { flex-wrap: nowrap; }
  body.gw .att-sub-bar .att-sum { flex: 1 1 auto; min-width: 0; }
  body.gw .att-req-btn { height: 34px; padding: 0 12px; }
  /* 모바일 카드: 행마다 둥근 카드 + 간격(바깥 상자 테두리 없음) */
  body.gw .ct-tablewrap:has(table.att-fixed:not(.ml-table):not(.cal-list-table)) { border: 0 !important; background: none !important; overflow: visible !important; border-radius: 0 !important; }
  body.gw table.att-fixed:not(.ml-table):not(.cal-list-table) tr { border: 1px solid #e5e7eb !important; border-radius: 10px; margin-bottom: 8px; background: #fff; }
  body.gw .ct-tablewrap:has(.ml-table), body.gw .ct-tablewrap:has(.cal-list-table), body.gw .cal-list[data-cal-list] { border: 0 !important; background: none !important; }
  body.gw .ml-table tr, body.gw .cal-list-table tr { border: 1px solid #e5e7eb !important; border-radius: 10px; margin-bottom: 8px; background: #fff; }
}
/* 모바일 일정 쓰기: 일시 = 시작 줄 / 종료 줄 같은 칸 정렬, 종일은 라벨 옆 · 제목 줄 여백 기준값 */
@media (max-width: 768px) {
  body.gw .cal-main > .cal-formview:not([hidden]) { margin: 0 -14px !important; }
  body.gw .cal-formview > .cal-formview__head { padding: 14px !important; }
  body.gw .ev-main, body.gw .ev-aside { padding: 14px !important; }
  body.gw .ev-row--dt { position: relative; }
  body.gw .ev-row--dt .ev-row__field { display: grid !important; grid-template-columns: 34px minmax(0, 1fr) 68px 68px; gap: 6px 6px; align-items: center; }
  body.gw .ev-row--dt .ev-datetime { display: contents !important; }
  body.gw .ev-row--dt .ev-datetime::before { content: "시작"; font-size: 12px; color: #6b7280; margin: 0 !important; }
  body.gw .ev-row--dt .ev-datetime + .ev-datetime::before { content: "종료"; }
  body.gw .ev-row--dt .ev-datetime .cm-date { max-width: none !important; flex: none !important; width: 100%; }
  body.gw .ev-row--dt .ev-datetime .cm-date input { width: 100% !important; }
  body.gw .ev-row--dt .cm-dd, body.gw .ev-row--dt select[data-cm] { min-width: 0 !important; width: 100% !important; }
  body.gw .ev-row--dt .ev-allday { position: absolute; top: 0; right: 0; margin: 0 !important; }
}
@media (max-width: 768px) { body.gw .cal-formview > .cal-formview__head { border-bottom: 1px solid #eef0f3; } body.gw .ev-layout { padding-top: 0 !important; } body.gw .ev-main { padding-top: 6px !important; } }
/* 빠른 일정 쓰기 창: 일정 쓰기와 같은 일시(시작/종료 줄 정렬)·날짜 선택기·버튼 모양 */
body.gw [data-quick-modal] .modal__panel { padding: 22px 22px 18px; }
body.gw [data-quick-modal] .modal__title { margin: 0 0 14px; font-size: 18px; }
body.gw [data-quick-modal] .ev-row { margin-bottom: 12px !important; }
body.gw [data-quick-modal] .ev-row:has([data-qk-sdate]) { position: relative; }
body.gw [data-quick-modal] .ev-row:has([data-qk-sdate]) .ev-row__field { display: grid !important; grid-template-columns: 34px minmax(0,1fr) 72px 72px; gap: 6px; align-items: center; }
body.gw [data-quick-modal] .ev-datetime { display: contents !important; }
body.gw [data-quick-modal] .ev-datetime::before { content: "시작"; font-size: 12px; color: #6b7280; }
body.gw [data-quick-modal] .ev-datetime + .ev-datetime::before { content: "종료"; }
body.gw [data-quick-modal] .ev-datetime .cm-date { width: 100%; max-width: none; flex: none; }
body.gw [data-quick-modal] .ev-datetime .cm-date input { width: 100%; height: 40px; box-sizing: border-box; }
body.gw [data-quick-modal] .ev-datetime .cm-dd, body.gw [data-quick-modal] .ev-datetime select[data-cm] { width: 100% !important; min-width: 0 !important; }
body.gw [data-quick-modal] .ev-allday { position: absolute; top: 0; right: 0; margin: 0 !important; font-size: 13px; }
body.gw [data-quick-modal] .modal__actions { display: flex; align-items: center; gap: 8px; margin-top: 18px; }
body.gw [data-quick-modal] .modal__actions button { height: 40px; padding: 0 16px; border-radius: 8px; font-size: 14px; }
body.gw [data-quick-modal] .qk-more { border: 0 !important; background: none !important; color: #4b5563; padding: 0 4px !important; text-decoration: underline; text-underline-offset: 3px; }
/* 근태 칩 글자 줄바꿈 없이(좁으면 …) */
body.gw .att-cal .att-leave { white-space: nowrap !important; overflow: hidden !important; text-overflow: ellipsis !important; word-break: keep-all; }
/* 퇴근 누락 날짜 카드: 숨긴 라디오가 카드 안에 있도록(밖에 있으면 선택 시 창이 옆으로 스크롤돼 내용이 사라짐) */
body.gw .mo-pick { position: relative; }
body.gw .mo-pick input { left: 8px; top: 8px; width: 1px; height: 1px; margin: 0; }
body.gw .lv-modal, body.gw .modal__panel { overflow-x: clip; }
/* + 신청: 제목 줄 오른쪽 끝(PC) / 제목 옆(모바일) — 유형 탭 줄은 탭만 */
body.gw .att-hist-head .att-req-btn { order: 9; height: 34px; padding: 0 14px; margin-left: 4px; }
@media (min-width: 769px) { body.gw .att-hist-head:has(.att-req-btn) .att-hist-date { margin-left: auto; } }
@media (max-width: 768px) {
  body.gw .att-hist-head:has(.att-req-btn) { grid-template-columns: 1fr auto !important; grid-template-areas: "title btn" "date nav" !important; }
  body.gw .att-hist-head .att-req-btn { grid-area: btn; order: 0; margin: 0; height: 32px; padding: 0 12px; }
}
/* 일정 쓰기 PC: 파일 선택 버튼 줄바꿈 금지 · 반복 설정 전체 폭(장소가 오른쪽 칸으로 간 뒤) */
body.gw .lv-file__btn { white-space: nowrap; flex: none; }
body.gw .lv-file__hint { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
@media (min-width: 1101px) { body.gw .ev-main > .ev-row:has(#ev-recur) { grid-column: 1 / -1 !important; } }
/* 본문 제목 줄 높이 고정(PC 72px) — 검색칸 있는 메일·버튼만 있는 일정 등 모든 화면 동일 */
@media (min-width: 769px) {
  body.gw .gw-main > .gw-head-row:first-of-type, body.gw .cal-headrow, body.gw [data-att-inline] .gw-head-row:first-of-type, body.gw .ml-compose__acts--top {
    height: 72px !important; min-height: 72px; box-sizing: border-box; padding-top: 0 !important; padding-bottom: 0 !important; align-items: center !important; }
}
/* 메신저는 메뉴에서 — 떠 있는 채팅 버튼 숨김(채팅 창·알림은 그대로) */
body.gw .gc-fab { display: none !important; }
.gw-rail__chat { display: flex; flex-direction: column; align-items: center; gap: 4px; border: 0; background: none; font: inherit; font-size: 10.5px; color: #6b7280; cursor: pointer; padding: 6px 0; width: 100%; -webkit-tap-highlight-color: transparent; }
.gw-rail__chat .gw-rail__ic { position: relative; width: 40px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; border: 1px solid #e6e9ee; background: #fff; box-sizing: border-box; }
.gw-rail__chat:hover .gw-rail__ic { background: #f5f7fa; border-color: #d6dde7; }
.gw-rail__chat svg { width: 18px; height: 18px; }
@media (max-width: 768px) {
  body.gw .gw-rail__chat { flex: 1 1 0; font-size: 10px; padding: 4px 2px; gap: 3px; }
  body.gw .gw-rail__chat .gw-rail__ic { width: 36px; height: 30px; border-radius: 9px; border-color: transparent; background: transparent; }
  body.gw.rail-more-open .gw-rail__chat { flex: none; }
}
/* 유형 탭 줄 아래 간격 축소 */
body.gw .att-sub-bar { margin-bottom: 10px !important; }
body.gw .att-sub-bar + * , body.gw .att-sum + .ct-tablewrap, body.gw .att-sum + .att-empty-box { margin-top: 0 !important; }
body.gw [data-att-sum] { margin-bottom: 10px; }
/* 모바일 메일 칩 줄에 라벨도 칩으로(그룹 이름·삭제·접기는 숨기고 라벨 링크만) */
@media (max-width: 768px) {
  body.gw .gw-subnav__sec > .ml-lbl-tree, body.gw .ml-lbl-tree .ml-lbl-row, body.gw .ml-lbl-tree .ml-lbl-children { display: contents !important; }
  body.gw .ml-lbl-tree .ml-lbl-children.is-collapsed { display: contents !important; }
  body.gw .ml-lbl-tree .ml-lbl-toggle, body.gw .ml-lbl-tree .ml-lbl-grp, body.gw .ml-lbl-tree .ml-lbl-del { display: none !important; }
  body.gw .ml-lbl-tree .ml-lbl-link { display: inline-flex !important; min-height: 0 !important; gap: 6px; }
  body.gw .ml-lbl-tree .ml-lbl-cnt { margin-left: 2px; }
}
@media (max-width: 768px) { body.gw .gw-subnav__nav .ml-lbl-tree a.ml-lbl-link { padding: 7px 14px !important; background: #fff !important; } body.gw .gw-subnav__nav .ml-lbl-tree a.ml-lbl-link.is-active { background: #f1f3f6 !important; } }

/* ===== 내 정보: 왼쪽 연락처 정보(섹션·2열) + 하단 저장 고정 | 오른쪽 계정 요약·비밀번호 ===== */
@media (min-width: 769px) {
  body.gw .gw-main.pf-main { display: flex; flex-direction: column; overflow: hidden !important; }
  body.gw .pf-main > .gw-head-row { flex: none; }
  body.gw .pf-layout { flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 340px; margin: 0 -28px -24px; }
  body.gw .pf-form { display: flex !important; flex-direction: column; min-height: 0; gap: 0 !important; }
  body.gw .pf-scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 20px 28px; }
  body.gw .pf-actions { flex: none; display: flex; justify-content: flex-end; padding: 12px 28px; border-top: 1px solid #eef0f3; padding-right: 96px; }
  body.gw .pf-aside { border-left: 1px solid #eef0f3; background: #fafbfc; padding: 20px 24px; overflow-y: auto; display: flex; flex-direction: column; gap: 20px; }
}
body.gw .pf-main .gw-count { font-size: 13px; font-weight: 500; color: #9ca3af; }
body.gw .pf-sec + .pf-sec { margin-top: 24px; padding-top: 20px; border-top: 1px solid #eef0f3; }
body.gw .pf-sec__t { margin: 0 0 14px; font-size: 14px; font-weight: 700; color: #111827; }
body.gw .pf-grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 16px; }
body.gw .pf-grid .ev-row { margin-bottom: 14px !important; }
body.gw .pf-addr { display: grid; grid-template-columns: 140px auto 1fr; gap: 8px; }
body.gw .pf-addr .pf-addr__main { grid-column: 1 / -1; }
body.gw .pf-addr input { height: 40px; box-sizing: border-box; }
body.gw .pf-addr .gw-btn { height: 40px; justify-self: start; }
body.gw .pf-form textarea#pf-memo { min-height: 90px; height: 90px; }
body.gw .pf-card-link { display: inline-block; margin-top: 6px; font-size: 13px; color: #1d4ed8; text-decoration: none; }
body.gw .pf-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 18px; display: grid; grid-template-columns: 52px 1fr; gap: 4px 14px; align-items: center; }
body.gw .pf-card__av { width: 52px; height: 52px; border-radius: 50%; background: #12283f; color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 700; grid-row: span 1; }
body.gw .pf-card__info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
body.gw .pf-card__info b { font-size: 16px; color: #111827; }
body.gw .pf-card__info span { font-size: 13px; color: #4b5563; }
body.gw .pf-card__info em { font-style: normal; font-size: 12.5px; color: #9ca3af; overflow-wrap: anywhere; }
body.gw .pf-card__note { grid-column: 1 / -1; margin: 10px 0 0; padding-top: 10px; border-top: 1px solid #f1f3f6; font-size: 12px; color: #9ca3af; }
body.gw .pf-pw { display: flex !important; flex-direction: column; gap: 0 !important; }
body.gw .pf-pw .ev-row { margin-bottom: 12px !important; }
body.gw .pf-hint { display: block; margin-top: 4px; font-size: 12px; color: #9ca3af; }
body.gw .pf-pw__btn { align-self: stretch; height: 40px; border-radius: 8px; margin-top: 4px; }
body.gw .pf-actions .btn-save { height: 40px; padding: 0 24px; border-radius: 8px; }
@media (max-width: 768px) {
  body.gw .pf-layout { display: flex; flex-direction: column; gap: 14px; margin-top: 14px; }
  body.gw .pf-grid { grid-template-columns: 1fr; }
  body.gw .pf-aside { order: -1; display: flex; flex-direction: column; gap: 14px; }
  body.gw .pf-pw { border: 1px solid #e5e7eb; border-radius: 12px; padding: 16px; }
  body.gw .pf-actions { position: sticky; bottom: 72px; padding: 10px 0; background: #fff; }
  body.gw .pf-actions .btn-save { width: 100%; }
  body.gw .pf-addr { grid-template-columns: 1fr auto; }
}
/* 비밀번호 칸(눈 아이콘 감싸기)도 다른 입력칸과 같은 모양·폭 */
body.gw .ev-form input[type=password] { width: 100%; box-sizing: border-box; height: 40px; border: 1px solid #d9dde3; border-radius: 8px; padding: 0 42px 0 12px; font: inherit; font-size: 14px; background: #fff; }
body.gw .ev-form input[type=password]:focus { outline: none; border-color: #12283f; box-shadow: 0 0 0 3px rgba(18,40,63,.1); }
@media (max-width: 768px) { body.gw .pf-aside { order: 0; } body.gw .pf-aside .pf-card { order: -1; } body.gw .pf-layout > .pf-aside { display: contents; } body.gw .pf-layout .pf-card { order: -1; } body.gw .pf-layout .pf-pw { order: 2; } body.gw .pf-actions { position: static; } }

/* ===== 메신저 창: 메뉴(레일) 옆 왼쪽에서 열림 · 전체 화면 · 모바일은 항상 전체 화면 ===== */
@media (min-width: 769px) {
  body.gw .gc-panel { left: 96px !important; right: auto !important; bottom: 16px !important; top: auto; width: 380px; height: min(640px, calc(100vh - 88px)); border-radius: 14px; box-shadow: 0 12px 40px rgba(17,24,39,.18); }
  body.gw .gc-panel.gc-panel--full { left: 96px !important; right: 16px !important; top: 68px !important; bottom: 16px !important; width: auto !important; height: auto !important; max-width: none !important; max-height: none !important; }
  body.gw .gc-toasts { left: 96px; right: auto; }
}
body.gw .gc-head { display: flex; align-items: center; gap: 4px; }
body.gw .gc-head #gcTitle { flex: 1; }
body.gw .gc-full { display: inline-flex; align-items: center; justify-content: center; }
@media (max-width: 768px) {
  body.gw .gc-panel { position: fixed !important; inset: 0 !important; width: 100% !important; height: 100% !important; max-width: none !important; max-height: none !important; border-radius: 0 !important; border: 0 !important; z-index: 1500 !important; }
  body.gw .gc-full { display: none !important; }
}
/* 메신저 열림 표시: 레일 메신저 칸 선택 상태 */
body.gw:has(#gcPanel:not([hidden])) .gw-rail__chat .gw-rail__ic { background: #eef2f7 !important; border-color: #d6dde7 !important; }
body.gw:has(#gcPanel:not([hidden])) .gw-rail__chat { color: #12283f; font-weight: 700; }

/* ===== 왼쪽 메뉴: 펼침 묶음 제목 줄(개인연락처 등)도 일반 항목과 같은 모양 — 왼쪽 색 막대 금지 · 하위 그룹은 들여쓰기만 ===== */
body.gw .gw-subnav__sechead { margin: 0 8px; border-radius: 8px; border-left: 0 !important; min-height: 38px; padding-right: 6px; }
body.gw .gw-subnav__sechead.is-active { background: #f1f3f6 !important; border-left: 0 !important; }
body.gw .gw-subnav__sechead > a.gw-subnav__head { padding: 0 0 0 12px !important; font-size: 14px !important; font-weight: 500 !important; color: #374151 !important; text-transform: none; letter-spacing: 0; line-height: 38px; background: none !important; }
body.gw .gw-subnav__sechead.is-active > a.gw-subnav__head { color: #111827 !important; font-weight: 700 !important; }
body.gw .gw-subnav__sub-row { margin: 1px 8px !important; border-radius: 8px; min-height: 34px; }
body.gw .gw-subnav__sub-row .gw-subnav__sub { margin: 0 !important; padding: 0 12px 0 26px !important; line-height: 34px; font-size: 13.5px !important; color: #4b5563 !important; background: none !important; }
body.gw .gw-subnav__sub-row:has(.gw-subnav__sub.is-active) { background: #f1f3f6 !important; }
body.gw .gw-subnav__sub-row .gw-subnav__sub.is-active { color: #111827 !important; font-weight: 700; }
body.gw .gw-grp-actions { opacity: 0; transition: opacity .12s; }
body.gw .gw-subnav__sub-row:hover .gw-grp-actions { opacity: 1; }

/* ===== 연락처 목록 ===== */
body.gw .ct-toolbar { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
body.gw .ct-toolbar .gw-btn { height: 32px; padding: 0 12px; font-size: 13px; }
body.gw .ct-toolbar__right { margin-left: auto; display: flex; gap: 6px; }
body.gw .contact-table .td-name { display: flex; align-items: center; gap: 8px; font-weight: 600; color: #111827; }
body.gw .contact-table .td-name__t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.gw .contact-table td a[href^="mailto:"] { color: #374151; text-decoration: none; }
body.gw .contact-table td a[href^="mailto:"]:hover { color: #1d4ed8; text-decoration: underline; }
body.gw .contact-table td, body.gw .members-table td { height: 46px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.gw .contact-table .td-manage { text-align: right; white-space: nowrap; }
body.gw .contact-table .link-btn { color: #6b7280; font-size: 13px; }
body.gw .contact-table .link-btn:hover { color: #111827; }
@media (min-width: 769px) {
  body.gw .gw-main:has(> [data-list-view]) { display: flex; flex-direction: column; overflow: hidden !important; }
  body.gw .gw-main:has(> [data-list-view]) > * { flex: none; }
  body.gw .gw-main > [data-list-view] { flex: 1 1 auto !important; min-height: 0; display: flex; flex-direction: column; }
  body.gw [data-list-view] > .ct-tablewrap.att-scroll { flex: 1 1 auto; min-height: 0; overflow: hidden !important; display: flex; flex-direction: column; }
}
/* 가져오기 창 */
body.gw .imp-panel { width: min(560px, calc(100vw - 32px)); padding: 0 !important; }
body.gw .imp-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid #eef0f3; font-size: 16px; }
body.gw .imp-head .modal__close { position: static; }
body.gw .cm-import--modal { display: grid !important; grid-template-columns: 1fr; gap: 10px; padding: 18px 20px 20px !important; border: 0 !important; background: none !important; margin: 0 !important; }
body.gw .cm-import--modal .cm-import__lbl { display: none; }
body.gw .cm-import--modal .cm-import__hint { order: -1; font-size: 13px; color: #6b7280; line-height: 1.6; }
body.gw .cm-import--modal button[type=submit] { justify-self: end; height: 38px; padding: 0 20px; }
@media (max-width: 768px) {
  body.gw .ct-toolbar__right { margin-left: 0; width: 100%; }
  body.gw .ct-toolbar { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  body.gw .ct-toolbar > *, body.gw .ct-toolbar__right { flex: none; width: auto; }
  body.gw .gw-head-tools .gw-pagesize, body.gw .gw-head-tools .cm-dd:has(+ .gw-pagesize), body.gw .gw-head-tools select[data-page-size] + .cm-dd { display: none !important; }
}
/* 연락처 이름 칸: td 는 표 칸 그대로, 안쪽만 가로 정렬 */
body.gw .contact-table td.td-name { display: table-cell !important; }
body.gw .contact-table td.td-name > * { vertical-align: middle; }
body.gw .contact-table td.td-name .ml-avatar { display: inline-flex !important; margin-right: 8px; }
@media (max-width: 768px) {
  body.gw table.att-fixed:not(.ml-table):not(.cal-list-table) td { width: auto !important; max-width: none !important; height: auto !important; white-space: normal !important; overflow: visible !important; }
  body.gw table.att-fixed:not(.ml-table):not(.cal-list-table) td.td-check, body.gw table.att-fixed td.td-check { display: none !important; }
  body.gw .contact-table td.td-name { display: block !important; font-size: 15px; }
  body.gw .contact-table td.td-name::before { display: none; }
  body.gw .contact-table td.td-name { padding-left: 0 !important; }
}
@media (max-width: 768px) {
  body.gw table.att-fixed.contact-table td.td-name { padding-left: 0 !important; }
  body.gw table.att-fixed.contact-table td.td-manage { padding-left: 0 !important; text-align: left !important; }
  body.gw table.att-fixed.contact-table td.td-manage::before { display: none; }
  /* 모바일 칩 줄: 묶음 제목(개인연락처·공용연락처)과 하위 그룹도 칩으로 */
  body.gw .gw-subnav__nav .gw-subnav__sechead { display: contents !important; }
  body.gw .gw-subnav__nav .gw-subnav__sechead > a.gw-subnav__head { display: inline-flex !important; line-height: normal; }
  body.gw .gw-subnav__nav .gw-subnav__sechead > button, body.gw .gw-subnav__nav .gw-grp-actions { display: none !important; }
  body.gw .gw-subnav__sec > .gw-subnav__sub-row { display: contents !important; }
  body.gw .gw-subnav__sub-row > a.gw-subnav__sub { line-height: normal !important; padding: 7px 14px !important; }
}
@media (max-width: 768px) { body.gw .gw-subnav__nav .gw-subnav__sechead > a.gw-subnav__head { padding: 7px 14px !important; border: 1px solid #e5e7eb !important; border-radius: 999px !important; background: #fff !important; font-size: 13px !important; font-weight: 500 !important; flex: none; white-space: nowrap; } body.gw .gw-subnav__nav .gw-subnav__sechead.is-active > a.gw-subnav__head { border-color: #12283f !important; font-weight: 700 !important; } }
/* 연락처 추가·수정: 두 칸 배치(그룹·주소·메모·명함은 한 줄 전체), 하단 버튼, 목록 페이지 번호 숨김 */
body.gw .gw-main:has([data-form-view]:not([hidden])) [data-pager] { display: none !important; }
@media (min-width: 769px) {
  body.gw .gw-main:has([data-form-view]:not([hidden])) { overflow-y: auto !important; display: block; }
  body.gw [data-form-view] .contact-edit__form { display: grid !important; grid-template-columns: 1fr 1fr; column-gap: 16px; max-width: 880px; }
  body.gw [data-form-view] .contact-edit__form > .ev-row { margin-bottom: 14px !important; }
  body.gw [data-form-view] .contact-edit__form > .ev-row:has([data-cm-dd]),
  body.gw [data-form-view] .contact-edit__form > .ev-row:has(.cm-addr),
  body.gw [data-form-view] .contact-edit__form > .ev-row:has(#cm-memo),
  body.gw [data-form-view] .contact-edit__form > .ev-row:has(.cm-fav),
  body.gw [data-form-view] .contact-edit__form > .contact-edit__actions { grid-column: 1 / -1; }
}
body.gw [data-form-view] .cm-addr { display: flex; gap: 8px; margin-bottom: 8px; }
body.gw [data-form-view] .cm-addr input { max-width: 160px !important; }
body.gw [data-form-view] .ev-row__field > input[name=address] { margin-bottom: 8px; }
body.gw [data-form-view] textarea#cm-memo { min-height: 90px; }
body.gw [data-form-view] .contact-edit__actions { display: flex; justify-content: flex-end; gap: 8px; padding-top: 14px; border-top: 1px solid #eef0f3; margin-top: 4px; }
body.gw [data-form-view] .contact-edit__actions button { height: 40px; padding: 0 20px; border-radius: 8px; }
body.gw [data-form-view] .cm-dd { max-width: 320px; }
body.gw [data-list-view][hidden], body.gw [data-list-view-tool][hidden] { display: none !important; }
body.gw .lv-days { color: #6b7280; font-size: 12.5px; margin-left: 4px; white-space: nowrap; }

/* ===== 결재 진행: 테두리 알약 대신 한 줄 흐름 "정민수 승인 › 김성호 대기" (상태는 글자색 + 점) ===== */
body.gw .lv-step { display: inline-flex !important; align-items: center; gap: 4px; padding: 0 !important; margin: 0 !important; border: 0 !important; background: none !important; border-radius: 0 !important; box-shadow: none !important; font-size: 13px; color: #374151; white-space: nowrap; }
body.gw .lv-step + .lv-step::before { content: "›"; color: #c4c9d1; margin: 0 6px 0 4px; font-size: 14px; }
body.gw .lv-step > b { display: none !important; }
body.gw .lv-step > span { font-weight: 500; color: #111827; }
body.gw .lv-step > em { font-style: normal; font-size: 12px; font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
body.gw .lv-step > em::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
body.gw .lv-step--승인 > em { color: #047857; }
body.gw .lv-step--반려 > em { color: #b91c1c; }
body.gw .lv-step--대기 > em, body.gw .lv-step.is-current > em { color: #b45309; }
body.gw .lv-step.is-current > span { font-weight: 700; }
body.gw .lv-step:not(.is-current).lv-step--대기 { opacity: .6; }
body.gw .lv-refline { margin-top: 4px !important; font-size: 12.5px; color: #6b7280; }
body.gw .lv-refline > span { background: none !important; padding: 0 !important; margin-right: 4px !important; color: #9ca3af !important; font-weight: 500 !important; }
/* 결재 진행: 이름 직책 [상태 뱃지] › … */
body.gw .lv-step { gap: 5px !important; }
body.gw .lv-step__pos { font-size: 12px; color: #6b7280; font-weight: 400; }
body.gw .lv-step > em { padding: 1px 7px; border-radius: 4px; font-size: 11.5px !important; line-height: 1.6; }
body.gw .lv-step > em::before { display: none !important; }
body.gw .lv-step--승인 > em { background: #ecfdf5; color: #047857 !important; }
body.gw .lv-step--반려 > em { background: #fef2f2; color: #b91c1c !important; }
body.gw .lv-step--대기 > em, body.gw .lv-step.is-current > em { background: #fffbeb; color: #b45309 !important; }
body.gw .lv-step:not(.is-current).lv-step--대기 > em { background: #f3f4f6; color: #6b7280 !important; }
body.gw .lv-step:not(.is-current).lv-step--대기 { opacity: 1; }
/* 결재 진행: 이름 직책 [상태 뱃지] › … */
body.gw .lv-step { gap: 5px !important; }
body.gw .lv-step__pos { font-size: 12px; color: #6b7280; font-weight: 400; }
body.gw .lv-step > em { padding: 1px 7px; border-radius: 4px; font-size: 11.5px !important; line-height: 1.6; }
body.gw .lv-step > em::before { display: none !important; }
body.gw .lv-step--승인 > em { background: #ecfdf5; color: #047857 !important; }
body.gw .lv-step--반려 > em { background: #fef2f2; color: #b91c1c !important; }
body.gw .lv-step--대기 > em, body.gw .lv-step.is-current > em { background: #fffbeb; color: #b45309 !important; }
body.gw .lv-step:not(.is-current).lv-step--대기 > em { background: #f3f4f6; color: #6b7280 !important; }
body.gw .lv-step:not(.is-current).lv-step--대기 { opacity: 1; }
body.gw .lv-step > span { font-weight: 600 !important; } body.gw .lv-step.is-current > span { font-weight: 700 !important; }
/* 상태 뱃지 글자 세로 가운데 */
body.gw .lv-step > em { display: inline-flex !important; align-items: center; justify-content: center; height: 20px; padding: 0 7px !important; line-height: 1 !important; box-sizing: border-box; }
body.gw .lv-step { align-items: center !important; line-height: 20px; }
body.gw .lv-step__pos { line-height: 20px; }

/* ===== 규칙: 제목 줄 아래 툴바 줄 위치·높이 통일(PC) — 제목 줄 아래 18px, 높이 36px, 표·달력까지 14px ===== */
@media (min-width: 769px) {
  body.gw .gw-main .gw-toolbar, body.gw .gw-main .cal-toolbar, body.gw .gw-main .att-sub-bar,
  body.gw .gw-main > [data-att-sum], body.gw [data-att-inline] .gw-main > [data-att-sum], body.gw .trash-main > .att-sum {
    margin: 18px 0 14px !important; min-height: 36px; align-items: center; }
  body.gw .gw-main .gw-head-row + .gw-toolbar, body.gw .gw-main .ml-listform > .gw-toolbar { margin-top: 18px !important; }
  body.gw .gw-main .ml-listform > .gw-toolbar { margin-top: 18px !important; }
  body.gw .gw-toolbar .gw-btn, body.gw .gw-toolbar select[data-cm], body.gw .gw-toolbar .cm-dd__btn, body.gw .att-req-btn,
  body.gw .cal-views .gw-btn, body.gw .att-sum__chip { height: 36px !important; min-height: 36px; box-sizing: border-box; }
  body.gw .att-sum__chip { display: inline-flex; align-items: center; padding-top: 0 !important; padding-bottom: 0 !important; }
  body.gw .att-sub-bar > [data-att-sum], body.gw .att-sub-bar > .att-sum { margin: 0 !important; }
  body.gw .gw-toolbar .gw-btn { padding: 0 14px; font-size: 13.5px; border-radius: 8px; }
  body.gw .ml-toolbar .ml-bulk-label { margin-left: 0 !important; display: inline-flex; gap: 6px; align-items: center; }
}
body.gw .trash-note { font-size: 12.5px; color: #9ca3af; }
body.gw .gw-toolbar { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
@media (min-width: 769px) {
  body.gw .gw-main .gw-toolbar, body.gw .gw-main .cal-toolbar, body.gw .gw-main .att-sub-bar,
  body.gw .gw-main > [data-att-sum], body.gw [data-att-inline] .gw-main > [data-att-sum], body.gw .trash-main > .att-sum,
  body.gw .gw-main .ml-listform > .gw-toolbar, body.gw .gw-main .gw-head-row + .gw-toolbar { margin-top: 0 !important; }
  body.gw .att-sum, body.gw .cal-views { height: 36px; box-sizing: border-box; overflow: hidden; }
  body.gw .att-sum__chip, body.gw .cal-views .gw-btn { height: 34px !important; min-height: 34px !important; }
}
@media (min-width: 769px) { body.gw .ml-toolbar { justify-content: flex-start !important; } body.gw .ml-toolbar > .gw-btn:first-child { margin-left: 0 !important; } }
/* 메일 툴바 = 연락처와 같은 구조: 왼쪽 일괄 버튼, 오른쪽 라벨 지정 */
@media (min-width: 769px) { body.gw .ml-toolbar .ct-toolbar__right { margin-left: auto !important; } }
/* 모바일 카드 수정·삭제: 같은 높이 작은 버튼 */
@media (max-width: 768px) {
  body.gw .contact-table td.td-manage { display: flex !important; gap: 6px; align-items: center; padding-top: 8px !important; }
  body.gw .contact-table td.td-manage .link-sep { display: none; }
  body.gw .contact-table td.td-manage form { display: inline-flex !important; margin: 0; }
  body.gw .contact-table td.td-manage .link-btn { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border: 1px solid #e5e7eb; border-radius: 6px; background: #fff; font-size: 13px; color: #374151; line-height: 1; box-sizing: border-box; }
}
@media (max-width: 768px) { body.gw table.att-fixed.contact-table td.td-manage .link-sep { display: none !important; } }
/* 메일 툴바 = 연락처 툴바와 완전히 같게(옛 ml-toolbar 여백 제거) */
@media (min-width: 769px) { body.gw .gw-toolbar.ml-toolbar { padding: 0 !important; border: 0 !important; background: none !important; } }
/* 제목 줄 도구(검색칸·검색 버튼·개수 선택) 모두 36px */
@media (min-width: 769px) { body.gw .gw-head-tools .gw-search, body.gw .gw-head-tools .gw-btn, body.gw .gw-head-tools select[data-cm], body.gw .gw-head-tools .cm-dd__btn { height: 36px !important; min-height: 36px; box-sizing: border-box; } body.gw .gw-head-tools .gw-btn { padding: 0 14px; border-radius: 8px; } }
/* 모바일 툴바(메일·연락처 등 공통): 한 줄, 왼쪽부터, 옆으로 밀기 */
@media (max-width: 768px) {
  body.gw .gw-toolbar { flex-wrap: nowrap !important; overflow-x: auto; justify-content: flex-start !important; gap: 6px !important; scrollbar-width: none; padding: 0 !important; margin: 14px 0 10px !important; }
  body.gw .gw-toolbar::-webkit-scrollbar { display: none; }
  body.gw .gw-toolbar > *, body.gw .gw-toolbar .ct-toolbar__right { flex: none !important; width: auto !important; margin-left: 0 !important; }
  body.gw .gw-toolbar .ct-toolbar__right { display: inline-flex !important; gap: 6px; }
  body.gw .gw-toolbar .ml-bulk-label .cm-dd, body.gw .gw-toolbar .ml-bulk-label select[data-cm] { flex: none !important; width: 120px !important; }
  body.gw .gw-toolbar .gw-btn, body.gw .gw-toolbar .cm-dd__btn { height: 34px !important; white-space: nowrap; }
}
/* 모바일 상단 칩 줄: 모든 칩 높이 36px 고정(라벨 칩·그룹 칩·묶음 제목 칩 포함) → 칩 줄 높이 모든 화면 동일 */
@media (max-width: 768px) {
  body.gw .gw-subnav__nav a, body.gw .gw-subnav__nav .gw-subnav__sechead > a.gw-subnav__head,
  body.gw .gw-subnav__nav .ml-lbl-tree a.ml-lbl-link, body.gw .gw-subnav__sub-row > a.gw-subnav__sub {
    height: 36px !important; min-height: 36px !important; box-sizing: border-box !important; display: inline-flex !important; align-items: center !important;
    padding-top: 0 !important; padding-bottom: 0 !important; line-height: 1 !important; }
  body.gw .gw-subnav__nav .ml-lbl-tree .ml-lbl-cnt, body.gw .gw-subnav__nav .ml-fld-badge { height: 18px; min-height: 0; line-height: 18px; }
}
/* 검색칸 옆 [검색]: 검색칸과 같은 높이·글자(PC 36 / 모바일 40) */
body.gw .gw-head-tools .ml-search-btn { height: 36px !important; font-size: 13.5px !important; padding: 0 14px !important; flex: none; }
@media (max-width: 768px) {
  body.gw .gw-head-tools { display: flex !important; flex-wrap: nowrap !important; gap: 6px; }
  body.gw .gw-head-tools .gw-search { flex: 1 1 auto; min-width: 0; height: 40px !important; }
  body.gw .gw-head-tools .ml-search-btn { height: 40px !important; font-size: 14px !important; padding: 0 16px !important; }
}
/* 버튼 글자 세로 가운데 통일: 모든 gw-btn 은 flex 가운데 정렬·line-height 1 (button·a·label 차이 제거) */
body.gw .gw-btn, body.gw .cm-dd__btn, body.gw .gw-search { box-sizing: border-box; }
body.gw .gw-btn { display: inline-flex !important; align-items: center !important; justify-content: center; line-height: 1 !important; padding-top: 0 !important; padding-bottom: 0 !important; vertical-align: middle; }
body.gw .cm-dd__btn { display: flex; align-items: center; line-height: 1; }
body.gw .gw-search { line-height: normal; padding-top: 0 !important; padding-bottom: 0 !important; }
/* 모바일 메일 툴바 옆으로 밀기(옛 overflow:visible 덮기) */
@media (max-width: 768px) { body.gw .gw-toolbar.ml-toolbar { overflow-x: auto !important; overflow-y: hidden !important; flex-wrap: nowrap !important; } }

/* ===== 메일 환경설정: 제목 줄 → 묶음 탭(툴바 자리) → 한 묶음만, 내용만 스크롤 · 저장 버튼은 묶음 아래 ===== */
body.gw .mset-tabs { margin: 18px 0 14px !important; }
@media (min-width: 769px) {
  body.gw .gw-main:has(> .mset-body) { display: flex; flex-direction: column; overflow: hidden !important; }
  body.gw .gw-main:has(> .mset-body) > * { flex: none; }
  body.gw .gw-main > .mset-body { flex: 1 1 auto !important; min-height: 0; overflow-y: auto; margin: 0 -28px -24px; padding: 4px 28px 24px; }
}
body.gw .mset[hidden] { display: none !important; }
body.gw .mset { max-width: 760px; }
/* 설정 줄: 왼쪽 항목명(보통 굵기) | 오른쪽 값·설명 */
body.gw .mset .sec-row { display: grid !important; grid-template-columns: 180px minmax(0, 1fr); gap: 16px; align-items: start; padding: 16px 0 !important; border-bottom: 1px solid #f1f3f6 !important; margin: 0 !important; }
body.gw .mset .sec-row:first-of-type { padding-top: 4px !important; }
body.gw .mset .sec-row__label { font-size: 14px !important; font-weight: 600 !important; color: #111827; line-height: 40px; padding: 0 !important; }
body.gw .mset .sec-row__field { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; min-height: 40px; }
body.gw .mset .sec-row__field .cm-dd, body.gw .mset .sec-row__field select[data-cm] { width: 220px !important; }
body.gw .mset .sec-hint { flex-basis: 100%; margin: 0 !important; font-size: 12.5px; color: #9ca3af; }
body.gw .mset .sec-radio { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: #374151; cursor: pointer; }
body.gw .mset .sec-radio input { width: 16px; height: 16px; margin: 0; accent-color: #12283f; }
body.gw .mset .sec-actions, body.gw .mset .ml-compose__acts { display: flex; justify-content: flex-start; padding-top: 18px !important; margin: 0 !important; border: 0 !important; }
/* 설명 글 · 추가 줄 · 표 */
body.gw .mset .tk-desc { margin: 0 0 14px !important; font-size: 13px; color: #6b7280; }
body.gw .mset.ml-filters { padding: 0 !important; border: 0 !important; margin: 0 !important; background: none !important; }
body.gw .mset .ml-filter-add, body.gw .mset form.ml-filter-add { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
body.gw .mset .ml-filter-input, body.gw .mset input[type=email], body.gw .mset .ml-filter-add .cm-dd { height: 40px; box-sizing: border-box; }
body.gw .mset .ml-filter-input { padding: 0 12px; border: 1px solid #d9dde3; border-radius: 8px; font: inherit; font-size: 14px; min-width: 240px; }
body.gw .mset .ml-filter-add .cm-dd, body.gw .mset .ml-filter-add select[data-cm] { width: 200px !important; }
body.gw .mset .ml-filter-add .gw-btn, body.gw .mset .mb-table .gw-btn { height: 40px !important; }
body.gw .mset .mb-table .gw-btn { height: 34px !important; }
body.gw .mset .mb-table { border: 1px solid #e5e7eb; border-radius: 10px; overflow: clip; border-collapse: separate; border-spacing: 0; width: 100%; }
body.gw .mset .mb-table th { background: #f8f9fb; font-size: 12.5px; font-weight: 600; color: #6b7280; padding: 10px 12px; border-bottom: 1px solid #e5e7eb; text-align: left; }
body.gw .mset .mb-table td { padding: 8px 12px; border-bottom: 1px solid #f1f3f6; font-size: 14px; }
body.gw .mset .mb-table tbody tr:last-child td { border-bottom: 0; }
body.gw .mset[data-mset="box"] .mb-table + * , body.gw .mset [data-lbl-add] { margin-top: 12px; }
body.gw .mset .ml-sign-toggle { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; }
body.gw .mset .ml-sign-toggle input { width: 16px; height: 16px; accent-color: #12283f; }
body.gw .mset .ml-vac__row { display: flex; align-items: center; gap: 8px; }
body.gw .mset .ml-vac__row .cm-date { width: 180px; }
body.gw .mset[data-mset="sign"] { max-width: 900px; }
@media (max-width: 768px) {
  body.gw .mset-tabs { margin: 14px 0 10px !important; }
  body.gw .mset .sec-row { grid-template-columns: 1fr; gap: 6px; }
  body.gw .mset .sec-row__label { line-height: 1.4; }
  body.gw .mset .sec-row__field .cm-dd, body.gw .mset .sec-row__field select[data-cm] { width: 100% !important; }
  body.gw .mset .ml-filter-input { min-width: 0; flex: 1 1 100%; }
  body.gw .mset .mb-table { display: block; overflow-x: auto; }
}
body.gw .mset[data-mset="box"] .mb-table input.ml-filter-input { min-width: 0 !important; width: 100% !important; }
body.gw .mset[data-mset="box"] .mb-table td { vertical-align: middle; }
/* 모바일 카드 선택 표시 */
@media (max-width: 768px) {
  body.gw table.att-fixed tbody tr { cursor: pointer; transition: border-color .12s, background .12s; }
  body.gw table.att-fixed tbody tr.is-picked { border-color: #12283f !important; box-shadow: inset 0 0 0 1px #12283f; background: #f5f8fc !important; }
  body.gw table.att-fixed tbody tr.is-picked td { background: transparent !important; }
}
/* 제목 옆 선택 개수 */
body.gw .gw-selcount { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; margin-left: 8px; border-radius: 999px; background: #12283f; color: #fff; font-size: 12px; font-weight: 600; vertical-align: middle; }
body.gw .gw-selcount[hidden] { display: none; }
/* 선택 개수 뱃지 = 버튼: 누르면 선택한 행만 보기 */
body.gw button.gw-selcount { border: 1px solid #12283f; cursor: pointer; font-family: inherit; line-height: 1; }
body.gw button.gw-selcount.is-on { background: #fff; color: #12283f; }
body.gw.gw-only-picked .gw-main table tbody tr:has([data-row-check]):not(:has([data-row-check]:checked)) { display: none !important; }
/* 연락처 가져오기 창: 1·2·3 단계 */
body.gw .imp-panel { overflow: visible !important; max-height: none !important; }
body.gw .imp-form { padding: 8px 20px 0; }
body.gw .imp-step { display: grid; grid-template-columns: 28px minmax(0,1fr) auto; gap: 12px; align-items: start; padding: 16px 0; border-bottom: 1px solid #f1f3f6; }
body.gw .imp-step__n { width: 26px; height: 26px; border-radius: 50%; background: #eef2f7; color: #12283f; font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
body.gw .imp-step__body { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
body.gw .imp-step__body b { font-size: 14px; color: #111827; line-height: 26px; }
body.gw .imp-step__body p { margin: 0; font-size: 12.5px; color: #6b7280; }
body.gw .imp-step > .gw-btn { margin-top: 0; }
body.gw .imp-step .cm-dd, body.gw .imp-step select[data-cm] { width: 100% !important; }
body.gw .imp-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 0 18px; }
body.gw .imp-foot .gw-btn { height: 40px !important; padding: 0 18px; }
/* 예약 발송 시각 선택: 목록의 "예약" 뱃지(.ml-sched) 굵은 글씨·색 상속 끊기 */
/* 쓰기 화면 예약 칸(.ml-compose .ml-sched)은 목록 "예약" 뱃지 스타일 아님 */
body.gw .ml-compose .ml-sched { font-weight: 400 !important; background: none !important; color: inherit !important; font-size: 14px !important; padding: 0 !important; border-radius: 0 !important; margin-right: 0 !important; }
body.gw .ml-compose .ml-sched .cm-dd__opt.is-sel { font-weight: 700 !important; }
/* 체크박스: 전역 18px 규격 그대로(설정 화면에서 16px 로 줄여 체크 표시가 어긋나던 것) */
body.gw .mset .ml-sign-toggle input, body.gw .mset input[type=checkbox] { width: 18px !important; height: 18px !important; flex: 0 0 18px; accent-color: auto; }
body.gw .ml-sign-toggle { display: inline-flex; align-items: center; gap: 8px; font-size: 14px !important; font-weight: 500 !important; color: #374151; cursor: pointer; }
/* 서명 여러 개: 왼쪽 목록 | 오른쪽 편집 */
body.gw .sig-form.mset { max-width: 1040px; }
body.gw .sig-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
body.gw .sig-top .tk-desc { margin: 0 !important; }
body.gw .sig-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 16px; align-items: start; }
body.gw .sig-list { display: flex; flex-direction: column; gap: 4px; border: 1px solid #e5e7eb; border-radius: 10px; padding: 6px; }
body.gw .sig-item, body.gw .sig-add { display: flex; align-items: center; justify-content: space-between; gap: 6px; height: 38px; padding: 0 12px; border: 0; border-radius: 8px; background: none; font: inherit; font-size: 14px; color: #374151; cursor: pointer; text-align: left; }
body.gw .sig-item:hover, body.gw .sig-add:hover { background: #f5f7fa; }
body.gw .sig-item.is-active, body.gw .sig-add.is-active { background: #f1f3f6; color: #111827; font-weight: 700; }
body.gw .sig-item__nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.gw .sig-item__def { flex: none; height: 20px; padding: 0 7px; border-radius: 4px; background: #12283f; color: #fff; font-size: 11px; font-weight: 600; display: inline-flex; align-items: center; }
body.gw .sig-add { color: #6b7280; border-top: 1px solid #f1f3f6; border-radius: 0 0 8px 8px; margin-top: 2px; }
body.gw .sig-edit { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
body.gw .sig-name { height: 40px; padding: 0 12px; border: 1px solid #d9dde3; border-radius: 8px; font: inherit; font-size: 14px; }
body.gw .sig-acts { display: flex; align-items: center; gap: 8px; }
body.gw .sig-acts__sp { flex: 1; }
body.gw .sig-acts .gw-btn { height: 40px !important; padding: 0 18px; }
body.gw .ml-sigpick .cm-dd, body.gw .ml-sigpick select[data-cm] { width: 220px !important; }
@media (max-width: 768px) {
  body.gw .sig-top { flex-direction: column; align-items: flex-start; }
  body.gw .sig-layout { grid-template-columns: 1fr; }
  body.gw .sig-list { flex-direction: row; overflow-x: auto; }
  body.gw .sig-item, body.gw .sig-add { flex: none; }
}

/* ===== 메신저 전체 화면(PC) = 메신저 메뉴 화면: 왼쪽 목록(340) | 오른쪽 대화 — 본문 카드처럼 꽉 채움 ===== */
@media (min-width: 769px) {
  body.gw .gc-panel.gc-panel--full { left: 96px !important; right: 16px !important; top: 68px !important; bottom: 16px !important; border-radius: 16px !important; box-shadow: none !important; border: 1px solid #e6e9ee !important; }
  body.gw .gc-panel--full .gc-head { height: 72px; box-sizing: border-box; padding: 0 24px !important; font-size: 20px; border-bottom: 1px solid #eef0f3; }
  body.gw .gc-panel--full .gc-tabs, body.gw .gc-panel--full > .gc-body { width: 340px; box-sizing: border-box; border-right: 1px solid #eef0f3; }
  body.gw .gc-panel--full > .gc-body { flex: 1 1 auto; }
  body.gw .gc-panel--full .gc-tabs { padding: 8px 12px; }
  body.gw .gc-panel--full .gc-room { left: 340px !important; top: 72px !important; border-left: 1px solid #eef0f3; z-index: 2; }
  body.gw .gc-panel--full .gc-room .gc-back { display: none; }
  body.gw .gc-panel--full::after { content: "왼쪽에서 대화를 고르거나, [직원] 탭에서 대화를 시작하세요."; position: absolute; left: 340px; right: 0; top: 72px; bottom: 0; display: flex; align-items: center; justify-content: center; color: #9ca3af; font-size: 14px; background: #fafbfc; z-index: 1; pointer-events: none; }
  body.gw .gc-panel--full .gc-item { padding-left: 18px; padding-right: 18px; }
}
/* 접속 중 표시 */
body.gw .gc-item { position: relative; }
body.gw .gc-on { margin-left: auto; flex: none; font-size: 11.5px; font-weight: 600; color: #047857; background: #ecfdf5; padding: 2px 8px; border-radius: 999px; }
/* 메신저 전체 화면: 탭을 바꿔도 머리·목록 모양 고정 */
@media (min-width: 769px) {
  body.gw .gc-panel--full { display: flex; flex-direction: column; }
  body.gw .gc-panel--full .gc-head { flex: none; }
  body.gw .gc-panel--full .gc-tabs { flex: none; height: 52px; }
  body.gw .gc-panel--full > .gc-body { overflow-y: auto; scrollbar-gutter: stable; }
  /* 새 그룹·참가자 화면은 뒤로(‹) 버튼 보이게 — 대화방만 숨김 */
  body.gw .gc-panel--full #gcGroup .gc-back, body.gw .gc-panel--full #gcMembers .gc-back { display: inline-flex !important; }
  body.gw .gc-panel--full #gcGroup, body.gw .gc-panel--full #gcMembers { z-index: 3; }
  body.gw .gc-panel--full .gc-item.is-cur { background: #f1f3f6; }
}
/* 메신저 2단 선 정리: 가운데 세로선 하나(목록 쪽만), 탭 줄·대화 머리 같은 높이(52, 아래 선 한 줄), 목록 오른쪽 빈칸 제거 */
@media (min-width: 769px) {
  body.gw .gc-panel--full .gc-room { border-left: 0 !important; }
  body.gw .gc-panel--full .gc-room .gc-rhead { height: 52px; box-sizing: border-box; padding-top: 0; padding-bottom: 0; display: flex; align-items: center; }
  body.gw .gc-panel--full .gc-tabs { box-sizing: border-box; }
  body.gw .gc-panel--full > .gc-body { scrollbar-gutter: auto !important; scrollbar-width: thin; }
}
/* 메신저 입력 줄: 아이콘·입력칸·전송 모두 42px 가운데 */
body.gw .gc-input { align-items: center !important; gap: 8px; }
body.gw .gc-input #gcText { min-height: 42px; box-sizing: border-box; }
body.gw .gc-input .gc-send { height: 42px; padding: 0 18px !important; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; flex: none; }
body.gw .gc-input .gc-file, body.gw .gc-input .gc-emoji-btn { width: 32px; height: 42px; display: inline-flex; align-items: center; justify-content: center; flex: none; }
/* 전체 화면 카드 = 본문 카드 모양(테두리·모서리 동일, 그림자 없음) */
@media (min-width: 769px) { body.gw .gc-panel--full { border-radius: 16px !important; } body.gw .gc-panel--full > .gc-body { overflow-y: auto; } }
/* 전체 화면 제목은 "메신저" 고정(방 이름은 오른쪽 대화 머리에) */
@media (min-width: 769px) { body.gw .gc-panel--full #gcTitle { font-size: 0 !important; } body.gw .gc-panel--full #gcTitle::before { content: "메신저"; font-size: 20px; } }
/* 메신저 메시지 묶음(같은 사람·같은 분): 이어지는 것은 아바타 자리만 두고 이름 숨김, 시각은 묶음 마지막에만 */
body.gw .gc-msg.is-cont { margin-top: -6px; }
body.gw .gc-msg.is-cont .gc-ava { visibility: hidden; height: 0; }
body.gw .gc-msg.is-cont .gc-sender { display: none; }
/* 이어 보낸 글 메시지는 시각을 묶음 마지막에만, 파일 메시지는 각각 표시 */
body.gw .gc-msg.has-next:not(.is-file):not(:has(+ .gc-msg.is-file)) .gc-mtime { display: none; }
/* 메신저 이미지 원본 보기 창 */
.gc-imgview { position: fixed; inset: 0; z-index: 10002; background: rgba(10,16,26,.82); display: flex; align-items: center; justify-content: center; padding: 64px 24px 24px; box-sizing: border-box; }
.gc-imgview[hidden] { display: none; }
.gc-imgview > img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; box-shadow: 0 10px 40px rgba(0,0,0,.4); background: #fff; }
.gc-imgview__bar { position: absolute; top: 0; left: 0; right: 0; height: 56px; display: flex; align-items: center; gap: 8px; padding: 0 16px; color: #fff; font-size: 14px; }
.gc-imgview__bar [data-n] { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gc-imgview__btn { height: 34px; padding: 0 14px; border: 1px solid rgba(255,255,255,.35); border-radius: 8px; background: rgba(255,255,255,.08); color: #fff; font: inherit; font-size: 13px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; }
.gc-imgview__btn[data-x] { width: 34px; padding: 0; justify-content: center; font-size: 20px; }
.gc-img { cursor: zoom-in; }
.gc-imgview__bar { background: linear-gradient(rgba(0,0,0,.45), transparent); }
.gc-imgview__btn { gap: 6px; height: 36px; background: rgba(255,255,255,.14); }
.gc-imgview__btn:hover { background: rgba(255,255,255,.26); }
.gc-imgview__btn[data-x] { width: 36px; }
/* 메신저 여러 방(전체 화면): 오른쪽에 나란히 */
.gc-panes[hidden] { display: none !important; }
@media (min-width: 769px) {
  body.gw .gc-panel--full .gc-panes { position: absolute; right: 0; top: 72px; bottom: 0; display: flex; z-index: 2; }
  body.gw .gc-pane { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; border-left: 1px solid #e5e7eb; background: #fff; }
  body.gw .gc-pane .gc-rhead { height: 52px; box-sizing: border-box; display: flex; align-items: center; gap: 6px; padding: 0 12px 0 16px; border-bottom: 1px solid #eef0f3; font-weight: 700; }
  body.gw .gc-pane__nm { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  body.gw .gc-pane .gc-msgs { flex: 1 1 auto; overflow-y: auto; }
  body.gw .gc-pane .gc-input textarea { flex: 1; min-height: 42px; box-sizing: border-box; }
}
.gc-roomx { display: none !important; }
@media (min-width: 769px) { body.gw .gc-panel--full .gc-roomx { display: inline-flex !important; } }
@media (min-width: 769px) { body.gw .gc-panel--full .gc-roomx { align-items: center; justify-content: center; } }
.gc-notice { position: fixed; right: 24px; bottom: 24px; z-index: 10003; max-width: 360px; padding: 12px 16px; border-radius: 10px; background: #12283f; color: #fff; font-size: 13.5px; box-shadow: 0 8px 24px rgba(0,0,0,.2); }
/* 끌어 놓을 대화방 표시 */
body.gw .gc-dropping { box-shadow: inset 0 0 0 2px #12283f; background: #f5f8fc; }
body.gw [data-gc-drag] { cursor: grab; }
body.gw .gc-img { -webkit-user-drag: none; }
/* 끌어 놓기 표시: 칸 모양은 그대로, 위에 안내 덮개만 */
body.gw .gc-dropping { box-shadow: none !important; background: inherit !important; }
body.gw .gc-pane { position: relative; }
body.gw .gc-pane.gc-dropping::after, body.gw #gcRoom.gc-dropping::after {
  content: "여기에 놓으면 이 대화방에 보냅니다"; position: absolute; inset: 8px; z-index: 5; pointer-events: none;
  display: flex; align-items: center; justify-content: center; border: 2px dashed #12283f; border-radius: 12px;
  background: rgba(18,40,63,.06); color: #12283f; font-size: 14px; font-weight: 600; }
.gc-dragchip { position: fixed; top: -100px; left: -400px; padding: 8px 12px; border-radius: 8px; background: #12283f; color: #fff; font-size: 13px; white-space: nowrap; }
body.gw .gc-pane.gc-dropping::after, body.gw #gcRoom.gc-dropping::after { inset: 60px 8px 8px !important; z-index: 30 !important; background: rgba(245,248,252,.92) !important; }
/* 옆 칸 머리·입력 줄은 줄어들지 않게(대화가 길면 머리가 눌리던 문제) */
body.gw .gc-pane > .gc-rhead, body.gw .gc-pane > .gc-input, body.gw .gc-room > .gc-rhead, body.gw .gc-room > .gc-input { flex: none !important; }
body.gw .gc-pane > .gc-msgs, body.gw .gc-room > .gc-msgs { min-height: 0; }

/* ===== Task: 표준 제목 줄 + 주 고르기 툴바, 한 주씩 꽉 채움(칸 안 스크롤), 카드 입력·버튼 같은 높이 ===== */
body.gw .tk-main { height: auto !important; }
@media (min-width: 769px) {
  body.gw .gw-main.tk-main { display: flex; flex-direction: column; overflow: hidden !important; }
  body.gw .tk-main > .gw-head-row, body.gw .tk-main > .gw-toolbar { flex: none; }
  body.gw .tk-grid { flex: 1 1 auto; min-height: 0; overflow: hidden !important; padding: 0 !important; }
  body.gw .tk-week { flex: 1 1 auto; min-height: 0; }
  body.gw .tk-week[hidden] { display: none !important; }
  body.gw .tk-col { min-height: 0; }
  body.gw .tk-col__cards { flex: 1 1 auto; min-height: 0; overflow-y: auto; scrollbar-width: thin; padding-right: 2px; }
}
body.gw .tk-weeks .att-sum__chip b { margin-left: 4px; }
body.gw .tk-only { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: #374151; cursor: pointer; white-space: nowrap; }
body.gw.tk-only-todo .tk-card.is-notodo { display: none; }
body.gw .tk-col { background: #f8f9fb; border-color: #e8ebef; }
body.gw .tk-col.is-today { box-shadow: none !important; border: 1.5px solid #12283f; }
body.gw .tk-col__cards:empty::after { content: "일정 없음"; display: block; padding: 18px 0; text-align: center; font-size: 12.5px; color: #b0b6bf; }
body.gw .tk-card__add { display: flex; gap: 6px; align-items: center; margin-top: 8px; }
body.gw .tk-card__add-input { flex: 1 1 auto; min-width: 0; height: 32px !important; padding: 0 10px !important; border: 1px solid #e1e5ea !important; border-radius: 7px !important; font-size: 13px !important; box-sizing: border-box; }
body.gw .tk-card__add .gw-btn { height: 32px !important; padding: 0 10px !important; font-size: 12.5px !important; flex: none; }
body.gw .tk-row__content { flex: 1; min-width: 0; overflow-wrap: anywhere; font-size: 13px; }
body.gw .tk-card__body { padding: 8px 10px 10px !important; }
body.gw .tk-card__empty { font-size: 12.5px !important; color: #9ca3af !important; }
@media (max-width: 768px) {
  /* 모바일: 한 주의 날짜를 세로로(날짜 머리 + 그날 카드) */
  body.gw .tk-grid { overflow: visible !important; }
  body.gw .tk-week { flex-direction: column !important; gap: 8px !important; }
  body.gw .tk-week[hidden] { display: none !important; }
  body.gw .tk-col { flex: none !important; width: 100%; box-sizing: border-box; }
  body.gw .tk-col__head { padding-bottom: 6px; }
  body.gw .tk-toolbar .ct-toolbar__right { display: none !important; }
  body.gw .tk-col__cards:empty::after { padding: 6px 0; text-align: left; }
}
body.gw .tk-col__none { margin: 0; padding: 18px 0; text-align: center; font-size: 12.5px; color: #b0b6bf; }
body.gw .tk-card__empty { display: none !important; }
body.gw .tk-card__list:empty + .tk-card__add { margin-top: 0; }
@media (max-width: 768px) { body.gw .tk-col__none { padding: 4px 4px 6px; text-align: left; } }
@media (max-width: 768px) { body.gw .tk-main > .gw-head-row { flex-wrap: nowrap !important; } body.gw .tk-main > .gw-head-row .gw-head-tools { width: auto !important; flex: none; gap: 6px; } body.gw .tk-main > .gw-head-row .gw-head-tools .gw-btn { height: 34px !important; padding: 0 10px !important; } }
body.gw .tk-card__list:empty { display: none; }
body.gw .tk-card__list:empty + .tk-card__add { border-top: 0 !important; padding-top: 0 !important; }
body.gw .tk-card__list:not(:has(.tk-row)) { display: none; }
body.gw .tk-card__body:not(:has(.tk-row)) .tk-card__add { border-top: 0 !important; padding-top: 0 !important; margin-top: 0 !important; }
/* 주 탭 일정 수: 작은 둥근 뱃지 */
body.gw .tk-weeks .tk-wk-n { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 5px; margin-left: 6px; border-radius: 999px; background: #eef1f5; color: #4b5563; font-size: 11px; font-weight: 700; box-sizing: border-box; }
body.gw .tk-weeks .att-sum__chip.is-active .tk-wk-n { background: #fff; color: #12283f; }
/* Task 공휴일 */
body.gw .tk-col__head.is-holi { color: #d63a4a !important; }
body.gw .tk-col__holi { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; font-weight: 600; color: #d63a4a; background: #fdecee; padding: 2px 6px; border-radius: 4px; margin-left: 2px; }
/* Task 여러 날 일정: 시작일 카드에 기간, 이어지는 날은 얇은 카드(왼쪽 색 띠 없이 연한 바탕) */
body.gw .tk-card__span { padding: 6px 12px; font-size: 12px; color: #6b7280; background: #fafbfc; border-bottom: 1px solid #eef0f3; }
body.gw .tk-card--cont { background: #fff; }
body.gw .tk-card--cont .tk-card__head { border-bottom: 0 !important; background: #fff !important; padding: 8px 12px !important; }
body.gw .tk-card--cont .tk-card__title { font-weight: 600 !important; color: #374151 !important; }
body.gw .tk-card__day { flex: none; font-size: 11.5px; color: #6b7280; background: #f1f3f6; padding: 2px 7px; border-radius: 999px; }
/* 일정 쓰기 · 할 일 날짜 고르기(여러 날 일정일 때만) */
body.gw .todo-add__day, body.gw .todo-edit__day { flex: none; width: 118px; height: 40px; padding: 0 28px 0 10px; border: 1px solid #d9dde3; border-radius: 8px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%236b7280' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 10px center; -webkit-appearance: none; appearance: none; font: inherit; font-size: 13px; color: #111827; box-sizing: border-box; cursor: pointer; }
body.gw .todo-add__day[hidden], body.gw .todo-edit__day[hidden] { display: none !important; }
body.gw .todo-edit__day { height: 32px; width: 108px; font-size: 12.5px; }
body.gw .todo-add { display: flex; gap: 8px; align-items: center; }
/* 일정 쓰기 · 할 일 묶음(여러 날이면 전체 기간 + 날짜별), 묶음마다 아래 추가 칸 */
body.gw .todo-add[hidden] { display: none !important; }
body.gw .todo-edit-list { max-height: none !important; overflow: visible !important; margin-top: 0 !important; gap: 10px !important; }
body.gw .todo-grp { display: flex; flex-direction: column; gap: 6px; }
body.gw .todo-edit-list.is-multi .todo-grp { border: 1px solid #e5e7eb; border-radius: 10px; padding: 10px 12px; }
body.gw .todo-grp__h { font-size: 13px; font-weight: 700; color: #12283f; }
body.gw .todo-grp__list { display: flex; flex-direction: column; gap: 6px; }
body.gw .todo-grp__list:empty { display: none; }
body.gw .todo-grp__add { display: flex; gap: 8px; }
body.gw .todo-grp__in { flex: 1 1 auto; min-width: 0; height: 40px; box-sizing: border-box; }
body.gw .todo-grp__add .gw-btn { height: 40px !important; flex: none; padding: 0 16px; }
body.gw .todo-edit-list.is-multi .todo-grp__in, body.gw .todo-edit-list.is-multi .todo-grp__add .gw-btn { height: 34px !important; }
body.gw .todo-edit-list.is-multi .todo-edit__txt { height: 34px; }
body.gw .todo-edit-list.is-multi .todo-edit__txt { height: 34px !important; }
/* Task 여러 날: 이어지는 날 카드도 할 일 칸 있음 · '전체 기간' 할 일 표시 */
body.gw .tk-card--cont .tk-card__head { border-bottom: 1px solid var(--line) !important; background: var(--paper) !important; padding: 10px 12px !important; }
body.gw .tk-card--cont .tk-card__title { font-weight: 700 !important; color: var(--ink) !important; }
body.gw .tk-row__all { flex: none; font-size: 10.5px; font-weight: 600; color: #6b7280; background: #f1f3f6; padding: 1px 6px; border-radius: 4px; }
body.gw .tk-card__span { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
body.gw .tk-row__all { order: -1; }
/* 전체 기간 할 일: 글 앞에 작은 "전체" */
body.gw .tk-row.is-all .tk-row__content::before { content: "전체"; display: inline-block; margin-right: 6px; padding: 0 5px; border-radius: 4px; background: #f1f3f6; color: #6b7280; font-size: 10.5px; font-weight: 600; line-height: 17px; vertical-align: 1px; }
/* 일정 쓰기 화면이 열리면 본문의 다른 것(근태 화면·달력)은 모두 숨김 — 근태 화면에서 일정 쓰기 열 때 겹치던 문제 */
body.gw .cal-main:has(> .cal-formview:not([hidden])) > :not(.cal-formview):not(.modal):not([role=dialog]) { display: none !important; }
/* 링크 없는 묶음 제목(예: 자원)은 다른 묶음 제목처럼 작은 회색 글자 — 바탕·상자 없음 */
body.gw .gw-subnav__sechead:not(:has(a)) { background: none !important; min-height: 0 !important; margin: 0 !important; padding: 4px 20px 6px !important; border-radius: 0 !important; }
body.gw .gw-subnav__sechead:not(:has(a)) > .gw-subnav__head { font-size: 12px !important; font-weight: 500 !important; color: #9ca3af !important; padding: 0 !important; line-height: 1.4 !important; }
body.gw .cal-res-empty { margin: 2px 0 6px !important; padding: 0 20px !important; font-size: 12.5px !important; color: #9ca3af !important; }

/* ===== 자료실: 제목 줄 = 경로 + 건수, 표준 툴바, 열 고정 표 + 파일 종류 아이콘 ===== */
body.gw .doc-path { display: flex; align-items: center; gap: 6px; min-width: 0; flex-wrap: wrap; }
body.gw .doc-path a { color: #9ca3af; text-decoration: none; font-weight: 600; }
body.gw .doc-path a:hover { color: #12283f; }
body.gw .doc-path a.is-cur { color: #111827; font-weight: 700; }
body.gw .doc-path__sep { color: #c4c9d1; font-weight: 400; }
body.gw .doc-toolbar__del { display: inline-flex; margin: 0; }
body.gw .doc-toolbar .gw-btn:disabled { opacity: .45; cursor: default; }
body.gw .doc-drop { display: flex; flex-direction: column; min-height: 0; flex: 1 1 auto; }
body.gw .doc-name { display: inline-flex !important; align-items: center; gap: 10px; color: #111827; text-decoration: none; font-weight: 500; max-width: 100% !important; }
body.gw .doc-name--folder { font-weight: 600; }
body.gw .doc-ic { flex: none; width: 30px; height: 30px; border-radius: 7px; display: inline-flex; align-items: center; justify-content: center; font-size: 9.5px; font-weight: 800; letter-spacing: .02em; color: #fff; background: #94a3b8; }
body.gw .doc-ic--folder { background: #eef2f7; color: #64748b; }
body.gw .doc-ic[data-ext="pdf"] { background: #dc2626; }
body.gw .doc-ic[data-ext="xlsx"], body.gw .doc-ic[data-ext="xls"], body.gw .doc-ic[data-ext="csv"] { background: #16a34a; }
body.gw .doc-ic[data-ext="docx"], body.gw .doc-ic[data-ext="doc"], body.gw .doc-ic[data-ext="hwp"], body.gw .doc-ic[data-ext="hwpx"] { background: #2563eb; }
body.gw .doc-ic[data-ext="pptx"], body.gw .doc-ic[data-ext="ppt"] { background: #ea580c; }
body.gw .doc-ic[data-ext="zip"] { background: #7c3aed; }
body.gw .doc-ic[data-ext="txt"] { background: #64748b; }
body.gw .doc-thumb { flex: none; width: 30px !important; height: 30px !important; object-fit: cover; border-radius: 7px; border: 1px solid #e5e7eb; }
body.gw .doc-table td { height: 50px; }
body.gw .doc-table td:nth-child(3), body.gw .doc-table td:nth-child(4) { color: #6b7280; font-size: 13px; }
@media (min-width: 769px) {
  body.gw .gw-main:has(.doc-drop) { display: flex; flex-direction: column; overflow: hidden !important; }
  body.gw .gw-main:has(.doc-drop) > * { flex: none; }
  body.gw .gw-main .doc-drop { flex: 1 1 auto; min-height: 0; }
  body.gw .doc-drop > .ct-tablewrap.att-scroll { flex: 1 1 auto; min-height: 0; overflow: hidden !important; display: flex; flex-direction: column; }
}
@media (max-width: 768px) {
  /* 모바일 카드 공통: 체크박스 칸은 숨김(카드 눌러 선택) */
  body.gw table.att-fixed:not(.ml-table):not(.cal-list-table) td:has(> input[data-row-check]) { display: none !important; }
  /* 자료실 카드: 이름 크게(항목명 없이), 크기·수정일은 한 줄 회색 */
  body.gw .doc-table td:nth-child(2) { padding-left: 0 !important; }
  body.gw .doc-table td:nth-child(2)::before { display: none !important; }
  body.gw .doc-table tr { display: grid !important; grid-template-columns: auto 1fr; column-gap: 12px; }
  body.gw .doc-table td:nth-child(2) { grid-column: 1 / -1; }
  body.gw .doc-table td:nth-child(3), body.gw .doc-table td:nth-child(4) { padding: 0 !important; height: auto !important; font-size: 12.5px !important; color: #9ca3af !important; }
  body.gw .doc-table td:nth-child(3)::before, body.gw .doc-table td:nth-child(4)::before { display: none !important; }
  body.gw .doc-table td:nth-child(3):empty, body.gw .doc-table tr:has(.doc-name--folder) td:nth-child(3) { display: none !important; }
}
@media (max-width: 768px) { body.gw table.att-fixed.doc-table:not(.ml-table) td { padding-left: 0 !important; min-height: 0 !important; } body.gw table.att-fixed.doc-table:not(.ml-table) td::before { display: none !important; } body.gw table.att-fixed.doc-table:not(.ml-table) tr { padding: 12px 14px !important; row-gap: 6px; } body.gw table.att-fixed.doc-table:not(.ml-table) td:nth-child(4) { text-align: left; } }
/* 숨김(인라인 display:none·hidden)은 버튼 표시 규칙보다 우선 */
body.gw .gw-btn[hidden], body.gw .gw-btn[style*="display:none"], body.gw .gw-btn[style*="display: none"] { display: none !important; }
/* ===== 행사 페이지 ===== */
body.gw .ep-addform { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 18px 20px 0; }
body.gw .ep-f { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: #374151; }
body.gw .ep-f em { color: #dc2626; font-style: normal; }
body.gw .ep-f input { height: 40px; padding: 0 12px; border: 1px solid #d9dde3; border-radius: 8px; font: inherit; font-size: 14px; font-weight: 400; box-sizing: border-box; }
body.gw .ep-f--full { grid-column: 1 / -1; }
body.gw .ep-table td { height: 52px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.gw .ep-table td .ep-view { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; display: inline-block; vertical-align: middle; }
body.gw .ep-table a.ep-view { text-decoration: none; }
body.gw .ep-table td:nth-child(5) a.ep-view { font-weight: 500 !important; font-family: ui-monospace, Menlo, monospace; font-size: 12.5px; color: #374151 !important; }
body.gw .ep-table td:nth-child(6) { color: #6b7280; font-size: 13px; }
body.gw .ep-table .gw-btn { height: 32px !important; padding: 0 10px !important; font-size: 12.5px !important; }
body.gw .ep-table .ep-delbtn { color: #b91c1c; }
body.gw .ep-table td:last-child { white-space: nowrap; }
body.gw .ep-table td:last-child > * { margin: 0 1px; }
@media (min-width: 769px) {
  body.gw .gw-main:has(> .ct-tablewrap > .att-scroll__in > .ep-table) { display: flex; flex-direction: column; overflow: hidden !important; }
}
body.gw .ep-table td:nth-child(3) .ep-view { font-weight: 700 !important; color: #111827 !important; }
@media (max-width: 768px) {
  body.gw table.att-fixed.ep-table tr { display: flex !important; flex-direction: column; }
  body.gw table.att-fixed.ep-table td:nth-child(1) { display: none !important; }
  body.gw table.att-fixed.ep-table td:nth-child(3) { order: -1; padding-left: 0 !important; font-size: 15px; }
  body.gw table.att-fixed.ep-table td:nth-child(3)::before { display: none !important; }
  body.gw table.att-fixed.ep-table td { height: auto !important; white-space: normal !important; }
  body.gw table.att-fixed.ep-table td:last-child { padding-left: 0 !important; display: flex !important; gap: 6px; flex-wrap: wrap; }
  body.gw table.att-fixed.ep-table td:last-child::before { display: none !important; }
  body.gw .ep-addform { grid-template-columns: 1fr; }
  body.gw .gw-main > .gw-head-row:has([data-ep-add]) { flex-wrap: nowrap !important; }
  body.gw .gw-main > .gw-head-row [data-ep-add] { height: 34px !important; padding: 0 12px !important; }
  body.gw .gw-main > .gw-head-row .gw-head-tools:has([data-ep-add]) { width: auto !important; flex: none; }
}
/* ===== 컨텐츠: 표준 툴바(연도 탭·안내), 열 고정 표, 수정·삭제 같은 버튼 ===== */
body.gw .ct-hint { font-size: 12.5px; color: #9ca3af; }
body.gw .ct-years .att-sum__chip b { margin-left: 4px; }
body.gw .ct-acts { display: flex; gap: 6px; justify-content: center; align-items: center; }
body.gw .ct-acts .gw-btn { height: 32px !important; padding: 0 12px !important; font-size: 12.5px !important; }
body.gw .ct-delbtn { color: #b91c1c !important; }
body.gw .ct-pf td, body.gw .ct-cl td { height: 56px; }
body.gw .ct-thumb { width: 64px; height: 40px; object-fit: cover; border-radius: 6px; border: 1px solid #e5e7eb; vertical-align: middle; }
body.gw .ct-cl .ct-thumb { object-fit: contain; background: #fff; }
body.gw .mb-drag { color: #c4c9d1; cursor: grab; }
body.gw table.att-fixed td.mb-email, body.gw table.att-fixed .ct-ellip { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (min-width: 769px) {
  body.gw .gw-main:has(.ct-tablewrap.att-scroll) { display: flex; flex-direction: column; overflow: hidden !important; }
  body.gw .gw-main:has(.ct-tablewrap.att-scroll) > * { flex: none; }
}

/* ===== 자료실 그리드 보기(구글 드라이브식) ===== */
body.gw .doc-viewtg { display: inline-flex; border: 1px solid #e5e7eb; border-radius: 8px; overflow: hidden; height: 36px; margin-right: 4px; }
body.gw .doc-viewtg button { width: 40px; border: 0; background: #fff; color: #6b7280; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
body.gw .doc-viewtg button + button { border-left: 1px solid #e5e7eb; }
body.gw .doc-viewtg button.is-on { background: #12283f; color: #fff; }
body.gw .doc-grid[hidden] { display: none !important; }
body.gw .doc-grid { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 2px 2px 16px; user-select: none; }
body.gw .doc-grid__h { font-size: 13px; font-weight: 600; color: #4b5563; margin: 6px 0 10px; }
body.gw .doc-grid__h + .doc-grid__folders, body.gw .doc-grid__h + .doc-grid__files { margin-bottom: 18px; }
body.gw .doc-grid__folders { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
body.gw .doc-grid__files { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
body.gw .doc-gi { position: relative; border: 1px solid #e5e7eb; border-radius: 12px; background: #f8f9fb; cursor: default; outline: none; transition: background .12s, border-color .12s; }
body.gw .doc-gi:hover { background: #eef2f7; }
body.gw .doc-gi.is-sel { background: #e3ebf7; border-color: #12283f; box-shadow: inset 0 0 0 1px #12283f; }
body.gw .doc-gi--folder { display: flex; align-items: center; gap: 12px; height: 52px; padding: 0 14px; }
body.gw .doc-gi--folder .doc-ic { width: 26px; height: 26px; background: none; color: #64748b; }
body.gw .doc-gi__nm { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13.5px; font-weight: 600; color: #111827; }
body.gw .doc-gi--file { padding: 8px; display: flex; flex-direction: column; gap: 8px; }
body.gw .doc-gi__prev { height: 140px; border-radius: 8px; background: #fff; display: flex; align-items: center; justify-content: center; overflow: hidden; }
body.gw .doc-gi__prev img { width: 100%; height: 100%; object-fit: cover; }
body.gw .doc-ic--big { width: 64px !important; height: 64px !important; border-radius: 12px !important; font-size: 14px !important; }
body.gw .doc-gi__foot { display: flex; align-items: center; gap: 8px; padding: 0 4px; }
body.gw .doc-ic--sm { width: 22px !important; height: 22px !important; border-radius: 5px !important; font-size: 7px !important; }
body.gw .doc-ic[data-ext="img"] { background: #db2777; }
body.gw .doc-gi__meta { padding: 0 4px 2px 34px; font-size: 11.5px; color: #9ca3af; margin-top: -6px; }
@media (max-width: 768px) {
  body.gw .doc-grid__folders { grid-template-columns: 1fr 1fr; gap: 8px; }
  body.gw .doc-grid__files { grid-template-columns: 1fr 1fr; gap: 10px; }
  body.gw .doc-gi__prev { height: 110px; }
}
body.gw .doc-gi { min-width: 0; }
body.gw .doc-grid__files > *, body.gw .doc-grid__folders > * { min-width: 0; }
@media (max-width: 768px) { body.gw .doc-grid__files, body.gw .doc-grid__folders { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }
/* 자료실 이미지 미리보기 */
.doc-pv { padding: 64px 72px 32px !important; }
.doc-pv__cnt { flex: none; font-size: 12.5px; color: rgba(255,255,255,.7); margin-right: 6px; }
.doc-pv__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.14); color: #fff; font-size: 28px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.doc-pv__nav:hover { background: rgba(255,255,255,.26); }
.doc-pv__nav[hidden] { display: none; }
.doc-pv__nav--prev { left: 16px; } .doc-pv__nav--next { right: 16px; }
/* 자료실 문서 미리보기(PDF·엑셀·워드·텍스트) */
.doc-pv__body { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; min-height: 0; }
.doc-pv__body > img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; box-shadow: 0 10px 40px rgba(0,0,0,.4); background: #fff; }
.doc-pv__msg { color: #fff; font-size: 14px; }
.doc-pv[data-kind="pdf"] .doc-pv__body, .doc-pv[data-kind="sheet"] .doc-pv__body, .doc-pv[data-kind="docx"] .doc-pv__body, .doc-pv[data-kind="text"] .doc-pv__body { align-items: stretch; flex-direction: column; max-width: 1200px; margin: 0 auto; }
.doc-pv__pdf { flex: 1; width: 100%; border: 0; border-radius: 8px; background: #fff; }
.doc-pv__sheet { flex: 1; min-height: 0; overflow: auto; background: #fff; border-radius: 8px 8px 0 0; }
.doc-pv__sheet table { border-collapse: collapse; font-size: 13px; font-family: inherit; }
.doc-pv__sheet td, .doc-pv__sheet th { border: 1px solid #e5e7eb; padding: 5px 10px; white-space: nowrap; color: #111827; min-width: 60px; }
.doc-pv__sheet tr:first-child td { background: #f8f9fb; font-weight: 600; position: sticky; top: 0; }
.doc-pv__tabs { flex: none; display: flex; gap: 2px; background: #f1f3f6; padding: 4px; border-radius: 0 0 8px 8px; overflow-x: auto; }
.doc-pv__tabs button { border: 0; background: none; padding: 6px 14px; border-radius: 6px; font: inherit; font-size: 12.5px; color: #4b5563; cursor: pointer; white-space: nowrap; }
.doc-pv__tabs button.is-on { background: #fff; color: #12283f; font-weight: 700; box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.doc-pv__doc { flex: 1; min-height: 0; overflow: auto; background: #fff; border-radius: 8px; padding: 48px 56px; color: #111827; font-size: 14.5px; line-height: 1.75; }
.doc-pv__doc table { border-collapse: collapse; } .doc-pv__doc td, .doc-pv__doc th { border: 1px solid #d1d5db; padding: 4px 8px; }
.doc-pv__doc img { max-width: 100%; }
.doc-pv__text { flex: 1; min-height: 0; overflow: auto; margin: 0; background: #fff; border-radius: 8px; padding: 24px; font-size: 13px; line-height: 1.6; white-space: pre-wrap; word-break: break-word; color: #111827; }
/* 자료실 엑셀 편집(Univer) */
.doc-pv.is-editing { padding: 56px 12px 12px !important; }
.doc-pv.is-editing .doc-pv__body { max-width: none !important; }
.doc-pv .doc-sheet-host { flex: 1; width: 100%; min-height: 0; background: #fff; border-radius: 8px; overflow: hidden; position: relative; }
.doc-pv__edit, .doc-pv__save { font-weight: 600; }
.doc-pv__save { background: #fff !important; color: #12283f !important; border-color: #fff !important; }
.doc-pv__save[disabled] { opacity: .6; }
.doc-pv__edit[hidden], .doc-pv__save[hidden] { display: none !important; }
.doc-pv__state { flex: none; font-size: 12.5px; color: #fcd34d; margin-right: 4px; }
/* 관리 화면 추가 줄(.mb-add): 선택·입력·추가 버튼 모두 40px 한 줄 */
body.gw .mb-add { display: flex !important; align-items: center; gap: 8px; flex-wrap: nowrap; }
body.gw .mb-add > input[type=text], body.gw .mb-add > input:not([type]), body.gw .mb-add > input[type=email], body.gw .mb-add > input[type=number] { flex: 1 1 auto; min-width: 0; height: 40px !important; box-sizing: border-box; }
body.gw .mb-add > .cm-dd, body.gw .mb-add > select { flex: none; width: 110px !important; }
body.gw .mb-add > .cm-dd .cm-dd__btn { height: 40px !important; }
body.gw .mb-add > .gw-btn, body.gw .mb-add > button { flex: none; height: 40px !important; padding: 0 16px !important; font-size: 13.5px !important; }
body.gw .mb-add > .cm-dd { margin: 0 !important; }
body.gw .mb-add > select[data-cm] { display: none !important; }
/* 공유받은 문서: 공유한 사람 */
body.gw .doc-by { color: #4b5563; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.gw .doc-gi__nmw { display: flex; flex-direction: column; min-width: 0; gap: 1px; }
body.gw .doc-gi__by { font-size: 11.5px; color: #9ca3af; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.gw .doc-gi--folder:has(.doc-gi__by) { height: 58px; }
@media (max-width: 768px) { body.gw table.att-fixed.doc-table td.doc-by { display: none !important; } }
/* 자료실 휴지통 */
body.gw .doc-trash-table .doc-name { color: #6b7280; }
body.gw .doc-trash-table .doc-ic { opacity: .75; }
body.gw .doc-trash-empty { color: #b91c1c !important; }
body.gw .doc-trash-empty:disabled { color: #9ca3af !important; opacity: .6; }
body.gw .doc-trash-empty-state { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: #6b7280; padding: 60px 0; }
body.gw .doc-trash-empty-state b { font-size: 15px; color: #374151; }
body.gw .doc-trash-empty-state span { font-size: 13px; }
/* 공유 표시 */
body.gw .doc-shared-ic { display: inline-flex; align-items: center; height: 18px; padding: 0 6px; margin-left: 6px; border-radius: 4px; background: #eef2f7; color: #475569; font-size: 11px; font-weight: 600; vertical-align: middle; }
body.gw .doc-gi__prev { position: relative; }
body.gw .doc-gi__shared { position: absolute; right: 8px; bottom: 8px; width: 24px; height: 24px; border-radius: 50%; background: #fff; color: #12283f; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 1px 3px rgba(0,0,0,.15); }
body.gw .doc-gi__shared--f { position: static; margin-left: auto; box-shadow: none; background: #eef2f7; flex: none; }
/* 휴지통 그리드: 흐린 카드 + 마우스 올리면 복원/영구 삭제 */
body.gw .doc-gi--trash { background: #fafbfc; }
body.gw .doc-gi--trash .doc-ic { opacity: .7; }
body.gw .doc-gi--trash .doc-gi__nm { color: #6b7280; }
body.gw .doc-gi__acts { display: none; gap: 6px; }
body.gw .doc-gi--file .doc-gi__acts { position: absolute; inset: 0; align-items: center; justify-content: center; background: rgba(255,255,255,.88); border-radius: 8px; }
body.gw .doc-gi--folder .doc-gi__acts { margin-left: auto; }
body.gw .doc-gi--trash:hover .doc-gi__acts, body.gw .doc-gi--trash:focus-within .doc-gi__acts { display: flex; }
body.gw .doc-gi__acts .gw-btn { height: 30px !important; padding: 0 10px !important; font-size: 12px !important; }
@media (hover: none) { body.gw .doc-gi__acts { display: flex; } body.gw .doc-gi--file .doc-gi__acts { position: static; background: none; justify-content: flex-start; padding: 4px; } }
/* 폴더 타일 높이 통일(부제 있어도 없어도 58px) */
body.gw .doc-gi--folder { height: 58px !important; box-sizing: border-box; }
body.gw .doc-gi--folder > .doc-gi__nm { line-height: 1.3; }
/* 왼쪽 폴더 목록·폴더 안: 공유 표시 */
body.gw .doc-tree__item { display: flex !important; align-items: center; gap: 6px; }
body.gw .doc-tree__item > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.gw .doc-tree__shared { flex: none; margin-left: auto; color: #64748b; display: inline-flex; }
body.gw .doc-sharebar { display: flex; align-items: center; gap: 8px; margin: 14px 0 0; padding: 10px 14px; border-radius: 8px; background: #f1f5f9; color: #334155; font-size: 13px; }
body.gw .doc-sharebar b { font-weight: 700; }
body.gw .doc-sharebar { margin: 14px 0 14px !important; } body.gw .doc-sharebar b { margin: 0 2px; }
/* 제목 줄 공유 얼굴 묶음(구글 드라이브식) */
body.gw .doc-access { display: inline-flex; align-items: center; height: 36px; padding: 0 12px 0 6px; border: 1px solid #e5e7eb; border-radius: 999px; background: #fff; cursor: pointer; font: inherit; flex: none; }
body.gw .doc-access:hover { background: #f5f7fa; }
body.gw .doc-access__av { width: 26px; height: 26px; border-radius: 50%; background: #12283f; color: #fff; font-size: 11.5px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; border: 2px solid #fff; margin-left: -6px; }
body.gw .doc-access__av:first-child { margin-left: 0; }
body.gw .doc-access__av:nth-child(2) { background: #2563eb; } body.gw .doc-access__av:nth-child(3) { background: #16a34a; }
body.gw .doc-access__more { margin-left: 4px; font-size: 12px; color: #6b7280; font-weight: 600; }
body.gw .doc-access__lbl { margin-left: 8px; font-size: 13px; color: #374151; font-weight: 600; }
body.gw .doc-gi__meta { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* 공유 대상 보기 창 */
body.gw .acc-panel { width: min(440px, calc(100vw - 32px)); }
body.gw .acc-body { padding: 14px 20px 4px; max-height: 50vh; overflow-y: auto; }
body.gw .acc-from { margin: 0 0 10px; padding: 8px 12px; border-radius: 8px; background: #f1f5f9; font-size: 12.5px; color: #475569; }
body.gw .acc-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid #f1f3f6; }
body.gw .acc-row:last-child { border-bottom: 0; }
body.gw .acc-av { width: 34px; height: 34px; border-radius: 50%; color: #fff; font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; justify-content: center; flex: none; }
body.gw .acc-nm { flex: 1; min-width: 0; font-size: 14px; }
body.gw .acc-nm em { font-style: normal; color: #6b7280; font-size: 12.5px; }
body.gw .acc-role { font-size: 12px; color: #6b7280; background: #f3f4f6; padding: 3px 8px; border-radius: 999px; }
body.gw .acc-foot { padding: 14px 20px 18px !important; border-top: 1px solid #eef0f3; }
body.gw .doc-gi__shared, body.gw .doc-shared-ic, body.gw .doc-tree__shared { cursor: pointer; }
body.gw .doc-gi__shared:hover { background: #12283f; color: #fff; }
/* 공유 권한 선택·표시 */
body.gw .al-pick { display: flex; align-items: center; gap: 8px; }
body.gw .al-pick__name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.gw .al-pick__role { flex: none; height: 28px; padding: 0 22px 0 8px; border: 1px solid #d9dde3; border-radius: 6px; font: inherit; font-size: 12px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='5'%3E%3Cpath d='M1 1l3 3 3-3' fill='none' stroke='%236b7280' stroke-width='1.3'/%3E%3C/svg%3E") no-repeat right 7px center; -webkit-appearance: none; appearance: none; cursor: pointer; }
body.gw .acc-role--EDIT { background: #ecfdf5 !important; color: #047857 !important; }
body.gw .acc-role--VIEW { background: #fff7ed !important; color: #c2410c !important; }
/* ===== 게시판: 표준 목록(툴바: 전체/공지 탭·글쓰기), 열 고정, 작성자 첫 글자 ===== */
body.gw .bd-hide { display: none !important; }
body.gw .bd-table td { height: 50px; }
body.gw .bd-table td:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.gw .bd-table td:first-child .mb-name { color: #111827; font-weight: 500; text-decoration: none; }
body.gw .bd-table td:first-child .mb-name:hover { color: #1d4ed8; }
body.gw .bd-table tr.bd-notice td { background: #fbfcfe; }
body.gw .bd-table tr.bd-notice .mb-name { font-weight: 700; }
body.gw .bd-badge { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 4px; font-size: 11px; font-weight: 700; margin-right: 8px; vertical-align: 1px; }
body.gw .bd-badge--notice { background: #fef2f2; color: #b91c1c; }
body.gw .bd-badge--pin { background: #eef2f7; color: #334155; }
body.gw .bd-cc { margin-left: 6px; color: #2563eb; font-size: 12.5px; font-weight: 600; }
body.gw .bd-author { white-space: nowrap; }
body.gw .bd-author .ml-avatar { width: 24px; height: 24px; font-size: 11px; margin-right: 8px; display: inline-flex !important; vertical-align: middle; }
body.gw .bd-table td:nth-child(3), body.gw .bd-table td:nth-child(4) { color: #6b7280; font-size: 13px; }
@media (max-width: 768px) {
  body.gw table.att-fixed.bd-table tr { display: grid !important; grid-template-columns: auto auto 1fr; gap: 4px 10px; padding: 12px 14px !important; }
  body.gw table.att-fixed.bd-table td { padding: 0 !important; height: auto !important; }
  body.gw table.att-fixed.bd-table td::before { display: none !important; }
  body.gw table.att-fixed.bd-table td:first-child { grid-column: 1 / -1; white-space: normal; font-size: 15px; }
  body.gw table.att-fixed.bd-table td:nth-child(3)::before { content: "조회 " !important; display: inline !important; position: static !important; width: auto !important; color: #9ca3af; }
}
/* 게시판: 툴바 글쓰기는 모바일에서만(PC 는 왼쪽 메뉴 버튼) · 모바일 카드 정리 */
@media (min-width: 769px) { body.gw .ct-toolbar__right > a.gw-btn--primary[href*="write=true"] { display: none !important; } }
@media (max-width: 768px) {
  body.gw table.att-fixed.bd-table tr { display: flex !important; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 12px 14px !important; }
  body.gw table.att-fixed.bd-table td { display: inline-flex !important; align-items: center; padding: 0 !important; height: auto !important; min-height: 0 !important; width: auto !important; font-size: 12.5px !important; color: #6b7280; }
  body.gw table.att-fixed.bd-table td:first-child { flex: 1 1 100%; display: block !important; font-size: 15px !important; color: #111827; white-space: normal; }
  body.gw table.att-fixed.bd-table td::before { display: none !important; }
  body.gw table.att-fixed.bd-table td:nth-child(3)::before { content: "조회" !important; display: inline !important; position: static !important; width: auto !important; margin-right: 4px; color: #9ca3af; font-size: 12px; }
  body.gw table.att-fixed.bd-table .bd-author .ml-avatar { width: 20px; height: 20px; font-size: 10px; margin-right: 6px; }
}
@media (max-width: 768px) {
  body.gw table.att-fixed.bd-table:not(.ml-table):not(.cal-list-table) td { padding: 0 !important; min-height: 0 !important; }
  body.gw table.att-fixed.bd-table:not(.ml-table):not(.cal-list-table) td::before { display: none !important; }
  body.gw table.att-fixed.bd-table:not(.ml-table):not(.cal-list-table) td:nth-child(3)::before { content: "조회" !important; display: inline !important; position: static !important; width: auto !important; margin-right: 4px; }
  /* 컨텐츠 모바일: 끌기 칸·순서 칸 숨김, 이미지는 크게 */
  body.gw table.att-fixed.ct-pf:not(.ml-table) td.mb-drag, body.gw table.att-fixed.ct-cl:not(.ml-table) td.mb-drag { display: none !important; }
  body.gw table.att-fixed.ct-pf:not(.ml-table) tr > td:nth-child(6), body.gw table.att-fixed.ct-cl:not(.ml-table) tr > td:nth-child(6) { display: none !important; }
  body.gw table.att-fixed.ct-pf .ct-thumb, body.gw table.att-fixed.ct-cl .ct-thumb { width: 120px; height: 72px; }
  body.gw .ct-acts { justify-content: flex-start; }
  body.gw table.att-fixed.ct-pf:not(.ml-table) td.ct-acts, body.gw table.att-fixed.ct-cl:not(.ml-table) td.ct-acts, body.gw table.att-fixed.ep-table:not(.ml-table) td:last-child { padding-left: 0 !important; display: flex !important; }
  body.gw table.att-fixed.ct-pf td.ct-acts::before, body.gw table.att-fixed.ct-cl td.ct-acts::before { display: none !important; }
}
/* 게시판 모바일: 제목 줄(제목+건수 / 검색 한 줄, 개수 선택 숨김) · 툴바(탭 왼쪽, 글쓰기 오른쪽 같은 높이) · 카드 간격 */
@media (max-width: 768px) {
  body.gw .gw-main:has(.bd-table) .gw-head-tools { display: flex !important; width: 100% !important; gap: 6px; }
  body.gw .gw-main:has(.bd-table) .gw-head-tools .gw-search { flex: 1 1 auto; height: 40px !important; }
  body.gw .gw-main:has(.bd-table) .gw-head-tools select[data-bd-size], body.gw .gw-main:has(.bd-table) .gw-head-tools .cm-dd { display: none !important; }
  body.gw .gw-main:has(.bd-table) .ct-toolbar { display: flex !important; align-items: center; }
  body.gw .gw-main:has(.bd-table) .ct-toolbar .ct-toolbar__right { margin-left: auto !important; width: auto !important; }
  body.gw .gw-main:has(.bd-table) .ct-toolbar .att-sum, body.gw .gw-main:has(.bd-table) .ct-toolbar .att-sum__chip { height: 34px !important; }
  body.gw .gw-main:has(.bd-table) .ct-toolbar .gw-btn { height: 34px !important; padding: 0 14px !important; }
  body.gw table.att-fixed.bd-table tr { margin-bottom: 8px; border-radius: 12px; }
  body.gw table.att-fixed.bd-table td:first-child .mb-name { font-weight: 600; }
  body.gw table.att-fixed.bd-table td:first-child .bd-badge { vertical-align: 2px; }
}
@media (max-width: 768px) { body.gw .gw-main:has(.bd-table) .ct-toolbar .att-sum { height: 36px !important; box-sizing: border-box; } body.gw .gw-main:has(.bd-table) .ct-toolbar .att-sum__chip { height: 34px !important; } body.gw .gw-main:has(.bd-table) .ct-toolbar .gw-btn { height: 36px !important; } }
/* ===== 행사 참가자 ===== */
body.gw .ea-table td { height: 50px; }
body.gw .ea-ellip { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.gw .ea-ellip a { color: #374151; text-decoration: none; }
body.gw .ea-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.gw .ea-name .ml-avatar { width: 26px; height: 26px; font-size: 11px; margin-right: 8px; display: inline-flex !important; vertical-align: middle; }
body.gw .ea-name b { font-weight: 600; color: #111827; }
body.gw .ea-ev { color: #6b7280; font-size: 13px; }
body.gw .ea-date { color: #6b7280; font-size: 12.5px; white-space: nowrap; }
body.gw .ea-visit { height: 28px; padding: 0 10px; border-radius: 999px; border: 1px solid #e5e7eb; background: #fff; color: #6b7280; font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }
body.gw .ea-visit.is-on { background: #ecfdf5; border-color: #a7f3d0; color: #047857; }
@media (max-width: 768px) {
  body.gw table.att-fixed.ea-table:not(.ml-table) tr { display: flex !important; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 12px 14px !important; }
  body.gw table.att-fixed.ea-table:not(.ml-table) td { display: inline-flex !important; align-items: center; padding: 0 !important; height: auto !important; min-height: 0 !important; font-size: 13px; color: #4b5563; }
  body.gw table.att-fixed.ea-table:not(.ml-table) td::before { display: none !important; }
  body.gw table.att-fixed.ea-table:not(.ml-table) td.ea-name { flex: 1 1 60%; font-size: 15px; }
  body.gw table.att-fixed.ea-table:not(.ml-table) td:last-child { margin-left: auto; }
  body.gw table.att-fixed.ea-table:not(.ml-table) td:nth-child(3) { flex-basis: 100%; }
  body.gw table.att-fixed.ea-table:not(.ml-table) td.ea-ev, body.gw table.att-fixed.ea-table:not(.ml-table) td.ea-date { font-size: 12px; color: #9ca3af; }
  body.gw table.att-fixed.ea-table:not(.ml-table) td:nth-child(4) { color: #6b7280; }
}
body.gw .ea-h1 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
body.gw .ea-evtag { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: 999px; background: #eef2f7; color: #12283f; font-size: 14px; font-weight: 700; }
@media (max-width: 768px) { body.gw .ea-evtag { height: 24px; font-size: 12.5px; padding: 0 10px; } }
/* 행사 페이지 모바일 카드(보기 상태): 행사명+상태 한 줄 · 설명 · endpoint · 참가자/관리 버튼 한 줄 — 순서·그룹 칸 숨김 */
@media (max-width: 768px) {
  body.gw table.att-fixed.ep-table:not(.ml-table) tbody tr:not([data-mode="edit"]) { display: flex !important; flex-wrap: wrap; align-items: center; gap: 6px 8px; padding: 14px !important; }
  body.gw table.att-fixed.ep-table:not(.ml-table) tbody tr:not([data-mode="edit"]) > td { display: block !important; padding: 0 !important; height: auto !important; min-height: 0 !important; width: auto !important; max-width: none !important; text-align: left !important; }
  body.gw table.att-fixed.ep-table:not(.ml-table) tbody tr:not([data-mode="edit"]) > td::before { display: none !important; }
  body.gw table.att-fixed.ep-table tbody tr:not([data-mode="edit"]) > td:nth-child(1), body.gw table.att-fixed.ep-table tbody tr:not([data-mode="edit"]) > td:nth-child(2) { display: none !important; }
  body.gw table.att-fixed.ep-table tbody tr:not([data-mode="edit"]) > td:nth-child(3) { order: 1; flex: 1 1 0; min-width: 0; font-size: 15.5px; }
  body.gw table.att-fixed.ep-table tbody tr:not([data-mode="edit"]) > td:nth-child(7) { order: 2; flex: none; }
  body.gw table.att-fixed.ep-table tbody tr:not([data-mode="edit"]) > td:nth-child(6) { order: 3; flex: 1 1 100%; color: #6b7280; font-size: 13px; }
  body.gw table.att-fixed.ep-table tbody tr:not([data-mode="edit"]) > td:nth-child(6) .ep-view { max-width: 100% !important; }
  body.gw table.att-fixed.ep-table tbody tr:not([data-mode="edit"]) > td:nth-child(5) { order: 4; flex: 1 1 100%; font-family: ui-monospace, Menlo, monospace; font-size: 12.5px; }
  body.gw table.att-fixed.ep-table tbody tr:not([data-mode="edit"]) > td:nth-child(5) a { font-weight: 500 !important; color: #2563eb !important; }
  body.gw table.att-fixed.ep-table tbody tr:not([data-mode="edit"]) > td:nth-child(4) { order: 5; margin-top: 6px; }
  body.gw table.att-fixed.ep-table tbody tr:not([data-mode="edit"]) > td:nth-child(8) { order: 6; margin-top: 6px; margin-left: auto; display: flex !important; gap: 6px; }
  body.gw table.att-fixed.ep-table tbody tr > td:nth-child(4) .gw-btn, body.gw table.att-fixed.ep-table tbody tr > td:nth-child(8) .gw-btn { height: 34px !important; padding: 0 12px !important; }
}
@media (max-width: 768px) {
  body.gw table.att-fixed.ep-table:not(.ml-table) tbody tr:not([data-mode="edit"]) { flex-direction: row !important; justify-content: flex-start !important; text-align: left !important; position: relative; }
  body.gw table.att-fixed.ep-table:not(.ml-table) tbody tr:not([data-mode="edit"]) > td { position: static !important; transform: none !important; margin-top: 0; }
  body.gw table.att-fixed.ep-table tbody tr:not([data-mode="edit"]) > td:nth-child(3) .ep-view { white-space: normal; }
  body.gw table.att-fixed.ep-table tbody tr:not([data-mode="edit"]) > td:nth-child(4), body.gw table.att-fixed.ep-table tbody tr:not([data-mode="edit"]) > td:nth-child(8) { margin-top: 6px !important; }
}
@media (max-width: 768px) { body.gw table.att-fixed.ep-table tbody tr:not([data-mode="edit"]) > td:nth-child(6):has(.ep-view:empty) { display: none !important; } }
/* 참가자 툴바: 삭제는 선택했을 때만(빨간 글씨+개수), 탭·버튼 36px 통일, 모바일 '엑셀' 짧게 */
body.gw .ea-delbtn[hidden] { display: none !important; }
body.gw .ea-delbtn { color: #b91c1c !important; }
body.gw .ea-delbtn b { margin-left: 4px; }
body.gw .ea-xl-short { display: none; }
body.gw .gw-main:has(.ea-table) .ct-toolbar .att-sum { height: 36px; box-sizing: border-box; }
body.gw .gw-main:has(.ea-table) .ct-toolbar .gw-btn { height: 36px !important; }
@media (max-width: 768px) {
  body.gw .ea-xl-long { display: none; }
  body.gw .ea-xl-short { display: inline; }
  body.gw .gw-main:has(.ea-table) .ct-toolbar .att-sum__chip { padding: 0 11px; }
  body.gw .gw-main:has(.ea-table) .ct-toolbar .gw-btn { padding: 0 12px !important; }
}
body.gw .gw-main:has(.ea-table) .ct-toolbar .att-sum { display: inline-flex !important; align-items: stretch; flex: none; }
body.gw .gw-main:has(.ea-table) .ct-toolbar .att-sum__chip { display: inline-flex !important; align-items: center; height: auto !important; line-height: 1; white-space: nowrap; }
body.gw .gw-main:has(.ea-table) .ct-toolbar .gw-btn { flex: none; }
/* 참가자: 선택 수는 삭제 버튼에 표시 → 제목 옆 선택 뱃지 숨김(모바일 줄바꿈 방지) */
body.gw .gw-main:has(.ea-table) .gw-selcount { display: none !important; }
/* 참가자 툴바: 탭·버튼 세로 가운데 정렬, 버튼 오른쪽 묶음 */
body.gw .gw-main:has(.ea-table) .ct-toolbar { align-items: center !important; }
body.gw .gw-main:has(.ea-table) .ct-toolbar > *, body.gw .gw-main:has(.ea-table) .ct-toolbar__right > * { margin-top: 0 !important; margin-bottom: 0 !important; }
body.gw .gw-main:has(.ea-table) .ct-toolbar__right { display: flex !important; align-items: center; gap: 6px; }
/* 탭(att-sum) 전 화면 통일: 상자 36 · 칸 34 · 좌우 14 · 가운데 정렬 (모바일 포함) */
body.gw .att-sum { height: 36px !important; box-sizing: border-box !important; display: inline-flex !important; align-items: stretch !important; flex: none; }
body.gw .att-sum .att-sum__chip { height: auto !important; min-height: 0 !important; padding: 0 14px !important; display: inline-flex !important; align-items: center !important; line-height: 1 !important; white-space: nowrap; }
/* ===== 결재: 표준 subnav + 본문(양식 목록 | 작성) / 목록 표준 ===== */
body.gw .ap-main { padding: 0 !important; overflow: hidden; }
body.gw .ap { display: grid; grid-template-columns: 260px 1fr; height: 100%; min-height: 0; }
body.gw .ap-inbox { grid-column: 1 / -1 !important; padding: 24px !important; display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
body.gw .ap-inbox > .gw-head-row { flex: none; }
body.gw .ap-inbox > .ct-tablewrap { flex: 1 1 auto; min-height: 0; }
body.gw .ap-month { display: flex; align-items: center; gap: 6px; }
body.gw .ap-month__label { min-width: 104px; text-align: center; font-size: 15px; color: #111827; }
body.gw .ap-month__arrow { width: 36px; padding: 0 !important; justify-content: center; font-size: 18px; }
body.gw .ap-inbox__table td { height: 52px; }
body.gw .ap-c-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.gw .ap-c-title .ap-doc-link { color: #111827; font-weight: 600; text-decoration: none; }
body.gw .ap-c-title .ap-doc-link:hover { color: #1d4ed8; }
body.gw .ap-c-who { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.gw .ap-c-who .ml-avatar { width: 24px; height: 24px; font-size: 11px; margin-right: 8px; display: inline-flex !important; vertical-align: middle; }
body.gw .ap-c-type, body.gw .ap-col-date { color: #6b7280; font-size: 13px; white-space: nowrap; }
body.gw .ap-c-line { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.gw .ap-c-line .lv-step { margin: 0 4px 0 0; }
body.gw .ap-c-act .lv-act-row { display: inline-flex; gap: 4px; }
body.gw .ap-c-act .gw-btn { height: 30px !important; padding: 0 10px !important; }
body.gw .ap-c-act .lv-muted { color: #9ca3af; }
/* 양식 목록 칸 */
body.gw .ap-list-pane { border-right: 1px solid #eef0f3; }
@media (max-width: 768px) {
  body.gw .ap-main { overflow: auto; }
  body.gw .ap { display: block; height: auto; }
  body.gw .ap-inbox { padding: 0 14px 14px !important; height: 100%; }
  body.gw .ap-month__label { min-width: 0; font-size: 14px; }
  /* 목록 카드: 제목 / 기안자·구분·작성일 / 결재선 / 상태·처리 */
  body.gw table.att-fixed.ap-inbox__table:not(.ml-table) tr { display: flex !important; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 12px 14px !important; }
  body.gw table.att-fixed.ap-inbox__table:not(.ml-table) td { display: inline-flex !important; align-items: center; padding: 0 !important; height: auto !important; min-height: 0 !important; width: auto !important; text-align: left !important; }
  body.gw table.att-fixed.ap-inbox__table:not(.ml-table) td::before { display: none !important; }
  body.gw table.att-fixed.ap-inbox__table td.ap-c-title { order: 1; flex: 1 1 0; min-width: 0; display: block !important; font-size: 15px; }
  body.gw table.att-fixed.ap-inbox__table td:nth-child(6) { order: 2; }
  body.gw table.att-fixed.ap-inbox__table td.ap-c-who { order: 3; font-size: 13px; }
  body.gw table.att-fixed.ap-inbox__table td.ap-c-type { order: 4; }
  body.gw table.att-fixed.ap-inbox__table td.ap-col-date { order: 5; }
  body.gw table.att-fixed.ap-inbox__table td.ap-c-line { order: 6; flex: 1 1 100%; flex-wrap: wrap; white-space: normal; row-gap: 4px; }
  body.gw table.att-fixed.ap-inbox__table td.ap-c-act { order: 7; margin-left: auto; }
  body.gw table.att-fixed.ap-inbox__table td.ap-c-act:has(.lv-muted) { display: none !important; }
}
/* 결재 목록은 gw-main 표준 그대로(패딩 0 28 28) — 작성/상세(.ap)만 패딩 0 */
body.gw .ap-main:not(:has(> .ap)) { padding: 0 28px 28px !important; display: flex; flex-direction: column; overflow: hidden; }
body.gw .ap-main:not(:has(> .ap)) > .ct-tablewrap { flex: 1 1 auto; min-height: 0; }
@media (max-width: 768px) {
  body.gw .ap-main:not(:has(> .ap)) { padding: 0 14px 14px !important; }
  body.gw table.att-fixed.ap-inbox__table td.ap-c-title { flex: 1 1 calc(100% - 90px) !important; }
}
/* 결재 작성: 양식 칸(제목 줄 표준 높이·검색 36·항목 subnav 형태) | 문서(둥근 상자 한 겹) */
body.gw .ap-list-pane { display: flex; flex-direction: column; min-height: 0; background: #fff; }
body.gw .ap-pick-head { display: flex; align-items: center; gap: 6px; height: 72px; padding: 0 18px; flex: none; box-sizing: border-box; border-bottom: 1px solid #eef0f3; font-size: 15px; }
body.gw .ap-pick-head b { font-size: 17px; color: #111827; }
body.gw .ap-list-pane .ap-search { margin: 14px 14px 8px; flex: none; }
body.gw .ap-list-pane .ap-search input { height: 36px !important; padding: 0 12px !important; border-radius: 8px; font-size: 13.5px; }
body.gw .ap-forms { padding: 0 10px 14px !important; }
body.gw .ap-form-item { height: 38px; display: flex; align-items: center; padding: 0 12px !important; border-radius: 8px !important; font-size: 13.5px !important; color: #374151 !important; margin-bottom: 2px; }
body.gw .ap-form-item:hover { background: #f4f6f9 !important; }
body.gw .ap-form-item.is-active { background: #eef2f7 !important; color: #12283f !important; font-weight: 700 !important; }
body.gw .ap-doc-pane { padding: 28px 36px !important; }
body.gw .ap-doc__tbl { border: 1px solid #e5e7eb !important; border-radius: 12px; overflow: visible; }   /* clip 하면 날짜 달력이 표 아래로 잘림 → 모서리는 라벨 칸만 둥글게 */
body.gw .ap-doc__tbl > .ap-r:first-child > .ap-r__l { border-top-left-radius: 11px; }
body.gw .ap-doc__tbl > .ap-r:last-child > .ap-r__l { border-bottom-left-radius: 11px; }
body.gw .ap-doc__title { font-size: 21px; margin: 4px 0 22px; }
body.gw .ap-r__l { background: #f8fafc !important; color: #4b5563 !important; font-size: 13px !important; border-right-color: #eef0f3 !important; }
body.gw .ap-r { border-bottom-color: #eef0f3 !important; }
body.gw .ap-r__v input[type=text], body.gw .ap-r__v textarea { border-color: #e5e7eb !important; border-radius: 8px !important; }
body.gw .ap-r__v input[type=text]:not(.ap-sum__n) { height: 40px; }
body.gw .ap-submit .btn-save { height: 40px; padding: 0 22px; border-radius: 8px; }
body.gw .ap-submit [data-ap-line-btn] { height: 36px !important; padding: 0 14px !important; }
@media (max-width: 768px) {
  /* 양식: 칩 한 줄 옆으로 밀기, 검색 숨김 */
  body.gw .ap-list-pane { border-right: 0 !important; border-bottom: 1px solid #eef0f3; }
  body.gw .ap-pick-head { height: auto; padding: 14px 14px 10px; border-bottom: 0; }
  body.gw .ap-list-pane .ap-search { display: none; }
  body.gw .ap-forms { display: flex !important; gap: 6px; overflow-x: auto !important; overflow-y: hidden !important; padding: 0 14px 14px !important; scrollbar-width: none; }
  body.gw .ap-forms::-webkit-scrollbar { display: none; }
  body.gw .ap-form-item { flex: none; height: 34px; padding: 0 14px !important; border: 1px solid #e5e7eb; border-radius: 999px !important; white-space: nowrap; margin: 0; }
  body.gw .ap-form-item.is-active { background: #12283f !important; border-color: #12283f; color: #fff !important; }
  body.gw .ap-doc-pane { padding: 16px 14px 24px !important; overflow: visible !important; }
  body.gw .ap-doc__title { font-size: 18px; margin: 4px 0 14px; }
  /* 문서 표: 라벨 위·값 아래 */
  body.gw .ap-r { grid-template-columns: 1fr !important; }
  body.gw .ap-r__l { border-right: 0 !important; padding: 9px 14px !important; border-bottom: 1px solid #eef0f3; }
  body.gw .ap-r__v { padding: 10px 14px !important; flex-wrap: wrap; }
  body.gw .ap-r__v--split > select[data-cm], body.gw .ap-r__v--split > .cm-sel { width: 100% !important; }
  body.gw .ap-submit { flex-wrap: wrap; }
}
@media (max-width: 768px) {
  body.gw .ap-r__v--split { display: grid !important; grid-template-columns: 1fr auto 1fr; gap: 6px 6px !important; align-items: center; }
  body.gw .ap-r__v--split > input, body.gw .ap-r__v--split > .dp-wrap, body.gw .ap-r__v--split > span input { width: 100% !important; min-width: 0 !important; }
  body.gw .ap-r__v--split > select[data-cm], body.gw .ap-r__v--split > .cm-sel, body.gw .ap-r__v--split > .cm-wrap { grid-column: 1 / -1; }
  body.gw .ap-r__v--split > :not(input):not(span):not(.dp-wrap):not(.cm-sel):not(.cm-wrap):not(select) { grid-column: 1 / -1; }
  body.gw .ap-r__v--tall { min-height: 52px !important; }
}
@media (max-width: 768px) {
  body.gw .ap-r__v:has(> .ap-daterange) { display: flex !important; flex-direction: column; align-items: stretch !important; gap: 8px !important; }
  body.gw .ap-daterange { display: grid !important; grid-template-columns: 1fr auto 1fr; gap: 6px; align-items: center; width: 100%; }
  body.gw .ap-daterange .cm-date, body.gw .ap-daterange .cm-date input[data-dp-display] { width: 100% !important; min-width: 0 !important; }
  body.gw .ap-sum { display: flex; align-items: center; gap: 6px; color: #6b7280; font-size: 13px; }
  body.gw .ap-sum .ap-sum__n { width: 64px !important; height: 34px; text-align: center; }
}
/* 결재 문서 보기: 제목 줄(‹ 목록 · 양식명 · 상태 / 버튼) + 본문 스크롤, 표 가득 */
body.gw .ap-detail { padding: 0 28px 28px !important; display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
body.gw .ap-dhead { flex: none; }
body.gw .ap-dhead h1 { display: flex; align-items: center; gap: 10px; }
body.gw .ap-back { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 8px; border: 1px solid #e5e7eb; color: #374151; text-decoration: none; font-size: 20px; line-height: 1; }
body.gw .ap-back:hover { background: #f4f6f9; }
body.gw .ap-dhead .lv-status { font-size: 12px; }
body.gw .ap-detail__acts { display: flex; gap: 6px; }
body.gw .ap-detail__acts .gw-btn { height: 36px !important; padding: 0 14px !important; }
body.gw .ap-dbody { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding-top: 18px; }
body.gw .ap-doc__tbl--view { width: 100%; max-width: 900px !important; margin: 0 !important; }
body.gw .ap-detail__foot { display: flex; justify-content: flex-end; gap: 8px; max-width: 900px; margin-top: 16px; }
@media (max-width: 768px) {
  body.gw .ap-detail { padding: 0 14px 14px !important; overflow: visible; }
  body.gw .ap-dbody { overflow: visible; padding-top: 14px; }
  body.gw .ap-dhead h1 { font-size: 18px; }
}
/* 문서 보기 모바일: 라벨 왼쪽 96 · 값 오른쪽 (작성 폼만 위아래) */
@media (max-width: 768px) {
  body.gw .ap-doc__tbl--view .ap-r { grid-template-columns: 96px 1fr !important; }
  body.gw .ap-doc__tbl--view .ap-r__l { border-right: 1px solid #eef0f3 !important; border-bottom: 0; padding: 12px !important; }
  body.gw .ap-doc__tbl--view .ap-r__v { padding: 12px !important; font-size: 14px; word-break: break-all; }
}
/* 기간 입력: [📅 시작일] ~ [📅 종료일]  총 n일(글자) */
body.gw .ap-daterange { display: inline-flex; align-items: center; gap: 8px; }
body.gw .ap-daterange .cm-date input[data-dp-display] { width: 150px; height: 36px; padding: 0 12px 0 34px !important; border: 1px solid #e5e7eb !important; border-radius: 8px !important; cursor: pointer;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%236b7280' stroke-width='1.8' viewBox='0 0 24 24'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M3 10h18M8 3v4M16 3v4'/%3E%3C/svg%3E") no-repeat 11px 50% !important; }
body.gw .ap-daterange .cm-date input[data-dp-display]:hover { border-color: #cbd5e1 !important; }
body.gw .ap-tilde { color: #9ca3af; }
body.gw .ap-sum { display: inline-flex; align-items: center; gap: 2px; margin-left: 4px; height: 28px; padding: 0 10px; border-radius: 999px; background: #eef2f7; color: #12283f; font-size: 13px; font-weight: 600; }
body.gw .ap-sum .ap-sum__n { width: 2.6em !important; height: auto !important; border: 0 !important; background: transparent !important; padding: 0 !important; text-align: center; font: inherit; font-weight: 700; color: inherit; }
@media (max-width: 768px) {
  body.gw .ap-daterange { display: grid !important; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr) !important; width: 100%; }
  body.gw .ap-daterange .cm-date, body.gw .ap-daterange .cm-date input[data-dp-display] { width: 100% !important; }
  body.gw .ap-sum { margin-left: 0; align-self: flex-start; height: 28px !important; padding: 0 10px !important; background: #eef2f7 !important; color: #12283f !important; font-size: 13px !important; }
  body.gw .ap-sum .ap-sum__n { width: 2.6em !important; height: auto !important; }
}

/* ===== 결재 양식 관리 ===== */
body.gw .fm-hint { color: #9ca3af; font-size: 12.5px; margin-left: 4px; white-space: nowrap; }
body.gw .ap-forms-table td { height: 50px; }
body.gw .ap-forms-table .ap-fb-handle { cursor: grab; color: #cbd5e1; letter-spacing: -3px; }
body.gw .ap-forms-table tr:hover .ap-fb-handle { color: #6b7280; }
body.gw .fm-name a { color: #111827; font-weight: 600; text-decoration: none; }
body.gw .fm-name a:hover { color: #1d4ed8; }
body.gw .fm-kind { color: #6b7280; font-size: 13px; }
body.gw .fm-cnt { color: #6b7280; font-size: 13px; }
body.gw .fm-cnt b { color: #111827; margin-right: 1px; }
body.gw tr.fm-off .fm-name a { color: #9ca3af; }
body.gw .ap-fm-act { white-space: nowrap; }
body.gw .ap-fm-act form { display: inline; }
body.gw .ap-fm-act .gw-btn { height: 32px !important; padding: 0 12px !important; font-size: 12.5px !important; }
body.gw .ap-fm-act .fm-del { color: #b91c1c !important; }
@media (max-width: 768px) {
  body.gw .fm-hint { display: none; }
  body.gw table.att-fixed.ap-forms-table:not(.ml-table) tr { display: flex !important; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 12px 14px !important; }
  body.gw table.att-fixed.ap-forms-table:not(.ml-table) td { display: inline-flex !important; align-items: center; padding: 0 !important; height: auto !important; min-height: 0 !important; width: auto !important; }
  body.gw table.att-fixed.ap-forms-table:not(.ml-table) td::before { display: none !important; }
  body.gw table.att-fixed.ap-forms-table td.ap-fb-handle { display: none !important; }
  body.gw table.att-fixed.ap-forms-table td.fm-name { flex: 1 1 calc(100% - 70px); font-size: 15px; }
  body.gw table.att-fixed.ap-forms-table td:nth-child(5) { order: -0; }
  body.gw table.att-fixed.ap-forms-table td.ap-fm-act { flex: 1 1 100%; justify-content: flex-end; gap: 6px; }
}
/* 툴바 버튼 36 고정(툴바 159~195 유지) */
body.gw .ct-toolbar .gw-btn { height: 36px !important; box-sizing: border-box; }
body.gw .ct-toolbar { min-height: 0 !important; }
body.gw .ap-sum .ap-sum__n { width: 1.8em !important; }
/* 결재 문서 보기 모바일: 제목 줄 한 줄(‹ 양식명 상태 … 버튼), 결재 버튼은 아래 고정 바 */
@media (max-width: 768px) {
  body.gw .ap-dhead { display: flex !important; flex-wrap: nowrap !important; align-items: center !important; gap: 8px; }
  body.gw .ap-dhead h1 { flex: 1 1 auto; min-width: 0; gap: 8px; font-size: 17px !important; white-space: nowrap; overflow: hidden; }
  body.gw .ap-dhead h1 > .ap-back { flex: none; width: 30px; height: 30px; }
  body.gw .ap-dhead h1 .lv-status { flex: none; }
  body.gw .ap-dhead .gw-head-tools { width: auto !important; flex: none; margin: 0 !important; }
  body.gw .ap-dhead .gw-head-tools .gw-btn { height: 32px !important; padding: 0 10px !important; font-size: 12.5px !important; }
  body.gw .ap-detail__foot { position: sticky; bottom: 0; background: #fff; padding: 10px 0 4px; margin-top: 12px; z-index: 2; }
  body.gw .ap-detail__foot form { flex: 1; }
  body.gw .ap-detail__foot .btn-save { width: 100%; height: 44px; }
  body.gw .ap-doc__tbl--view .ap-r__v .lv-step { margin: 2px 4px 2px 0; }
}
/* 결재 모바일: 양식 관리(운영자·PC 전용) 버튼 숨김 */
@media (max-width: 768px) { body.gw .gw-subnav a[href*="/approval/admin/forms"] { display: none !important; } }
/* 문서 보기 모바일 제목 줄: 다른 화면 표준과 같게(좌우 -14 · 안쪽 14 · 아래 선) */
@media (max-width: 768px) {
  body.gw .ap-detail > .ap-dhead { margin: 0 -14px 0 !important; padding: 14px !important; border-bottom: 1px solid #eef0f3; }
  body.gw .ap-detail > .ap-dbody { padding-top: 14px !important; }
}
/* 규칙: 제목 줄 도구 36px — 문서 보기 모바일 버튼·뒤로 버튼도 36, 글자 13 */
@media (max-width: 768px) {
  body.gw .ap-dhead .gw-head-tools .gw-btn { height: 36px !important; padding: 0 12px !important; font-size: 13px !important; }
  body.gw .ap-dhead h1 > .ap-back { width: 36px; height: 36px; }
  body.gw .ap-dhead h1 { font-size: 18px !important; }
}
/* 결재선 직책 */
body.gw .lv-step .lv-pos { margin-left: 3px; font-size: 11px; color: #9ca3af; font-weight: 500; }
/* 툴바 공통: 탭·버튼 세로 가운데 정렬(모든 목록 화면) */
body.gw .ct-toolbar { align-items: center !important; }
body.gw .ct-toolbar > *, body.gw .ct-toolbar__right > * { margin-top: 0 !important; margin-bottom: 0 !important; }
body.gw .ct-toolbar__right { display: flex !important; align-items: center !important; }
/* 결재 수정 화면: 문서 보기와 같은 틀 · 표 900 왼쪽 · 버튼 오른쪽 */
body.gw .ap-detail .ap-doc__tbl { width: 100%; max-width: 900px !important; margin: 0 !important; }
body.gw .ap-detail .ap-submit { max-width: 900px !important; margin: 16px 0 0 !important; }
body.gw .ap-detail .ap-submit .btn-cancel, body.gw .ap-detail .ap-submit .btn-save { height: 40px; display: inline-flex; align-items: center; padding: 0 20px; border-radius: 8px; }
/* 날짜 칸 공통(작성·수정): 달력 아이콘 · 36px · 같은 너비 */
body.gw .ap-r__v .cm-date input[data-dp-display] { width: 150px; height: 36px; padding: 0 12px 0 34px !important; border: 1px solid #e5e7eb !important; border-radius: 8px !important; cursor: pointer; box-sizing: border-box;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%236b7280' stroke-width='1.8' viewBox='0 0 24 24'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M3 10h18M8 3v4M16 3v4'/%3E%3C/svg%3E") no-repeat 11px 50% !important; }
body.gw .lv-range { display: inline-flex; align-items: center; gap: 8px; }
body.gw .lv-range__tilde { color: #9ca3af; }
body.gw .lv-total { display: inline-flex; align-items: center; gap: 2px; height: 28px; padding: 0 10px; border-radius: 999px; background: #eef2f7; color: #12283f; font-size: 13px; font-weight: 600; }
body.gw .lv-total b { margin: 0 1px; }
body.gw .lv-radio { display: inline-flex; }
@media (max-width: 768px) {
  /* 기간: 시작 ~ 종료 같은 너비 한 줄, 총 n일은 아래 */
  body.gw .ap-daterange, body.gw .lv-range { display: grid !important; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr) !important; gap: 6px; width: 100%; }
  body.gw .lv-range > [data-vac-end-wrap] { display: contents; }
  body.gw .ap-daterange > .cm-date, body.gw .lv-range .cm-date { display: block !important; width: 100% !important; min-width: 0 !important; }
  body.gw .ap-r__v .cm-date input[data-dp-display] { width: 100% !important; }
  body.gw .ap-r__v:has(.lv-range) { display: flex !important; flex-direction: column; align-items: stretch !important; gap: 8px !important; }
  body.gw .lv-total { align-self: flex-start; }
  body.gw .ap-detail .ap-submit { position: sticky; bottom: 0; background: #fff; padding: 10px 0 4px; z-index: 2; }
}
@media (max-width: 768px) {
  body.gw .ap-daterange > [data-vac-end-wrap]:not([hidden]) { display: contents !important; }
  body.gw .ap-daterange .cm-date { display: block !important; width: 100% !important; min-width: 0 !important; }
  body.gw .ap-r__v:has(> .ap-daterange) { display: flex !important; flex-direction: column; align-items: stretch !important; gap: 8px !important; }
  body.gw .ap-r__v:has(> .ap-daterange) > .ap-sum, body.gw .ap-r__v:has(> .ap-daterange) > .ap-half-radio { align-self: flex-start; }
}
/* PC: 날짜 칸 감싸개가 입력 너비만큼 */
body.gw .ap-r__v .cm-date { width: auto; }
/* 결재 문서 보기·수정 제목 줄: 표준(.gw-main > .gw-head-row)과 같은 값 — .ap 안이라 직접 지정 */
body.gw .ap-detail > .ap-dhead { margin: 0 -28px 0 !important; padding: 18px 28px !important; border-bottom: 1px solid var(--a-line-2) !important; min-height: 72px; box-sizing: border-box; }
body.gw .ap-detail > .ap-dbody { padding-top: 18px; }
@media (max-width: 768px) {
  body.gw .ap-detail > .ap-dhead { margin: 0 -14px 0 !important; padding: 14px !important; min-height: 0; }
  body.gw .ap-detail > .ap-dbody { padding-top: 14px !important; }
}
body.gw .ap > .ap-detail { max-width: none !important; width: auto !important; justify-self: stretch !important; }
body.gw .ap-detail .ot-date-field { width: auto !important; }
@media (max-width: 768px) { body.gw .ap-detail .ot-date-field { width: 100% !important; } }
/* 모바일 하단 고정 버튼은 아래 탭바(약 72px) 위에 */
@media (max-width: 768px) { body.gw .ap-detail .ap-submit, body.gw .ap-detail__foot { bottom: 78px !important; border-radius: 0 0 12px 12px; } }
/* 뒤로 가기 공통: 제목 왼쪽 ‹ 버튼 (메일·게시판·결재·연락처·양식·휴지통 상세/하위 화면) */
body.gw h1.gw-h1-back { display: flex !important; align-items: center; gap: 10px; min-width: 0; }
body.gw h1.gw-h1-back .gw-h1-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.gw .gw-back { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; box-sizing: border-box; border-radius: 8px; border: 1px solid #e5e7eb; background: #fff; color: #374151 !important; text-decoration: none !important; font-size: 22px; font-weight: 400; line-height: 1; padding-bottom: 2px; }
body.gw .gw-back:hover { background: #f4f6f9; border-color: #cbd5e1; }
/* 결재 양식 관리(목록·수정) 모바일: 관리자 메뉴 칩 줄 숨김 */
@media (max-width: 768px) { body.gw.ap-admin-page .gw-subnav { display: none !important; } }
/* 결재 운영(양식 관리·전체 결재 현황) — 모바일 사용 차단: 들어가는 메뉴 숨김 + 화면은 안내만 */
body.gw .gw-pc-only-block { display: none; }
@media (max-width: 768px) {
  body.gw.ap-admin-page .gw-subnav { display: flex !important; }
  body.gw a[href*="/groupware/approval/admin/"] { display: none !important; }
  body.gw.ap-admin-page .gw-main > :not(.gw-pc-only-block) { display: none !important; }
  body.gw.ap-admin-page .gw-subnav { display: none !important; }
  body.gw.ap-admin-page .gw-pc-only-block { display: flex !important; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 56px 20px; }
  body.gw.ap-admin-page .gw-pc-only-block b { font-size: 17px; color: #111827; }
  body.gw.ap-admin-page .gw-pc-only-block p { margin: 0 0 8px; color: #6b7280; font-size: 14px; line-height: 1.6; }
  body.gw.ap-admin-page .gw-pc-only-block .gw-btn { display: inline-flex !important; }
}
@media (max-width: 768px) {
  body.gw.ap-admin-page .gw-body .gw-main::before { content: none !important; display: none !important; }
  body.gw.ap-admin-page .gw-pc-only-block .gw-btn { margin: 0 !important; }
}
/* 결재 문서 보기: 반려는 빨간 테두리, 승인은 남색 채움 */
body.gw .ap-detail__foot .btn-save--danger { background: #fff !important; color: #b91c1c !important; border: 1px solid #fca5a5 !important; }
body.gw .ap-detail__foot .btn-save--danger:hover { background: #fef2f2 !important; }
body.gw .ap-detail__foot .btn-save { height: 40px; padding: 0 22px; border-radius: 8px; }
/* 규칙 점검 반영: 문서 표 radius 10(표 상자와 같게) · 제목 줄 72px(141) · 회수/반려 빨간 글자 */
body.gw .ap-doc__tbl { border-radius: 10px !important; }
body.gw .ap-detail > .ap-dhead { padding: 18px 28px 17px !important; min-height: 0 !important; }
body.gw .ap-reject { color: #b91c1c !important; }
@media (max-width: 768px) { body.gw .ap-detail > .ap-dhead { padding: 14px !important; } }
/* ===== 관리자 화면: 표 표준(열 고정·안쪽 스크롤) · 표 안 버튼 32 · 칸 말줄임 ===== */
body.gw .gw-body:has(.gw-rail--admin) .gw-main:has(> .ct-tablewrap.att-scroll) { display: flex; flex-direction: column; overflow: hidden; }
body.gw .gw-body:has(.gw-rail--admin) .gw-main > .ct-tablewrap.att-scroll { flex: 1 1 auto; min-height: 0; }
body.gw .gw-body:has(.gw-rail--admin) .gw-main > :not(.ct-tablewrap) { flex: none; }
body.gw table.att-fixed.mb-table td { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.gw .att-table td .gw-btn { height: 32px !important; padding: 0 12px !important; font-size: 12.5px !important; }
/* 관리자 표: 행이 적으면 상자도 내용만큼(빈 표가 바닥까지 늘어나지 않게), 빈 안내는 가운데 */
body.gw .gw-body:has(.gw-rail--admin) .gw-main > .ct-tablewrap.att-scroll { flex: 0 1 auto !important; }
body.gw table.att-fixed.mb-table td[colspan] { text-align: center !important; color: #9ca3af; padding: 28px 0 !important; white-space: normal; }
/* ===== 관리자 설정 화면(sec-form): 메일 환경설정과 같은 모양 ===== */
body.gw .sec-form { max-width: 820px; }
body.gw .sec-form .sec-row { display: grid !important; grid-template-columns: 180px minmax(0, 1fr); gap: 16px; align-items: start; padding: 16px 0 !important; border-bottom: 1px solid #f1f3f6 !important; margin: 0 !important; }
body.gw .sec-form .sec-row:first-of-type { padding-top: 4px !important; }
body.gw .sec-form .sec-row__label { font-size: 14px !important; font-weight: 600 !important; color: #111827; line-height: 40px; padding: 0 !important; }
body.gw .sec-form .sec-row__field, body.gw .sec-form .sec-row__ctl { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; min-height: 40px; }
body.gw .sec-form .sec-row__field .cm-dd, body.gw .sec-form .sec-row__field select[data-cm], body.gw .sec-form .sec-row__ctl .cm-dd { width: 220px !important; }
body.gw .sec-form .sec-hint, body.gw .sec-form .pc-hint { flex-basis: 100%; margin: 0 !important; font-size: 12.5px; color: #9ca3af; line-height: 1.6; }
body.gw .sec-form .sec-radio, body.gw .sec-form .pc-opt { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: #374151; cursor: pointer; }
body.gw .sec-form input[type=radio], body.gw .sec-form input[type=checkbox] { width: 16px; height: 16px; margin: 0; accent-color: #12283f; }
body.gw .sec-form .uf-in, body.gw .sec-form input[type=text], body.gw .sec-form input[type=password], body.gw .sec-form input[type=email], body.gw .sec-form input[type=tel] { width: 320px; max-width: 100%; height: 40px; box-sizing: border-box; padding: 0 12px; border: 1px solid #d9dde3; border-radius: 8px; font: inherit; font-size: 14px; }
body.gw .sec-form .uf-in:focus, body.gw .sec-form input:focus { border-color: #12283f; outline: 0; box-shadow: 0 0 0 3px rgba(18,40,63,.08); }
body.gw .sec-form .sec-bullet { margin: 0; padding-left: 18px; font-size: 13px; color: #6b7280; line-height: 1.8; flex-basis: 100%; }
body.gw .sec-actions { display: flex; justify-content: flex-start; gap: 8px; padding-top: 18px !important; margin: 0 !important; border: 0 !important; }
body.gw .sec-actions .btn-save, body.gw .sec-actions .btn-cancel { height: 40px; padding: 0 22px; border-radius: 8px; display: inline-flex; align-items: center; margin: 0 !important; }
body.gw .sec-note { margin: 14px 0 0; font-size: 12.5px; color: #9ca3af; max-width: 820px; }
body.gw .gw-main > .tk-desc { font-size: 13px; color: #6b7280; margin: 0 0 14px; }
/* 관리자 설정: 국가 선택 4열, 긴 설정 화면은 본문 안에서 스크롤(페이지 스크롤 없음) */
body.gw .sec-form .sec-country-grid { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px 14px; flex-basis: 100%; margin: 4px 0; }
body.gw .sec-form .sec-country-grid label { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; color: #374151; }
body.gw .gw-body:has(.gw-rail--admin) .gw-main:not(:has(> .ct-tablewrap.att-scroll)) { overflow-y: auto; }
/* ===== 관리자: 목록 관리(직위/직책·자원) — 추가 줄 + 둥근 상자 목록 ===== */
body.gw .gw-body:has(.gw-rail--admin) .mb-master { display: block !important; max-width: 640px; }
body.gw .gw-body:has(.gw-rail--admin) .mb-master__col { border: 0 !important; padding: 0 !important; background: none !important; box-shadow: none !important; }
body.gw .gw-body:has(.gw-rail--admin) .mb-master__col > h3 { display: none; }
body.gw .gw-body:has(.gw-rail--admin) .mb-add { display: flex !important; gap: 8px; margin: 0 0 12px !important; padding: 0 !important; border: 0 !important; }
body.gw .gw-body:has(.gw-rail--admin) .mb-add input[type=text] { flex: 1 1 auto; height: 40px; box-sizing: border-box; padding: 0 12px; border: 1px solid #d9dde3; border-radius: 8px; font: inherit; font-size: 14px; }
body.gw .gw-body:has(.gw-rail--admin) .mb-add .cm-dd, body.gw .gw-body:has(.gw-rail--admin) .mb-add select[data-cm] { width: 140px !important; flex: none; }
body.gw .gw-body:has(.gw-rail--admin) .mb-add .gw-btn { height: 40px !important; min-width: 72px; justify-content: center; background: #12283f !important; color: #fff !important; border-color: #12283f !important; }
body.gw .gw-body:has(.gw-rail--admin) .mb-list { list-style: none; margin: 0; padding: 0; border: 1px solid #e5e7eb; border-radius: 10px; overflow: clip; background: #fff; }
body.gw .gw-body:has(.gw-rail--admin) .mb-list > li { display: flex !important; align-items: center; gap: 8px; min-height: 52px; padding: 6px 10px 6px 14px !important; border: 0 !important; border-bottom: 1px solid #f1f3f6 !important; margin: 0 !important; background: none !important; border-radius: 0 !important; }
body.gw .gw-body:has(.gw-rail--admin) .mb-list > li:last-child { border-bottom: 0 !important; }
body.gw .gw-body:has(.gw-rail--admin) .mb-list > li:hover { background: #fafbfc !important; }
body.gw .gw-body:has(.gw-rail--admin) .mb-edit { display: flex !important; flex: 1 1 auto; gap: 6px; margin: 0 !important; }
body.gw .gw-body:has(.gw-rail--admin) .mb-edit input[type=text] { flex: 1 1 auto; height: 36px; box-sizing: border-box; padding: 0 10px; border: 1px solid transparent; border-radius: 8px; background: transparent; font: inherit; font-size: 14px; color: #111827; }
body.gw .gw-body:has(.gw-rail--admin) .mb-edit input[type=text]:hover { border-color: #e5e7eb; background: #fff; }
body.gw .gw-body:has(.gw-rail--admin) .mb-edit input[type=text]:focus { border-color: #12283f; background: #fff; outline: 0; box-shadow: 0 0 0 3px rgba(18,40,63,.08); }
body.gw .gw-body:has(.gw-rail--admin) .mb-edit .gw-btn { height: 36px !important; }
body.gw .gw-body:has(.gw-rail--admin) .mb-wt-name { flex: 1 1 auto; font-size: 14px; color: #111827; }
body.gw .gw-body:has(.gw-rail--admin) .mb-del { width: 32px; height: 32px; border: 0; border-radius: 8px; background: none; color: #9ca3af; font-size: 18px; cursor: pointer; flex: none; }
body.gw .gw-body:has(.gw-rail--admin) .mb-del:hover { background: #fef2f2; color: #b91c1c; }
body.gw .gw-body:has(.gw-rail--admin) .mb-list .att-empty { text-align: center; color: #9ca3af; padding: 24px 0; }
/* 일괄 추가(엑셀) — 한 줄 상자: 양식 받기 · 파일 선택 · 업로드 */
body.gw .gw-body:has(.gw-rail--admin) .cm-import { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; max-width: 820px; padding: 18px 20px !important; border: 1px solid #e5e7eb !important; border-radius: 10px; background: #fafbfc !important; }
body.gw .gw-body:has(.gw-rail--admin) .cm-import .gw-btn { height: 40px !important; }
body.gw .gw-body:has(.gw-rail--admin) .cm-import .gw-btn--primary { margin-left: auto !important; }
body.gw .gw-body:has(.gw-rail--admin) .cm-file { display: inline-flex; align-items: center; gap: 10px; height: 40px; flex: 1 1 260px; min-width: 0; padding: 0 6px 0 0; border: 1px dashed #cbd5e1; border-radius: 8px; background: #fff; cursor: pointer; }
body.gw .gw-body:has(.gw-rail--admin) .cm-file__btn { display: inline-flex; align-items: center; height: 38px; padding: 0 14px; border-right: 1px solid #e5e7eb; font-size: 13.5px; font-weight: 600; color: #12283f; }
body.gw .gw-body:has(.gw-rail--admin) .cm-file__name { font-size: 13px; color: #9ca3af; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.gw .gw-body:has(.gw-rail--admin) .cm-file__name.is-set { color: #111827; font-weight: 600; }
/* 메신저 사용 현황 숫자 카드: 붙은 한 줄 상자 */
body.gw .mstat-cards { display: inline-flex !important; gap: 0 !important; margin: 0 0 16px !important; border: 1px solid #e5e7eb; border-radius: 10px; overflow: clip; }
body.gw .mstat { min-width: 140px; padding: 14px 20px !important; border: 0 !important; border-right: 1px solid #f1f3f6 !important; border-radius: 0 !important; background: #fff !important; box-shadow: none !important; }
body.gw .mstat:last-child { border-right: 0 !important; }
body.gw .mstat__n { font-size: 22px !important; font-weight: 700; color: #111827; line-height: 1.2; }
body.gw .mstat__l { font-size: 12.5px !important; color: #6b7280; margin-top: 2px; }
/* 접근 허용: IP 추가 줄 */
body.gw .sec-ipadd { display: flex !important; gap: 8px; margin: 10px 0 12px !important; max-width: 820px; }
body.gw .sec-ipadd input[type=text] { height: 40px; box-sizing: border-box; padding: 0 12px; border: 1px solid #d9dde3; border-radius: 8px; font: inherit; font-size: 14px; }
body.gw .sec-ipadd input[name=ip] { width: 220px; }
body.gw .sec-ipadd input[name=label] { flex: 1 1 auto; }
body.gw .sec-ipadd .gw-btn { height: 40px !important; min-width: 72px; justify-content: center; background: #12283f !important; color: #fff !important; border-color: #12283f !important; }
body.gw .sec-ipadd + .ct-tablewrap { max-width: 820px; }
/* 관리자 지정(역할) 툴바: 편집 버튼 오른쪽, 팝업은 버튼 아래 오른쪽 정렬 */
body.gw .ct-toolbar .rl-edit { position: relative; }
body.gw .ct-toolbar .rl-pop { right: 0; left: auto !important; }
body.gw .gw-body:has(.gw-rail--admin) .mb-master__col { max-width: none !important; width: 100%; }
body.gw .ct-toolbar .att-sum a.att-sum__chip { text-decoration: none !important; }
body.gw .ct-toolbar > .att-sum:first-child { margin-left: 0 !important; margin-right: auto; }
/* 페이징 표: 보이는 마지막 행 선 제거 */
body.gw table tr.is-last-vis > td { border-bottom: 0 !important; }
/* 직위/직책 이름 칸 40px(입력 공통) */
body.gw .gw-body:has(.gw-rail--admin) .mb-edit input[type=text], body.gw .gw-body:has(.gw-rail--admin) .mb-edit .gw-btn { height: 40px !important; }
/* 일괄 수정 표: 열 고정 + 칸 많으면 표 안에서 가로 스크롤 */
body.gw table.att-fixed.ube-table { width: max-content !important; min-width: 100%; }
body.gw table.att-fixed.ube-table th, body.gw table.att-fixed.ube-table td { width: 140px; min-width: 140px; max-width: 140px; }
body.gw table.att-fixed.ube-table td { white-space: nowrap; }
body.gw table.att-fixed.ube-table td .cm-dd, body.gw table.att-fixed.ube-table td input[type=text] { width: 100% !important; }
/* 표가 form 안에 있는 일괄 수정: form 도 세로 틀 → 표만 스크롤, 저장 버튼 항상 보임 */
body.gw .gw-body:has(.gw-rail--admin) .gw-main:has(> form > .ct-tablewrap.att-scroll) { display: flex; flex-direction: column; overflow: hidden !important; }
body.gw .gw-body:has(.gw-rail--admin) .gw-main > form:has(> .ct-tablewrap.att-scroll) { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; }
body.gw .gw-body:has(.gw-rail--admin) .gw-main > form > .ct-tablewrap.att-scroll { flex: 0 1 auto; min-height: 0; }
body.gw .gw-body:has(.gw-rail--admin) .gw-main > form > .sec-actions { flex: none; }
/* 규칙 점검 반영(2): 결재 날짜·양식 검색 입력 40, 일정 휴지통 표 간격 14, 직원관리(data-list-view 감싸개) 제목 줄 표준 */
body.gw .ap-r__v .cm-date input[data-dp-display], body.gw .ap-daterange .cm-date input[data-dp-display] { height: 40px !important; }
body.gw .ap-list-pane .ap-search input { height: 40px !important; }
body.gw .trash-main > .gw-toolbar + .ct-tablewrap.att-scroll { margin-top: 0 !important; }
body.gw .gw-main > [data-list-view] > .gw-head-row:first-child, body.gw .gw-main > [data-list-view] > th\:block > .gw-head-row:first-child { margin: 0 -28px 18px; padding: 18px 28px; border-bottom: 1px solid var(--a-line-2); }
body.gw .gw-main > [data-list-view] { display: flex; flex-direction: column; min-height: 0; height: 100%; }
body.gw .gw-main > [data-list-view] > .ct-tablewrap.att-scroll { flex: 0 1 auto; min-height: 0; }
body.gw .gw-main > [data-list-view] > .gw-head-row:first-child, body.gw .gw-main > [data-list-view] > th\:block > .gw-head-row:first-child { min-height: 72px; box-sizing: border-box; }
@media (min-width: 769px) { body.gw .pf-layout { grid-template-rows: minmax(0, 1fr); } body.gw .pf-layout > * { min-height: 0; } }
body.gw .pf-scroll { position: relative; }
/* ===== 사용자 일괄 추가: 1 양식 받기 → 2 파일 올리기 → 3 등록 ===== */
body.gw .bk { max-width: 820px; border: 1px solid #e5e7eb; border-radius: 10px; overflow: clip; background: #fff; }
body.gw .bk-step { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 0; padding: 22px 24px 22px 12px; border-bottom: 1px solid #f1f3f6; }
body.gw .bk-step:last-child { border-bottom: 0; background: #fafbfc; }
body.gw .bk-step__no { width: 28px; height: 28px; margin: 0 auto; border-radius: 50%; background: #12283f; color: #fff; font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
body.gw .bk-step__body h2 { margin: 3px 0 6px; font-size: 15px; font-weight: 700; color: #111827; }
body.gw .bk-step__body > p, body.gw .bk-step__row p { margin: 0 0 12px; font-size: 13px; color: #6b7280; line-height: 1.6; }
body.gw .bk-step__row { display: flex; align-items: center; gap: 16px; justify-content: space-between; }
body.gw .bk-step__row p { margin: 0; }
body.gw .bk-cols { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
body.gw .bk-col { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border: 1px solid #e5e7eb; border-radius: 8px; font-size: 13px; color: #374151; background: #fff; }
body.gw .bk-col.is-req { border-color: #c7d2e0; background: #f5f8fc; color: #12283f; font-weight: 600; }
body.gw .bk-col em { font-style: normal; font-size: 11px; font-weight: 700; color: #b91c1c; }
body.gw .bk-notes { margin: 0 0 14px; padding-left: 18px; font-size: 12.5px; color: #6b7280; line-height: 1.8; }
body.gw .bk-notes code { font-size: 12px; background: #f3f4f6; padding: 0 4px; border-radius: 4px; }
body.gw .bk-step .gw-btn svg { margin-right: 6px; }
body.gw .bk-drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; height: 150px; border: 1.5px dashed #cbd5e1; border-radius: 10px; background: #fafbfc; color: #6b7280; cursor: pointer; text-align: center; transition: border-color .15s, background .15s; }
body.gw .bk-drop:hover, body.gw .bk-drop.is-over { border-color: #12283f; background: #f5f8fc; }
body.gw .bk-drop b { font-size: 14px; color: #374151; font-weight: 600; }
body.gw .bk-drop span { font-size: 12.5px; color: #9ca3af; }
body.gw .bk-drop.is-set { border-style: solid; border-color: #12283f; background: #f5f8fc; color: #12283f; }
body.gw .bk-drop.is-set b { color: #12283f; }
body.gw .bk-submit { height: 40px !important; min-width: 120px; justify-content: center; }
body.gw .bk-submit:disabled { opacity: .45; cursor: not-allowed; }
body.gw .bk-error { max-width: 820px; margin: 0 0 12px; padding: 10px 14px; border-radius: 8px; background: #fef2f2; color: #b91c1c; font-size: 13px; }
/* 표 안 버튼 칸은 말줄임으로 자르지 않음(컨텐츠 수정/삭제 잘림 수정) */
body.gw table.att-fixed.mb-table td:has(.gw-btn), body.gw table.att-fixed.mb-table td.ct-acts { overflow: visible !important; text-overflow: clip !important; white-space: nowrap; }
body.gw .att-table td .gw-btn { padding: 0 10px !important; }
body.gw .trash-name .ml-avatar { width: 26px; height: 26px; font-size: 11px; margin-right: 8px; display: inline-flex !important; vertical-align: middle; }
body.gw .gw-subnav__trash.is-active { background: #eef2f7; color: #12283f; font-weight: 700; border-color: #c7d2e0; }
body.gw .trash-table td.trash-meta { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* 열 고정 표는 상자 폭 가득(옛 width:auto·max-content 무시) — 일괄 수정 표 제외 */
body.gw table.att-fixed:not(.ube-table) { width: 100% !important; min-width: 0 !important; }
body.gw table.att-fixed.audit-table td:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* ===== 조직 설정: 부서 | 직책 두 칸, 칸마다 제목·추가·목록(칸 안 스크롤) ===== */
body.gw .gw-main:has(.os-grid) { display: flex; flex-direction: column; overflow: hidden !important; }
body.gw .gw-main:has(.os-grid) [data-list-view] { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
body.gw .os-desc { flex: none; }
body.gw .gw-body:has(.gw-rail--admin) .mb-master.os-grid { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: 980px; flex: 1 1 auto; min-height: 0; }
body.gw .gw-body:has(.gw-rail--admin) .os-grid .mb-master__col { display: flex; flex-direction: column; min-height: 0; border: 1px solid #e5e7eb !important; border-radius: 10px; padding: 0 !important; overflow: clip; background: #fff !important; }
body.gw .os-col__head { flex: none; display: flex; align-items: center; gap: 6px; height: 52px; padding: 0 16px; border-bottom: 1px solid #eef0f3; background: #f9fafb; font-size: 14.5px; }
body.gw .os-col__head b { color: #111827; }
body.gw .gw-body:has(.gw-rail--admin) .os-grid .mb-add { flex: none; padding: 12px 12px 10px !important; margin: 0 !important; border-bottom: 1px solid #f1f3f6 !important; }
body.gw .gw-body:has(.gw-rail--admin) .os-grid .mb-list { flex: 1 1 auto; min-height: 0; overflow-y: auto; border: 0 !important; border-radius: 0 !important; }
body.gw .gw-body:has(.gw-rail--admin) .os-grid .mb-list > li:last-child { border-bottom: 0 !important; }
body.gw .os-grid .mb-grip { flex: none; width: 18px; color: #cbd5e1; cursor: grab; letter-spacing: -3px; font-size: 13px; user-select: none; }
body.gw .os-grid li:hover .mb-grip { color: #6b7280; }
body.gw .os-grid .os-empty { display: block !important; text-align: center; padding: 28px 0 !important; color: #9ca3af; }
body.gw .gw-body:has(.gw-rail--admin) .mb-master.os-grid { align-items: start; }
body.gw .gw-body:has(.gw-rail--admin) .os-grid .mb-master__col { max-height: 100%; }
/* 공통: 본문 바로 아래 표(안쪽 스크롤)가 있으면 본문은 세로 틀 — 표만 스크롤, 페이지·본문 스크롤 없음 (컨텐츠 등 행 많을 때 잘림 수정) */
@media (min-width: 769px) {
  body.gw .gw-main:has(> .ct-tablewrap.att-scroll) { display: flex; flex-direction: column; overflow: hidden !important; }
  body.gw .gw-main:has(> .ct-tablewrap.att-scroll) > :not(.ct-tablewrap) { flex: none; }
  body.gw .gw-main > .ct-tablewrap.att-scroll { flex: 0 1 auto; min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
  body.gw .gw-main > .ct-tablewrap.att-scroll > .att-scroll__in { flex: 1 1 auto; min-height: 0; overflow: auto; }
}
body.gw .gw-main .ct-toolbar { min-height: 36px !important; }
/* 관리자 메뉴 하위 항목(직원관리 › 전체 직원·미배정·휴지통) 들여쓰기 + 작은 글씨 */
body.gw .gw-subnav--admin .gw-subnav__nav a.gw-subnav__sub { padding-left: 28px !important; font-size: 13px; color: #4b5563; position: relative; }
body.gw .gw-subnav--admin .gw-subnav__nav a.gw-subnav__sub::before { content: ""; position: absolute; left: 16px; top: 50%; width: 4px; height: 4px; border-radius: 50%; background: #cbd5e1; transform: translateY(-50%); }
body.gw .gw-subnav--admin .gw-subnav__nav a.gw-subnav__sub.is-active { color: #111827; }
body.gw .gw-subnav--admin .gw-subnav__nav a.gw-subnav__sub.is-active::before { background: #12283f; }
/* 문의: 처리된 행은 옅게(진한 회색 바탕 제거) */
body.gw tr.inq-done > td { background: #fafbfc !important; color: #9ca3af !important; }
body.gw tr.inq-done > td a, body.gw tr.inq-done > td b { color: #9ca3af !important; }
body.gw [data-mem-table] tr.is-resigned > td, body.gw [data-mem-table] tr.is-stopped > td { background: #fafbfc !important; color: #9ca3af !important; }
body.gw [data-mem-table] tr.is-resigned > td a, body.gw [data-mem-table] tr.is-stopped > td a { color: #6b7280 !important; }
/* ===== 직원 정보(관리자): 제목 줄(‹ 이름 상태 / 퇴사·삭제) · 두 칸 카드 · 권한 · 하단 저장 ===== */
body.gw .gw-main:has([data-edit-view]:not([hidden])) { display: flex; flex-direction: column; overflow: hidden !important; }
body.gw [data-edit-view]:not([hidden]) { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; }
body.gw [data-edit-view] > .md-head { margin: 0 -28px 0 !important; padding: 18px 28px !important; border-bottom: 1px solid var(--a-line-2); min-height: 72px; box-sizing: border-box; flex: none; }
body.gw .md-head h1 .mb-badge { font-size: 12px; }
body.gw .md-head .gw-head-tools { display: flex; gap: 6px; }
body.gw .md-del { color: #b91c1c !important; }
body.gw .md-form { display: flex !important; flex-direction: column; flex: 1 1 auto; min-height: 0; max-width: none !important; gap: 0 !important; }
body.gw .md-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-content: start; padding: 18px 0; max-width: 1000px; }
body.gw .md-card { border: 1px solid #e5e7eb; border-radius: 10px; padding: 16px 18px 6px; background: #fff; }
body.gw .md-card--wide { grid-column: 1 / -1; padding-bottom: 16px; }
body.gw .md-card__t { margin: 0 0 12px; font-size: 14px; font-weight: 700; color: #111827; }
body.gw .md-card .ev-row { display: grid !important; grid-template-columns: 110px minmax(0, 1fr); align-items: center; gap: 12px; margin: 0 0 10px !important; }
body.gw .md-card .ev-row__label { font-size: 13px !important; color: #6b7280 !important; font-weight: 600; margin: 0 !important; }
body.gw .md-card .ev-row__field input[type=text], body.gw .md-card .cm-dd__btn { height: 40px !important; width: 100%; box-sizing: border-box; }
body.gw .md-card .cm-sel, body.gw .md-card .cm-date { width: 100% !important; }
body.gw .md-card input[disabled] { background: #f9fafb !important; color: #6b7280; }
body.gw .md-perms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
body.gw .md-perm { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 1px solid #eef0f3; border-radius: 8px; cursor: pointer; }
body.gw .md-perm:hover { background: #fafbfc; }
body.gw .md-perm input { width: 16px; height: 16px; margin: 2px 0 0; accent-color: #12283f; flex: none; }
body.gw .md-perm b { display: block; font-size: 14px; color: #111827; }
body.gw .md-perm em { display: block; font-style: normal; font-size: 12.5px; color: #9ca3af; margin-top: 2px; }
body.gw .md-form > .md-actions { flex: none; display: flex; gap: 8px; align-items: center; margin: 0 -28px -24px !important; padding: 14px 28px !important; border-top: 1px solid #eef0f3; background: #fff; }
body.gw .md-form > .md-actions .btn-cancel, body.gw .md-form > .md-actions .btn-save { height: 40px; padding: 0 22px; border-radius: 8px; display: inline-flex; align-items: center; }
body.gw .gw-main > [data-edit-view]:not([hidden]) { flex: 1 1 auto !important; min-height: 0; }
body.gw [data-edit-view] > .md-head { padding: 18px 28px 17px !important; }
body.gw .md-card .cm-date input[data-dp-display] { width: 100% !important; height: 40px; }
/* 표 안: 선택칸·입력칸·버튼 높이 32 통일(미배정 직원 부서 배정 등) */
body.gw .att-table td .cm-dd__btn, body.gw .att-table td select[data-cm] + .cm-dd .cm-dd__btn { height: 32px !important; min-height: 0 !important; font-size: 13px !important; padding-top: 0 !important; padding-bottom: 0 !important; box-sizing: border-box; }
body.gw .att-table td input[type=text]:not([readonly]), body.gw .att-table td input[type=number] { height: 32px !important; box-sizing: border-box; }
body.gw .att-table td:has(.cm-dd) { vertical-align: middle; }
body.gw .att-table td:has(.cm-dd) form, body.gw .att-table td form:has(.cm-dd) { display: flex; align-items: center; gap: 6px; }
/* 필수 표시 * : 전 화면 빨간색 */
body.gw .lv-req, body.gw .ev-req, body.gw .req, body.gw .is-req-mark { color: #ef4444 !important; font-weight: 700; margin-left: 2px; }
/* 표가 form 등 한 겹 안에 있을 때도 표 안 스크롤 (일괄 수정 등) */
@media (min-width: 769px) {
  body.gw .gw-main > form > .ct-tablewrap.att-scroll, body.gw .gw-main > div > .ct-tablewrap.att-scroll { display: flex; flex-direction: column; overflow: hidden; min-height: 0; }
  body.gw .gw-main > form > .ct-tablewrap.att-scroll > .att-scroll__in, body.gw .gw-main > div > .ct-tablewrap.att-scroll > .att-scroll__in { flex: 1 1 auto; min-height: 0; overflow: auto; }
}
/* 직원 정보 권한: 체크박스 → 켜기/끄기 스위치(오른쪽), 카드 전체 클릭 */
body.gw .md-perm { align-items: center !important; justify-content: space-between; }
body.gw .md-perm > span { order: 1; flex: 1 1 auto; }
body.gw .md-perm > input[type=checkbox] { order: 2; -webkit-appearance: none; appearance: none; position: relative; width: 40px !important; height: 22px !important; margin: 0 !important; border-radius: 999px; background: #d1d5db !important; border: 0 !important; cursor: pointer; transition: background .15s; flex: none; box-shadow: none !important; }
body.gw .md-perm > input[type=checkbox]::before { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: transform .15s; }
body.gw .md-perm > input[type=checkbox]::after { display: none !important; content: none !important; }
body.gw .md-perm > input[type=checkbox]:checked { background: #12283f !important; }
body.gw .md-perm > input[type=checkbox]:checked::before { transform: translateX(18px); }
body.gw .md-perm:has(input:checked) { border-color: #c7d2e0; background: #f8fafc; }
/* 관리자 지정 모달: 결재선 모달과 같은 모양, 가운데 화살표 칸 없음 */
body.gw .rl-modal .al-body.rl-body { grid-template-columns: 220px 1fr 280px; }
body.gw .rl-modal .al-picks__h b { color: #12283f; margin-left: 4px; }
body.gw .rl-modal .rl-none { color: #9ca3af; font-size: 12.5px; margin: 8px 0; }
body.gw .rl-modal .al-item input { accent-color: #12283f; }
body.gw .rl-modal .al-foot .btn-cancel, body.gw .rl-modal .al-foot .btn-save { height: 40px; padding: 0 22px; border-radius: 8px; display: inline-flex; align-items: center; }
/* ===== 근무유형: 목록 카드 | 추가·수정 카드 ===== */
body.gw .gw-main:has(.wt-grid) [data-list-view] { overflow: hidden; }
body.gw .wt-grid { display: grid; grid-template-columns: 360px minmax(0, 560px); gap: 20px; align-items: start; flex: 1 1 auto; min-height: 0; }
body.gw .wt-listcard, body.gw .wt-formcard { border: 1px solid #e5e7eb; border-radius: 10px; overflow: clip; background: #fff; display: flex; flex-direction: column; max-height: 100%; min-height: 0; }
body.gw .wt-listcard .os-col__head { justify-content: space-between; }
body.gw .wt-new { height: 32px !important; padding: 0 12px !important; font-size: 12.5px !important; }
body.gw .gw-body:has(.gw-rail--admin) .wt-listcard .mb-list { border: 0 !important; border-radius: 0 !important; flex: 1 1 auto; min-height: 0; overflow-y: auto; }
body.gw .gw-body:has(.gw-rail--admin) .wt-listcard .mb-list > li { padding: 0 8px 0 0 !important; }
body.gw .wt-listcard .mb-wt-name { flex: 1 1 auto; display: block; padding: 12px 16px; text-decoration: none; }
body.gw .wt-listcard .mb-wt-name b { display: block; font-size: 14px; color: #111827; }
body.gw .wt-listcard .mb-wt-name em { display: block; font-style: normal; font-size: 12.5px; color: #6b7280; margin-top: 2px; }
body.gw .gw-body:has(.gw-rail--admin) .wt-listcard .mb-list > li.is-sel { background: #eef2f7 !important; box-shadow: inset 3px 0 0 #12283f; }
body.gw .wt-formbody { padding: 16px 18px 4px; overflow-y: auto; min-height: 0; }
body.gw .wt-formcard .ev-row { display: grid !important; grid-template-columns: 120px minmax(0, 1fr); align-items: center; gap: 12px; margin: 0 0 12px !important; }
body.gw .wt-formcard .ev-row__label { font-size: 13px !important; color: #4b5563 !important; font-weight: 600; margin: 0 !important; }
body.gw .wt-formcard input[type=text] { height: 40px; width: 100%; box-sizing: border-box; }
body.gw .wt-formcard .wt-line { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
body.gw .wt-formcard .wt-line .cm-dd, body.gw .wt-formcard .wt-line select[data-cm] { width: 76px !important; }
body.gw .wt-formcard .wt-line .cm-dd__btn { height: 40px !important; }
body.gw .wt-formcard .wt-num { width: 70px; height: 40px; box-sizing: border-box; padding: 0 10px; border: 1px solid #d9dde3; border-radius: 8px; font: inherit; }
body.gw .wt-formcard .wt-line > span { color: #6b7280; font-size: 13px; }
body.gw .wt-actions { display: flex !important; justify-content: flex-end; gap: 8px; padding: 12px 18px !important; margin: 0 !important; border-top: 1px solid #eef0f3; background: #fafbfc; }
body.gw .wt-actions .btn-cancel, body.gw .wt-actions .btn-save { height: 40px; padding: 0 20px; border-radius: 8px; display: inline-flex; align-items: center; }
body.gw .gw-main > [data-list-view] > .gw-head-row { margin: 0 -28px 18px !important; padding: 18px 28px 17px !important; border-bottom: 1px solid var(--a-line-2); min-height: 72px; box-sizing: border-box; }
body.gw .wt-formcard .wt-line { flex-wrap: nowrap !important; }
body.gw .wt-formcard .wt-line .cm-dd, body.gw .wt-formcard .wt-line select[data-cm] { width: 70px !important; flex: none; }
body.gw .wt-formcard .wt-line .cm-dd__btn { padding: 0 8px 0 12px !important; }
body.gw .wt-grid { grid-template-columns: 360px minmax(0, 600px); }
body.gw .gw-main:has(.wt-grid) [data-list-view] { overflow: visible !important; }
body.gw .gw-main:has(.wt-grid) { overflow: hidden !important; }
body.gw .wt-grid { grid-template-columns: 360px minmax(0, 660px); }
body.gw .wt-new { height: 36px !important; }
body.gw .wt-grid > .wt-formcard { max-width: none !important; width: 100% !important; }
body.gw .wt-formbody { overflow-x: hidden !important; }
body.gw .wt-formcard .ev-row { grid-template-columns: 100px minmax(0, 1fr) !important; }
body.gw .wt-formcard .wt-line .cm-dd, body.gw .wt-formcard .wt-line select[data-cm] { width: 66px !important; }
body.gw .gw-body:has(.gw-rail--admin) .wt-listcard .mb-list > li.is-sel { box-shadow: none !important; }
/* IP 목록 화면(접근 허용·사내 IP): 목록 길면 본문 안 스크롤 */
body.gw .gw-main:has(.sec-iplist) { display: block !important; overflow-y: auto !important; }
/* 직원 출결 관리 시각: 시·분 선택칸(브라우저 기본 시간 입력 대신) */
body.gw .mgr-time { display: inline-flex; align-items: center; gap: 6px; }
body.gw .mgr-time .cm-dd, body.gw .mgr-time select[data-cm] { width: 76px !important; }
body.gw .mgr-time .cm-dd__btn { height: 40px !important; }
body.gw .mgr-time > span { color: #6b7280; }
body.gw .mgr-bar__item { display: inline-flex; align-items: center; gap: 8px; }
body.gw .mgr-bar .mgr-time .cm-dd, body.gw .mgr-bar .mgr-time .cm-sel { width: 84px !important; min-width: 0 !important; flex: none !important; }
body.gw .mgr-bar .mgr-time .cm-dd__panel { min-width: 84px !important; width: 84px !important; }
body.gw.gw .gw-body .gw-main:has(.sec-iplist) { display: block !important; overflow-y: auto !important; }
body.gw .mgr-bar .mgr-time .cm-dd__btn { min-width: 0 !important; width: 100% !important; }
body.gw .mgr-bar .mgr-time > span { display: inline !important; width: auto !important; }
/* 직원 출결 관리: 상자 테두리 없이 툴바처럼 한 줄, 실행 버튼은 흰 버튼(+선택 수) */
body.gw .mgr-bar { background: none !important; border: 0 !important; padding: 0 !important; margin: 0 0 14px !important; gap: 14px; }
body.gw .mgr-go b { margin-left: 4px; color: #12283f; }
body.gw .mgr-bar > .gw-btn { margin-left: auto; height: 40px !important; }
/* 연락처 추가·수정: 직원 정보와 같은 카드 + 본문 안 스크롤 + 하단 고정 저장 */
body.gw .gw-main:has(> .cf-form) { display: flex; flex-direction: column; overflow: hidden !important; }
body.gw .gw-main > .cf-form { flex: 1 1 auto; min-height: 0; }
body.gw .cf-form .md-card textarea { width: 100%; box-sizing: border-box; min-height: 80px; padding: 10px 12px; border: 1px solid #d9dde3; border-radius: 8px; font: inherit; font-size: 14px; resize: vertical; }
body.gw .cf-form .md-card .ev-row:has(textarea) { align-items: start; }
body.gw .cf-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
body.gw .cf-file { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
body.gw .cf-pick { height: 36px !important; cursor: pointer; }
body.gw .cf-file__name { font-size: 13px; color: #6b7280; }
body.gw .cf-cur { font-size: 13px; color: #2563eb; }
body.gw .cf-fav { max-width: 420px; margin-top: 6px; }
body.gw .cf-fav > input[type=checkbox] { order: 2; -webkit-appearance: none; appearance: none; position: relative; width: 40px !important; height: 22px !important; margin: 0 !important; border-radius: 999px; background: #d1d5db !important; border: 0 !important; cursor: pointer; flex: none; }
body.gw .cf-fav > input[type=checkbox]::before { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: transform .15s; }
body.gw .cf-fav > input[type=checkbox]::after { display: none !important; }
body.gw .cf-fav > input[type=checkbox]:checked { background: #12283f !important; }
body.gw .cf-fav > input[type=checkbox]:checked::before { transform: translateX(18px); }
body.gw .cf-fav { align-items: center !important; justify-content: space-between; }
body.gw .cf-fav > span { order: 1; }
body.gw .cf-form .ev-row__field.cf-file { display: flex !important; flex-direction: row !important; justify-content: flex-start !important; align-items: center !important; text-align: left !important; }
body.gw .cf-form .md-body { padding-top: 18px; }
body.gw a.gw-to-gw { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; color: #12283f; font-weight: 600; }
body.gw a.gw-to-gw:hover { background: #eef2f7; }
/* 연락처 목록 안 [연락처 추가·수정] 화면: 폼만 본문 안에서 스크롤, 아래 버튼 고정 */
body.gw .gw-main:has(> [data-form-view]:not([hidden])) { display: flex !important; flex-direction: column; overflow: hidden !important; }
body.gw .gw-main > [data-form-view]:not([hidden]) { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
body.gw .gw-main > [data-form-view]:not([hidden]) > .gw-head-row { flex: none; }
/* 폼 = 세로 틀: 입력칸(cf-scroll)만 스크롤, 버튼 줄은 스크롤 밖 아래 고정 — 가로 스크롤·겹침 없음 */
body.gw [data-form-view] .contact-edit__form { flex: 1 1 auto; min-height: 0; display: flex !important; flex-direction: column; gap: 0 !important; overflow: hidden; max-width: none !important; border: 0 !important; padding: 0 !important; }
body.gw [data-form-view] .cf-scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; overflow-x: hidden; padding: 4px 4px 12px 0; }
body.gw [data-form-view] .contact-edit__actions { flex: none; position: static !important; margin: 0 -28px -24px !important; padding: 14px 28px !important; border-top: 1px solid #eef0f3; background: #fff; }
/* 떠 있는 채팅 버튼이 없어졌으므로(메신저는 레일) 하단 저장·취소 버튼은 오른쪽 끝까지 — 96px 여백 제거 */
body.gw .ev-form__actions { padding-right: 28px !important; }
@media (min-width: 769px) { body.gw .pf-actions { padding-right: 28px !important; } }
/* ===== 연락처 쓰기: 일정 쓰기와 같은 2단(본문 | 320 회색 설정 칸), 이름 큰 제목, 하단 버튼 고정 ===== */
body.gw [data-form-view] .contact-edit__form { display: flex !important; flex-direction: column; grid-template-columns: none !important; max-width: none !important; margin: 0 -28px -24px; overflow: hidden; }
body.gw [data-form-view] .cf-layout { flex: 1 1 auto; min-height: 0; overflow-y: auto; display: grid !important; grid-template-columns: minmax(0, 1fr) 320px; }
body.gw [data-form-view] .cf-layout .ev-main { display: grid; grid-template-columns: 1fr 1fr; column-gap: 16px; align-content: start; padding: 20px 28px 28px; }
body.gw [data-form-view] .cf-layout .ev-main > .ev-row { grid-column: 1 / -1; margin: 0 0 14px !important; }
body.gw [data-form-view] .cf-layout .ev-main > .ev-row.cf-half { grid-column: auto; }
body.gw [data-form-view] .cf-layout .ev-aside { padding: 20px 24px 28px; }
body.gw [data-form-view] .cf-layout .ev-aside > .ev-row { margin: 0 0 16px !important; }
body.gw [data-form-view] .cf-title input#cm-name { height: 52px !important; font-size: 20px !important; font-weight: 700; border: 0 !important; border-bottom: 1px solid #e5e7eb !important; border-radius: 0 !important; padding: 0 2px !important; box-shadow: none !important; background: transparent !important; }
body.gw [data-form-view] .cf-title input#cm-name:focus { border-bottom-color: #12283f !important; }
body.gw [data-form-view] .cf-title .ev-row__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
body.gw [data-form-view] .cf-layout .ev-aside .cm-dd, body.gw [data-form-view] .cf-layout .ev-aside .cm-date, body.gw [data-form-view] .cf-layout .ev-aside .cm-date input { width: 100% !important; }
body.gw [data-form-view] .contact-edit__actions.ev-form__actions { flex: none; margin: 0 !important; padding: 12px 28px !important; border-top: 1px solid #eef0f3; background: #fff; position: static !important; }
body.gw [data-form-view] .cf-layout textarea { min-height: 100px; }
body.gw .gw-main > [data-form-view]:not([hidden]) > .gw-head-row { margin-bottom: 0 !important; }
body.gw [data-form-view] .cf-layout .ev-aside .ev-row__label small { display: block; font-weight: 400; color: #9ca3af !important; font-size: 12px; margin-top: 2px; }
body.gw [data-form-view] .cm-fav { display: flex !important; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border: 1px solid #e5e7eb; border-radius: 8px; background: #fff; cursor: pointer; font-size: 14px; font-weight: 600; color: #111827; }
body.gw [data-form-view] .cm-fav > input[type=checkbox] { order: 2; -webkit-appearance: none; appearance: none; position: relative; width: 40px !important; height: 22px !important; margin: 0 !important; border-radius: 999px; background: #d1d5db !important; border: 0 !important; cursor: pointer; flex: none; }
body.gw [data-form-view] .cm-fav > input[type=checkbox]::before { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: transform .15s; }
body.gw [data-form-view] .cm-fav > input[type=checkbox]::after { display: none !important; }
body.gw [data-form-view] .cm-fav > input[type=checkbox]:checked { background: #12283f !important; }
body.gw [data-form-view] .cm-fav > input[type=checkbox]:checked::before { transform: translateX(18px); }
body.gw .gw-main:has(> [data-form-view]:not([hidden])) > .gw-head-row { margin-bottom: 0 !important; }
/* ===== 게시판 글쓰기: 일정 쓰기와 같은 2단 · 하단 버튼 고정 ===== */
body.gw .gw-main:has(> .bd-form) { display: flex; flex-direction: column; overflow: hidden !important; }
body.gw .gw-main:has(> .bd-form) > .gw-head-row { margin-bottom: 0 !important; }
body.gw .gw-main > .bd-form { flex: 1 1 auto; min-height: 0; display: flex !important; flex-direction: column; margin: 0 -28px -24px; max-width: none !important; gap: 0 !important; }
body.gw .bd-layout { flex: 1 1 auto; min-height: 0; overflow-y: auto; display: grid !important; grid-template-columns: minmax(0, 1fr) 320px; }
body.gw .bd-layout .ev-main { padding: 20px 28px 28px; display: flex; flex-direction: column; min-height: 0; }
body.gw .bd-layout .ev-aside { padding: 20px 24px 28px; display: flex; flex-direction: column; gap: 12px; }
body.gw .bd-layout .bd-content-row { flex: 1 1 auto; display: flex; flex-direction: column; }
body.gw .bd-layout .bd-content-row .ev-row__field { flex: 1 1 auto; display: flex; flex-direction: column; }
body.gw .bd-layout .bd-editor { flex: 1 1 auto; display: flex; flex-direction: column; min-height: 360px; }
body.gw .bd-layout .bd-editor__area { flex: 1 1 auto; }
body.gw .bd-layout .ev-aside input[disabled] { background: #f3f4f6; color: #6b7280; }
body.gw .bd-sw { background: #fff; }
body.gw .bd-sw > span { order: 1; flex: 1 1 auto; }
body.gw .bd-sw > input[type=checkbox] { order: 2; -webkit-appearance: none; appearance: none; position: relative; width: 40px !important; height: 22px !important; margin: 0 !important; border-radius: 999px; background: #d1d5db !important; border: 0 !important; cursor: pointer; flex: none; }
body.gw .bd-sw > input[type=checkbox]::before { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: transform .15s; }
body.gw .bd-sw > input[type=checkbox]::after { display: none !important; }
body.gw .bd-sw > input[type=checkbox]:checked { background: #12283f !important; }
body.gw .bd-sw > input[type=checkbox]:checked::before { transform: translateX(18px); }
body.gw .bd-sw { align-items: center !important; }
body.gw .bd-form > .ev-form__actions { flex: none; margin: 0 !important; padding: 12px 28px !important; border-top: 1px solid #eef0f3; background: #fff; }
body.gw .lv-file__list li .lv-file__x { border: 0; background: none; color: #9ca3af; font-size: 16px; cursor: pointer; padding: 0 2px; }
body.gw .lv-file__list li .lv-file__x:hover { color: #b91c1c; }
body.gw .lv-file__list li .lv-file__name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #374151; text-decoration: none; }
body.gw .bd-exist { margin-top: 6px !important; }
body.gw .ev-form__actions a.btn-cancel, body.gw .contact-edit__actions .btn-cancel, body.gw .md-actions a.btn-cancel { display: inline-flex !important; align-items: center; justify-content: center; height: 40px; box-sizing: border-box; text-decoration: none; }
/* ===== 쓰기 화면 공통(일정·연락처·게시판): 오른쪽 설정 칸 고정, 왼쪽 흰 본문만 스크롤, 스크롤바 숨김 ===== */
@media (min-width: 769px) {
  body.gw .ev-layout { overflow: hidden !important; }
  body.gw .ev-layout > .ev-main, body.gw .ev-layout > .ev-aside { overflow-y: auto; min-height: 0; scrollbar-width: none; }
  body.gw .ev-layout > .ev-main::-webkit-scrollbar, body.gw .ev-layout > .ev-aside::-webkit-scrollbar { display: none; }
  /* 게시판: 본문 칸은 고정, 편집기 흰 영역만 스크롤 */
  body.gw .bd-layout > .ev-main { overflow: hidden; }
  body.gw .bd-layout .bd-editor { min-height: 0 !important; }
  body.gw .bd-layout .bd-editor__area { min-height: 0; overflow-y: auto; scrollbar-width: none; }
  body.gw .bd-layout .bd-editor__area::-webkit-scrollbar { display: none; }
}
@media (min-width: 769px) { body.gw .bd-layout .bd-content-row, body.gw .bd-layout .bd-content-row > .ev-row__field { min-height: 0 !important; } body.gw .bd-layout .bd-editor { overflow: hidden; } body.gw .bd-layout .bd-editor__tool { flex: none; } body.gw .bd-layout .bd-editor__area { flex: 1 1 0 !important; height: auto !important; max-height: none !important; } }
/* ===== 메일 쓰기: 받는사람·제목·내용 | 오른쪽 예약발송·서명·첨부, 하단 임시저장·보내기 ===== */
body.gw .gw-main:has(> .ml-compose .ml-layout) { display: flex; flex-direction: column; overflow: hidden !important; }
body.gw .gw-main > .ml-compose:has(.ml-layout) { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
body.gw .ml-compose:has(.ml-layout) > .gw-head-row { margin-bottom: 0 !important; flex: none; }
body.gw .ml-layout { flex: 1 1 auto; min-height: 0; display: grid !important; grid-template-columns: minmax(0, 1fr) 340px; margin: 0 -28px; }
body.gw .ml-layout > .ev-main { padding: 16px 24px 20px 28px; display: flex; flex-direction: column; min-height: 0; }
body.gw .ml-layout > .ev-aside { padding: 16px 24px 20px; display: flex; flex-direction: column; gap: 4px; }
body.gw .ml-layout .ml-row--body:has(.ml-quill-wrap) { flex: 1 1 auto; min-height: 280px; align-items: stretch; border-bottom: 0; }
body.gw .ml-layout .ml-quill-wrap { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
/* 오른쪽 칸: 항목 이름 위, 값 아래 */
body.gw .ml-layout > .ev-aside .ml-row { flex-direction: column; align-items: stretch !important; gap: 6px !important; border-bottom: 0 !important; padding: 8px 0 !important; }
body.gw .ml-layout > .ev-aside .ml-row > label { flex: none !important; }
body.gw .ml-layout > .ev-aside .ml-sched { flex-wrap: wrap; gap: 6px; }
body.gw .ml-layout > .ev-aside .ml-sched .cm-date { flex: 1 1 100%; }
body.gw .ml-layout > .ev-aside .ml-sched .cm-date > input { width: 100% !important; }
body.gw .ml-layout > .ev-aside .ml-row .cm-dd, body.gw .ml-layout > .ev-aside .ml-row select[data-cm] + .cm-dd { max-width: none; }
body.gw .ml-layout > .ev-aside .ml-attach { width: 100%; }
body.gw .ml-layout > .ev-aside .ml-attach__drop { min-height: 140px; background: #fff; }
body.gw .ml-layout > .ev-aside .ml-attach__cap { display: block; margin-top: 6px; font-size: 12px; line-height: 1.5; }
body.gw .ml-compose > .ml-actions { flex: none; display: flex; align-items: center; gap: 8px; margin: 0 -28px -24px !important; padding: 12px 28px !important; border-top: 1px solid #eef0f3; background: #fff; }
body.gw .ml-compose > .ml-actions .gw-btn { height: 40px !important; padding: 0 20px !important; }
body.gw .ml-layout > .ev-aside .ml-sched { display: grid !important; grid-template-columns: 1fr auto 1fr; align-items: center; }
body.gw .ml-layout > .ev-aside .ml-sched > .cm-date { grid-column: 1 / -1; width: 100% !important; }
body.gw .ml-layout > .ev-aside .ml-sched .cm-dd, body.gw .ml-layout > .ev-aside .ml-sched .cm-sel { width: 100% !important; }
body.gw .ml-layout > .ev-aside .ml-sched > span { text-align: center; }
body.gw .ml-layout > .ev-aside .ml-row .cm-dd, body.gw .ml-layout > .ev-aside .ml-row .cm-sel { width: 100% !important; }
body.gw .ml-layout > .ev-aside [data-attach-pick] { white-space: nowrap; flex: none; height: 36px !important; }
body.gw .ml-layout > .ev-aside .ml-attach__bar, body.gw .ml-layout > .ev-aside .ml-attach > div:first-child { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
body.gw .ml-layout > .ev-aside .ml-attach__cap { margin-top: 0; flex: 1 1 140px; }
body.gw .ml-layout > .ev-aside .ml-attach__empty:not([hidden]) { display: block !important; text-align: center; padding: 0 12px; line-height: 1.6; font-size: 13px; color: #6b7280; }
body.gw .ml-layout > .ev-aside .ml-attach__empty b { display: inline !important; }
body.gw .ml-layout > .ev-aside .ml-sched .cm-date > input[data-dp-display] { width: 100% !important; box-sizing: border-box; }
body.gw .ml-layout > .ev-aside .ml-sched > .cm-date { display: block !important; }
/* ===== 결재 작성: 문서(왼쪽, 스크롤) | 양식 목록(오른쪽 회색 고정) · 하단 줄 전체 폭(결재선 지정 … 상신) ===== */
@media (min-width: 769px) {
  body.gw .ap:has(> .ap-doc-pane) { position: relative; grid-template-columns: minmax(0, 1fr) 300px !important; padding-bottom: 65px; box-sizing: border-box; }
  body.gw .ap > .ap-doc-pane { order: 1; position: static !important; overflow-y: auto; scrollbar-width: none; padding: 28px 36px 24px !important; }
  body.gw .ap > .ap-doc-pane::-webkit-scrollbar { display: none; }
  body.gw .ap > .ap-list-pane { order: 2; background: #fafbfc !important; border-right: 0 !important; border-left: 1px solid #eef0f3; }
  body.gw .ap > .ap-list-pane .ap-pick-head { background: transparent; }
  body.gw .ap > .ap-list-pane .ap-forms { scrollbar-width: none; }
  body.gw .ap > .ap-list-pane .ap-forms::-webkit-scrollbar { display: none; }
  body.gw .ap > .ap-list-pane .ap-search input { background: #fff; }
  body.gw .ap > .ap-doc-pane > .ap-submit { position: absolute; left: 0; right: 0; bottom: 0; max-width: none !important; margin: 0 !important; height: 65px; box-sizing: border-box; padding: 12px 28px; border-top: 1px solid #eef0f3; background: #fff; display: flex; align-items: center; gap: 10px; z-index: 3; }
  body.gw .ap > .ap-doc-pane > .ap-submit .btn-save { height: 40px; padding: 0 22px; border-radius: 8px; }
  body.gw .ap > .ap-doc-pane .ap-doc__tbl { max-width: 900px; margin: 0 auto; }
}
@media (min-width: 769px) {
  body.gw .ap-main:has(> .ap-write-head) { display: flex !important; flex-direction: column; overflow: hidden !important; padding: 0 28px 24px !important; }
  body.gw .ap-main > .ap-write-head { flex: none; margin: 0 -28px 0 !important; padding: 18px 28px 17px !important; border-bottom: 1px solid var(--a-line-2); min-height: 72px; box-sizing: border-box; }
  body.gw .ap-main:has(> .ap-write-head) > .ap { flex: 1 1 auto; min-height: 0; height: auto !important; margin: 0 -28px -24px; }
  body.gw .ap > .ap-doc-pane { padding-top: 22px !important; }
}
@media (min-width: 769px) {
  body.gw .ap > .ap-list-pane .ap-pick-head { height: auto !important; padding: 20px 20px 0 !important; border-bottom: 0 !important; font-size: 13px; }
  body.gw .ap > .ap-list-pane .ap-pick-head b { font-size: 13px !important; color: #374151; }
  body.gw .ap > .ap-list-pane .ap-search { margin: 8px 14px 8px !important; }
}
body.gw .ml-compose .ml-recip__box { min-height: 40px !important; box-sizing: border-box; }
body.gw .ml-compose .ml-recip__box input { height: 30px; }
body.gw .ml-layout > .ev-aside .ml-attach__drop { display: flex !important; align-items: center; justify-content: center; }
body.gw .ml-layout > .ev-aside .ml-attach__drop:has(.ml-attach__tbl:not([hidden])) { display: block !important; }
body.gw .ml-layout > .ev-aside .ml-attach__empty { width: 100%; }
body.gw .ml-layout > .ev-aside .ml-attach__empty:not([hidden]) { display: flex !important; flex-wrap: wrap; align-items: center; align-content: center; justify-content: center; gap: 0 4px; min-height: 118px; height: auto !important; padding: 0 !important; }
/* ===== 쓰기 화면 통일 (일정·연락처·게시판·메일·기안서) =====
   PC: 제목 줄 → [본문 | 오른쪽 회색 설정 칸 320] → 하단 버튼 줄(오른쪽 끝)
   1100 이하·모바일: 한 칸(본문 → 설정 칸), 하단 버튼 줄은 그대로 아래 고정 */
@media (min-width: 769px) {
  body.gw .ml-layout { grid-template-columns: minmax(0, 1fr) 320px !important; }
  body.gw .ap:has(> .ap-doc-pane) { grid-template-columns: minmax(0, 1fr) 320px !important; }
}
@media (max-width: 1100px) {
  body.gw .cf-layout, body.gw .bd-layout, body.gw .ml-layout { grid-template-columns: 1fr !important; }
  body.gw .cf-layout > .ev-aside, body.gw .bd-layout > .ev-aside, body.gw .ml-layout > .ev-aside { border-left: 0 !important; border-top: 1px solid #eef0f3; }
  body.gw .ev-layout, body.gw .cf-layout, body.gw .bd-layout, body.gw .ml-layout { overflow-y: auto !important; scrollbar-width: none; }
  body.gw .ev-layout > .ev-main, body.gw .ev-layout > .ev-aside { overflow: visible !important; }
  body.gw .bd-layout > .ev-main { overflow: visible !important; }
  body.gw .bd-layout .bd-editor { min-height: 320px !important; }
  body.gw .bd-layout .bd-editor__area { flex: 1 1 auto !important; min-height: 260px !important; }
}
@media (max-width: 768px) {
  /* 공통 여백 14 */
  body.gw .cf-layout > .ev-main, body.gw .cf-layout > .ev-aside,
  body.gw .bd-layout > .ev-main, body.gw .bd-layout > .ev-aside,
  body.gw .ml-layout > .ev-main, body.gw .ml-layout > .ev-aside { padding: 14px !important; }
  body.gw [data-form-view] .contact-edit__form, body.gw .gw-main > .bd-form { margin: 0 -14px -14px !important; }
  body.gw .ml-layout { margin: 0 -14px !important; }
  /* 연락처: 한 줄에 하나 */
  body.gw [data-form-view] .cf-layout .ev-main { display: block !important; }
  body.gw [data-form-view] .cf-layout .ev-main > .ev-row { margin: 0 0 12px !important; }
  body.gw .gw-main:has(> [data-form-view]:not([hidden])) > .gw-head-row .gw-head-tools { display: none !important; }
  /* 메일: 받는사람·제목은 이름 위·값 아래 */
  body.gw .ml-layout > .ev-main .ml-row { flex-wrap: wrap; }
  body.gw .ml-layout > .ev-main .ml-row > label { flex: 1 1 100% !important; }
  body.gw .ml-layout .ml-row--body:has(.ml-quill-wrap) { min-height: 320px; }
  /* 하단 버튼 줄: 아래 탭바 위, 좌우 14 */
  body.gw .ev-form__actions, body.gw .contact-edit__actions.ev-form__actions, body.gw .bd-form > .ev-form__actions, body.gw .ml-compose > .ml-actions { padding: 10px 14px !important; }
  body.gw .ml-compose > .ml-actions { margin: 0 -14px -14px !important; }
}
/* 모바일 쓰기 화면: 하단 저장 줄을 아래 탭바(72) 위에 붙여 항상 보이게 */
@media (max-width: 768px) {
  body.gw .ev-form__actions, body.gw .contact-edit__actions.ev-form__actions, body.gw .bd-form > .ev-form__actions, body.gw .ml-compose > .ml-actions, body.gw .ap > .ap-doc-pane > .ap-submit {
    position: sticky !important; bottom: 72px !important; z-index: 20; background: #fff; box-shadow: 0 -1px 0 #eef0f3; }
  body.gw .ap > .ap-doc-pane > .ap-submit { display: flex; align-items: center; gap: 8px; padding: 10px 14px !important; margin: 0 -14px !important; }
  /* 모바일 칩 줄: 눌러도 이동 안 하는 묶음 제목 칩(게시판 '일반 게시판' 등)은 숨김 */
  body.gw .gw-subnav .gw-subnav__head:not([href]), body.gw .gw-subnav .gw-subnav__sechead:has(> .gw-subnav__head:not([href])) { display: none !important; }
}
/* 모바일: 쓰기 화면 본문은 페이지 스크롤(PC용 overflow:hidden·높이 고정 해제) → 하단 저장 줄 sticky 동작 */
@media (max-width: 768px) {
  body.gw .gw-main:has(> .bd-form), body.gw .gw-main:has(> .ml-compose .ml-layout), body.gw .gw-main:has(> [data-form-view]:not([hidden])) { overflow: visible !important; display: block !important; height: auto !important; }
  body.gw .gw-main > .bd-form, body.gw .gw-main > .ml-compose, body.gw [data-form-view] .contact-edit__form, body.gw .gw-main > [data-form-view] { display: block !important; overflow: visible !important; height: auto !important; }
  body.gw .bd-layout, body.gw .ml-layout, body.gw .cf-layout { overflow: visible !important; display: block !important; }
}
@media (max-width: 768px) {
  body.gw .gw-main:has(.ep-table) > .gw-head-row { margin-bottom: 14px !important; }
  body.gw .gw-main > .ct-tablewrap.att-scroll:has(.ep-table) { margin-top: 0 !important; }
  body.gw table.att-fixed.ep-table tbody tr { border-radius: 12px; }
}
/* 문의 목록: 이름 왼쪽 정렬, 내용은 잘리지 않고 전부 줄바꿈 */
body.gw .ct-tablewrap--inq td.iq-name { text-align: left !important; white-space: normal; }
body.gw .ct-tablewrap--inq td:has(.iq-msg) { white-space: normal !important; overflow: visible !important; text-overflow: clip !important; }
body.gw .ct-tablewrap--inq .iq-msg { white-space: pre-wrap; word-break: break-word; line-height: 1.6; }
body.gw .ct-tablewrap--inq td.iq-name .bd-cc { display: block; margin-left: 0 !important; padding-left: 0 !important; }
/* 문의 목록 이름: 메일처럼 첫 글자 동그라미 */
body.gw .iq-who { display: flex; align-items: center; gap: 8px; }
body.gw .iq-who .ml-avatar { width: 26px; height: 26px; font-size: 11px; flex: none; display: inline-flex !important; }
body.gw .iq-who .iq-nm { color: #111827; font-weight: 500; }
body.gw tr.inq-done .iq-who .ml-avatar { opacity: .45; }
body.gw .iq-who .bd-cc { margin: 2px 0 0 !important; font-size: 12.5px; }
/* 결재 목록: 결재선 앞 2명 + '외 n명'(마우스 올리면 전체), 문서 보기 결재선은 줄바꿈 */
body.gw .ap-c-line .lv-more { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 999px; background: #eef2f7; color: #12283f; font-size: 12px; font-weight: 600; margin-left: 2px; }
body.gw .ap-c-line { cursor: default; }
body.gw .ap-doc__tbl--view .ap-r__v:has(.lv-step) { flex-wrap: wrap; row-gap: 6px; }
body.gw .ap-c-line { text-overflow: clip !important; }
body.gw .ap-c-line .lv-step { margin-right: 2px !important; }
body.gw .gw-subnav__newfolder[hidden] { display: none !important; }
@media (max-width: 768px) {
  body.gw .ap-main > .ap-write-head { margin: 0 -14px !important; padding: 14px !important; border-bottom: 1px solid var(--a-line-2); }
  body.gw .ap-main:has(> .ap-write-head) { padding: 0 14px 14px !important; }
  body.gw .ap-main:has(> .ap-write-head) > .ap { margin: 0 -14px !important; }
}
@media (max-width: 768px) {
  body.gw .ap > .ap-doc-pane { padding-bottom: 0 !important; }
  body.gw .ap > .ap-doc-pane > article.ap-doc { padding-bottom: 16px; }
  body.gw .ap-main:has(> .ap-write-head) { padding-bottom: 0 !important; }
  body.gw .ap > .ap-doc-pane > .ap-submit { border-radius: 0 0 14px 14px; }
}
/* 모바일 쓰기 화면: 하단 버튼 줄이 카드 맨 아래(아래 빈 여백 없음), 버튼 줄 위 구분선 */
@media (max-width: 768px) {
  body.gw .gw-main:has(.cal-formview .ev-form__actions), body.gw .gw-main:has(.ap-detail .ap-submit) { padding-bottom: 0 !important; }
  body.gw .ap-detail { padding-bottom: 0 !important; }
  body.gw .ap-detail .ap-submit { position: sticky !important; bottom: 72px; z-index: 20; background: #fff; margin: 12px -14px 0 !important; padding: 10px 14px !important; border-top: 1px solid #eef0f3; border-radius: 0 0 14px 14px; }
  body.gw .cal-formview .ev-form__actions { border-radius: 0 0 14px 14px; }
}
body.gw .iq-who { align-items: flex-start !important; }
body.gw .iq-who .ml-avatar { margin-top: 1px; }
body.gw .iq-meta { min-width: 0; }
body.gw .iq-mail { font-size: 12px; color: #6b7280; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.gw .ct-tablewrap--inq th.iq-w-name, body.gw .ct-tablewrap--inq col.iq-w-name { width: 220px !important; }
body.gw .ct-tablewrap--inq .mb-table th.iq-w-name { width: 220px !important; }
/* 메신저: 열 수 없는 이미지는 빈칸 대신 파일 이름 표시 */
.gc-img-fallback { display: none; }
a.gc-img-broken > img.gc-img { display: none !important; }
a.gc-img-broken > .gc-img-fallback { display: inline-flex; align-items: center; gap: 6px; padding: 9px 12px; border-radius: 12px; background: #fff; border: 1px solid #e5e7eb; color: #374151; font-size: 13px; text-decoration: none; }
a.gc-img-broken > .gc-img-fallback em { font-style: normal; color: #9ca3af; font-size: 12px; }
/* 알림(토스트): 내용이 길어도 한 줄 */
body.gw .toast { max-width: none !important; width: max-content; }
body.gw .toast__msg { white-space: nowrap; }
@media (max-width: 768px) { body.gw .toast { max-width: calc(100vw - 32px) !important; } body.gw .toast__msg { overflow: hidden; text-overflow: ellipsis; } }
/* 모바일 쓰기 화면: 저장 줄은 아래 고정(따라다니기) 없이 내용 끝에 놓음, 구분선 한 줄 */
@media (max-width: 768px) {
  body.gw .ev-form__actions, body.gw .contact-edit__actions.ev-form__actions, body.gw .bd-form > .ev-form__actions, body.gw .ml-compose > .ml-actions, body.gw .ap > .ap-doc-pane > .ap-submit, body.gw .ap-detail .ap-submit {
    position: static !important; bottom: auto !important; box-shadow: none !important; }
  body.gw .bd-layout > .ev-aside, body.gw .cf-layout > .ev-aside, body.gw .ml-layout > .ev-aside { border-bottom: 0 !important; }
}
/* 자료실: PC는 왼쪽 메뉴 [+ 파일 업로드]가 있으므로 툴바 [파일 업로드] 숨김(모바일만 표시) */
@media (min-width: 769px) { body.gw [data-doc-upload-tb] { display: none !important; } }
/* 행사 페이지: 참가자 연결 규칙 안내 */
body.gw .ep-help { margin-top: 4px; padding: 12px 14px; border-radius: 8px; background: #f5f8fc; border: 1px solid #e3e9f2; font-size: 12.5px; line-height: 1.7; color: #4b5563; }
body.gw .ep-help b:first-child { display: block; color: #12283f; font-size: 13px; margin-bottom: 4px; }
body.gw .ep-help ol { margin: 6px 0; padding-left: 18px; }
body.gw .ep-help code, body.gw .ep-guide code { font-size: 12px; background: #fff; border: 1px solid #e5e7eb; padding: 0 4px; border-radius: 4px; }
body.gw .ep-guide { flex: none; margin: 0 0 12px; font-size: 13px; color: #4b5563; }
body.gw .ep-guide summary { cursor: pointer; color: #12283f; font-weight: 600; width: max-content; }
body.gw .ep-guide > div { margin-top: 8px; padding: 12px 14px; border-radius: 8px; background: #f5f8fc; border: 1px solid #e3e9f2; line-height: 1.7; }
@media (min-width: 769px) { body.gw .ep-add-m { display: none !important; } }
body.gw .ep-help strong { color: #111827; }
/* 모바일 작성 버튼은 제목 줄 오른쪽 끝 하나로 통일 — 툴바 중복 숨김 */
@media (max-width: 768px) { body.gw .ct-toolbar__right > a.gw-btn--primary[href*="write=true"], body.gw [data-doc-upload-tb] { display: none !important; } }
body.gw .ep-f .ep-q { font-weight: 400; color: #9ca3af; font-size: 11.5px; margin-left: 4px; }
/* 모바일 작성 버튼: 각 화면 제목 줄 오른쪽 끝(서버에서 그려 바로 보임), PC 는 왼쪽 메뉴 버튼 */
body.gw .gw-head-add { display: none; }
@media (max-width: 768px) {
  body.gw h1:has(> .gw-head-add) { display: flex !important; align-items: center; gap: 8px; width: 100%; }
  body.gw .gw-head-add { display: inline-flex !important; margin-left: auto; flex: none; }
  body.gw .gw-head-add .gw-btn { height: 34px !important; padding: 0 12px !important; font-size: 13px !important; font-weight: 600; }
}
/* 모바일 창(행사 추가 등): 화면 높이 안에서 내용만 스크롤 */
@media (max-width: 768px) {
  body.gw .modal__panel.imp-panel { max-height: calc(100dvh - 32px); display: flex; flex-direction: column; overflow: hidden; }
  body.gw .modal__panel.imp-panel > form, body.gw .modal__panel.imp-panel > .imp-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; }
  body.gw .modal__panel.imp-panel .imp-foot { position: sticky; bottom: 0; background: #fff; padding-top: 10px; }
}
/* 이미지 한 장 선택(포트폴리오·고객사 로고) */
body.gw .img-pick { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
body.gw .img-pick__box { width: 160px; height: 106px; border: 1px dashed #cbd5e1; border-radius: 10px; background: #fafbfc; display: flex; align-items: center; justify-content: center; overflow: hidden; flex: none; }
body.gw .img-pick__box img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
body.gw .img-pick__box img[hidden], body.gw .img-pick__empty[hidden] { display: none !important; }
body.gw .img-pick__empty { font-size: 12.5px; color: #9ca3af; }
body.gw .img-pick__side { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; }
body.gw .img-pick__btn { height: 36px !important; cursor: pointer; }
body.gw .img-pick__name { font-size: 13px; color: #374151; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.gw .img-pick__x { border: 0; background: none; color: #9ca3af; font-size: 18px; cursor: pointer; padding: 0 4px; }
body.gw .img-pick__x:hover { color: #b91c1c; }
body.gw .img-pick__x[hidden] { display: none; }
/* 행사 추가 창(모바일): 폼만 스크롤, 버튼 줄 보이게 */
@media (max-width: 768px) {
  body.gw .modal__panel.imp-panel { max-height: calc(100dvh - 32px) !important; overflow: hidden !important; display: flex !important; flex-direction: column; }
  body.gw .modal__panel.imp-panel > .imp-head { flex: none; }
  body.gw .modal__panel.imp-panel > form { flex: 1 1 auto; min-height: 0; overflow-y: auto; }
}
@media (max-width: 768px) { body.gw .cal-nav .gw-head-add { margin-left: 6px; } }
@media (max-width: 768px) {
  body.gw .gw-head-row > h1:has(> .gw-head-add) { flex: 1 1 auto !important; min-width: 0; }
  body.gw .cal-nav .gw-btn { height: 34px !important; min-width: 34px; padding: 0 10px !important; }
}
@media (max-width: 768px) {
}
/* 모바일 일정 제목 줄: 근태 신청과 같게 — 1줄 제목 | [+ 일정 쓰기], 2줄 년월 | ‹ 오늘 › */
@media (max-width: 768px) {
  body.gw .cal-headrow { display: grid !important; grid-template-columns: 1fr 34px auto 34px; column-gap: 6px; row-gap: 10px; align-items: center; }
  body.gw .cal-headrow > h1, body.gw .cal-headrow > .cal-nav { display: contents !important; }
  body.gw .cal-headrow .cal-h1-t { grid-column: 1; grid-row: 1; font-size: 20px; font-weight: 700; color: #111827; }
  body.gw .cal-headrow .cal-title { grid-column: 1; grid-row: 2; font-size: 15px !important; font-weight: 700; color: #111827 !important; margin: 0 !important; }
  body.gw .cal-headrow .cal-nav > a:nth-child(1) { grid-column: 2; grid-row: 2; }
  body.gw .cal-headrow .cal-nav > a:nth-child(2) { grid-column: 3; grid-row: 2; }
  body.gw .cal-headrow .cal-nav > a:nth-child(3) { grid-column: 4; grid-row: 2; }
  body.gw .cal-headrow .gw-head-add { grid-column: 2 / 5; grid-row: 1; display: flex !important; }
  body.gw .cal-headrow .gw-head-add .gw-btn { width: 100%; justify-content: center; height: 34px !important; }
}
/* 일정 칸 '+N' 더보기: 잘 보이게 — 작은 회색 알약 */
body.gw .cal-more { display: inline-flex !important; align-items: center; height: 18px; margin: 2px 0 0 4px; padding: 0 7px !important; border-radius: 9px; background: #e8edf3 !important; color: #12283f !important; font-size: 11.5px !important; font-weight: 700; text-align: left; line-height: 1; width: auto !important; justify-content: flex-start; }
body.gw .cal-more:hover { background: #12283f !important; color: #fff !important; }
/* 모바일 일정 제목 줄 버튼: 칸 안에 딱 맞게(넘침 X) */
@media (max-width: 768px) {
  body.gw .cal-headrow .cal-nav > a { margin: 0 !important; width: 100%; min-width: 0 !important; padding: 0 !important; justify-content: center; }
  body.gw .cal-headrow .cal-nav > a:nth-child(2) { padding: 0 12px !important; }
  body.gw .cal-headrow .gw-head-add { margin: 0 !important; }
}
body.gw .cal-more { width: fit-content !important; max-width: calc(100% - 8px); justify-self: start; align-self: flex-start; flex: none !important; }
/* 일정 칸 강조: 빈 곳에 올렸을 때만(일정·+N 위에선 X), 터치 화면에선 강조 없음 */
body.gw .cal-cell:has(button:hover, a:hover, [data-ev]:hover, .cal-more:hover) { background: inherit !important; box-shadow: none !important; }
@media (hover: none) { body.gw .cal-cell:hover { background: inherit !important; box-shadow: none !important; } }
body.gw .cal-more { -webkit-tap-highlight-color: transparent; outline: none !important; }
body.gw .cal-cell__events { padding-top: calc(var(--lanes, 0) * var(--slot, 28px)); }
@media (max-width: 768px) { body.gw .cal-cell__events { gap: 3px; } body.gw .cal-more { height: 16px; margin-top: 1px; font-size: 10.5px !important; } }
/* 모바일 알림 창: 화면 폭 꽉(좌우 16px), 목록만 스크롤 */
@media (max-width: 768px) {
  body.gw .gw-noti__panel { position: fixed !important; left: 16px !important; right: 16px !important; top: 58px !important; width: auto !important; max-width: none !important;
    max-height: calc(100dvh - 58px - 88px); display: flex; flex-direction: column; }
  body.gw .gw-noti__panel[hidden] { display: none !important; }
  body.gw .gw-noti__list { flex: 1 1 auto; min-height: 0; max-height: none !important; overflow-y: auto; }
}
body.gw .mgr-go b:empty { display: none; }
body.gw .mgr-go { justify-content: center; text-align: center; }
@media (max-width: 768px) { body.gw .sp-add-pc { display: none !important; } }
body.gw [data-sp-modal] .ep-f .cm-date, body.gw [data-sp-modal] .ep-f .cm-date input { width: 100%; }
/* 모바일 알림: 메신저처럼 전체 화면 + 닫기 */
body.gw .gw-noti__close { display: none; }
@media (max-width: 768px) {
  body.gw .gw-noti__panel { position: fixed !important; inset: 0 !important; top: 0 !important; left: 0 !important; right: 0 !important; width: 100% !important; height: 100% !important; max-height: none !important;
    border-radius: 0 !important; border: 0 !important; box-shadow: none !important; z-index: 1500 !important; display: flex; flex-direction: column; background: #fff; }
  body.gw .gw-noti__panel[hidden] { display: none !important; }
  body.gw .gw-noti__head { flex: none; display: flex; align-items: center; gap: 6px; padding: 14px 16px !important; font-size: 16px; }
  body.gw .gw-noti__head > span { flex: 1; font-weight: 700; }
  body.gw .gw-noti__close { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border: 0; background: none; font-size: 24px; color: #374151; cursor: pointer; }
  body.gw .gw-noti__list { flex: 1 1 auto; min-height: 0; overflow-y: auto; max-height: none !important; }
  body.gw:has(.gw-noti__panel:not([hidden])) .gc-fab { display: none !important; }
}
@media (max-width: 768px) { body.gw .gw-noti__panel { z-index: 3000 !important; } }
/* 상세 결재선: 한 줄에 한 사람씩 세로 나열 — 순번 · 이름 직책 · 상태(오른쪽) · 처리 시각 */
body.gw .ap-r__v:has(> .lv-step) { display: flex !important; flex-direction: column !important; align-items: stretch !important; gap: 0 !important; padding-top: 6px; padding-bottom: 6px; }
body.gw .ap-r__v > .lv-step { display: flex !important; align-items: center; gap: 8px !important; margin: 0 !important; padding: 7px 0 !important; border: 0 !important; border-radius: 0 !important; background: none !important; font-size: 13.5px; color: #111827; max-width: 360px; position: relative; }
body.gw .ap-r__v > .lv-step + .lv-step { border-top: 1px dashed #e5e7eb !important; }
body.gw .ap-r__v > .lv-step::before, body.gw .ap-r__v > .lv-step::after { display: none !important; content: none !important; }
body.gw .ap-r__v > .lv-step > b { width: 20px !important; height: 20px !important; font-size: 11px !important; flex: none; }
body.gw .ap-r__v > .lv-step > em { margin-left: auto; flex: none; }
body.gw .ap-r__v > .lv-step > i { font-style: normal; font-size: 11.5px; color: #9ca3af; flex: none; width: 74px; text-align: right; }
@media (max-width: 768px) {
  body.gw .gw-noti__panel { width: 100vw !important; }
  body.gw .gw-noti__head { border-bottom: 0 !important; }
  body.gw .gw-noti__item { border-radius: 0 !important; margin: 0 !important; border: 0 !important; border-top: 1px solid #eef0f3 !important; }
}
@media (max-width: 768px) { body.gw:has(.gw-noti__panel:not([hidden])) .gw-rail { display: none !important; } }
/* 알림 목록: 종류 아이콘 · 제목/내용 · 시간(오른쪽 위) · 안읽음 점 */
body.gw .gw-noti__item { display: flex !important; align-items: flex-start; gap: 12px; padding: 14px 16px !important; background: #fff !important; position: relative; }
body.gw .gw-noti__item:hover { background: #f8fafc !important; }
body.gw .gw-noti__ic { flex: none; width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: #f1f5f9; color: #475569; }
body.gw .gw-noti__item[data-type="MAIL"] .gw-noti__ic { background: #eff6ff; color: #2563eb; }
body.gw .gw-noti__item[data-type="APPROVAL"] .gw-noti__ic { background: #f0fdf4; color: #16a34a; }
body.gw .gw-noti__item[data-type="CALENDAR"] .gw-noti__ic { background: #fff7ed; color: #ea580c; }
body.gw .gw-noti__item[data-type="MESSENGER"] .gw-noti__ic { background: #f5f3ff; color: #7c3aed; }
body.gw .gw-noti__txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
body.gw .gw-noti__t { font-size: 14px; font-weight: 500; color: #374151; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
body.gw .gw-noti__item.is-unread .gw-noti__t { font-weight: 700; color: #111827; }
body.gw .gw-noti__b { font-size: 12.5px; color: #6b7280; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.gw .gw-noti__time { flex: none; font-size: 11.5px; color: #9ca3af; margin-top: 2px; padding-right: 12px; }
body.gw .gw-noti__item.is-unread::after { content: ""; position: absolute; right: 16px; top: 20px; width: 7px; height: 7px; border-radius: 50%; background: #ef4444; }
@media (max-width: 768px) {
  html:has(body.gw .gw-noti__panel:not([hidden])), body.gw:has(.gw-noti__panel:not([hidden])) { overflow: hidden !important; }
  body.gw .gw-noti__panel { width: auto !important; inset: 0 !important; }
  body.gw .gw-noti__head { height: 56px; padding: 0 8px 0 16px !important; border-bottom: 1px solid #eef0f3 !important; font-size: 17px; }
  body.gw .gw-noti__readall { font-size: 13px; color: #12283f; font-weight: 600; padding: 6px 10px; border-radius: 8px; background: #f1f5f9; border: 0; }
  body.gw .gw-noti__list { scrollbar-width: none; }
  body.gw .gw-noti__list::-webkit-scrollbar { display: none; }
  body.gw .gw-noti__item { border-top: 0 !important; border-bottom: 1px solid #f1f3f6 !important; }
}
@media (max-width: 768px) {
  body.gw:has(.gw-noti__panel:not([hidden])) .gw-header { z-index: 3000 !important; }
  body.gw:has(.gw-noti__panel:not([hidden])) .gw-body, body.gw:has(.gw-noti__panel:not([hidden])) .gw-main { overflow: hidden !important; }
}
@media (max-width: 768px) {
  body.gw .gw-noti__list { scrollbar-width: none !important; }
  body.gw .gw-noti__list::-webkit-scrollbar { width: 0 !important; height: 0 !important; display: none !important; }
  body.gw .gw-noti__head { padding-left: 20px !important; padding-right: 12px !important; }
  body.gw .gw-noti__item { padding-left: 20px !important; padding-right: 20px !important; }
  body.gw .gw-noti__item.is-unread::after { right: 20px; }
  body.gw .gw-noti__time { padding-right: 14px; }
}
/* 알림 항목: 카드 X — 평평한 줄, 사이 선 하나 (PC·모바일 공통) */
body.gw .gw-noti__list { padding: 0 !important; gap: 0 !important; scrollbar-width: thin; }
body.gw .gw-noti__item { border-radius: 0 !important; margin: 0 !important; border: 0 !important; border-bottom: 1px solid #f1f3f6 !important; box-shadow: none !important; }
body.gw .gw-noti__item:last-child { border-bottom: 0 !important; }
@media (min-width: 769px) { body.gw .gw-noti__panel { width: 400px; } }
body.gw .mgr-date input[data-dp-display] { width: 140px; }
/* 직원 출결 관리: 일자·처리·시각·일괄 처리 버튼을 제목 줄 오른쪽에 */
body.gw .mgr-tools { display: flex; align-items: center; gap: 10px; flex-wrap: nowrap; }
body.gw .mgr-bar--head { display: flex !important; align-items: center; gap: 10px; margin: 0 !important; padding: 0 !important; border: 0 !important; flex-wrap: nowrap; }
body.gw .mgr-bar--head .mgr-bar__item { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: #6b7280; white-space: nowrap; }
body.gw .mgr-bar--head .mgr-date input[data-dp-display] { width: 120px; height: 36px; }
body.gw .mgr-bar--head select, body.gw .mgr-bar--head .cm-sel { height: 36px; }
body.gw .mgr-bar--head .mgr-go { margin-left: 4px !important; height: 36px; }
body.gw .mgr-bar--head label.mgr-bar__item .cm-wrap, body.gw .mgr-bar--head label.mgr-bar__item select { width: 92px !important; min-width: 0 !important; }
body.gw .mgr-bar--head .mgr-time .cm-wrap, body.gw .mgr-bar--head .mgr-time select { width: 72px !important; min-width: 0 !important; }
/* 직원 출결 관리: 팀 탭 오른쪽에 일자·처리·시각·일괄 처리 */
body.gw .mgr-bar--tb { display: flex !important; align-items: center; gap: 8px; margin: 0 0 0 auto !important; padding: 0 !important; border: 0 !important; flex-wrap: nowrap; flex: none; }
body.gw .mgr-bar--tb .mgr-bar__item { display: inline-flex; align-items: center; gap: 4px; }
body.gw .mgr-bar--tb .mgr-date input[data-dp-display] { width: 112px; height: 36px; }
body.gw .mgr-bar--tb label.mgr-bar__item .cm-dd { width: 80px !important; min-width: 0 !important; }
body.gw .mgr-bar--tb .mgr-time .cm-dd { width: 64px !important; min-width: 0 !important; }
body.gw .mgr-bar--tb .cm-dd > button, body.gw .mgr-bar--tb .cm-dd__btn { height: 36px !important; }
body.gw .mgr-bar--tb .mgr-go { height: 36px; }
body.gw .ct-toolbar:has(.mgr-bar--tb) { flex-wrap: nowrap !important; gap: 12px; align-items: center; }
body.gw .ct-toolbar .mgr-bar--tb { margin: 0 0 0 auto !important; align-self: center; }
body.gw .mgr-bar--tb .mgr-bar__item { margin: 0 !important; }
body.gw .mgr-bar--tb .cm-dd__btn { width: 100% !important; min-width: 0 !important; padding-left: 10px !important; padding-right: 22px !important; }
body.gw .mgr-bar--tb { gap: 6px; }
body.gw .mgr-bar--tb .mgr-date input[data-dp-display] { width: 104px; padding-left: 10px; padding-right: 8px; }
body.gw .mgr-bar--tb label.mgr-bar__item .cm-dd { width: 74px !important; }
body.gw .mgr-bar--tb .mgr-time .cm-dd { width: 58px !important; }
body.gw .mgr-bar--tb .mgr-time { gap: 3px !important; }
body.gw .mgr-bar--tb .mgr-go { padding: 0 12px !important; }
body.gw .mgr-bar--tb .mgr-time .cm-dd { width: 66px !important; }
body.gw .mgr-bar--tb .mgr-time .cm-dd__btn { padding-left: 10px !important; padding-right: 20px !important; text-overflow: clip !important; }
/* 결재 양식 관리: 안내 문구를 탭 바로 옆 한 줄에 */
body.gw .ct-toolbar:has(.fm-hint) { flex-wrap: nowrap !important; align-items: center; }
body.gw .ct-toolbar .fm-hint { flex: 0 1 auto; width: auto !important; margin: 0 0 0 14px !important; padding: 0 !important; border: 0 !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 12.5px; color: #9ca3af; order: 0; }
body.gw .ct-toolbar:has(.fm-hint) { justify-content: flex-start !important; }
body.gw .ct-toolbar:has(.fm-hint) .ct-toolbar__right { margin-left: auto !important; }
body.gw .ct-toolbar:has(.fm-hint) > .att-sum { margin-right: 0 !important; flex: none !important; }
body.gw .ct-toolbar > .fm-hint { flex: none !important; text-align: left !important; }
body.gw .be-hint { font-size: 12.5px; color: #9ca3af; white-space: nowrap; margin-right: 6px; }
@media (max-width: 1100px) { body.gw .be-hint { display: none; } }
body.gw .be-bar { align-items: center; }
body.gw .be-desc { font-size: 13px; color: #6b7280; }
body.gw a.pager__btn { text-decoration: none !important; display: inline-flex; align-items: center; justify-content: center; }
body.gw a.pager__btn.is-disabled { pointer-events: none; opacity: .4; }
/* 모바일 메일 목록: 체크박스 숨김 · 동그라미 눌러 선택 · 선택 행 남색 테두리 */
@media (max-width: 768px) {
  body.gw .ml-table tbody td:has(> [data-row-check]), body.gw .ml-table thead th:has(> [data-check-all]) { display: none !important; }
  body.gw .ml-table tbody tr:has([data-row-check]:checked) { border-color: #12283f !important; box-shadow: inset 0 0 0 1px #12283f; background: #f5f8fc !important; }
  body.gw .ml-table tbody tr:has([data-row-check]:checked) .ml-avatar { background: #12283f !important; color: transparent !important; position: relative; }
  body.gw .ml-table tbody tr:has([data-row-check]:checked) .ml-avatar::after { content: "✓"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 13px; font-weight: 700; }
  body.gw .ml-avatar { cursor: pointer; }
}
@media (max-width: 768px) { body.gw .ml-table tbody tr { grid-template-columns: 0 minmax(0,1fr) auto !important; column-gap: 0 !important; padding-left: 14px !important; } body.gw .ml-table tbody td.ml-date { padding-left: 8px; } }
/* 상태 선택 색: 재직 초록 · 정지 주황 · 퇴사 빨강 */
body.gw .cm-wrap[data-tone="status"][data-v="active"] .cm-dd__btn { color: #047857 !important; background: #ecfdf5 !important; border-color: #a7f3d0 !important; font-weight: 600; }
body.gw .cm-wrap[data-tone="status"][data-v="disabled"] .cm-dd__btn { color: #b45309 !important; background: #fffbeb !important; border-color: #fde68a !important; font-weight: 600; }
body.gw .cm-wrap[data-tone="status"][data-v="resigned"] .cm-dd__btn { color: #b91c1c !important; background: #fef2f2 !important; border-color: #fecaca !important; font-weight: 600; }
body.gw .cm-wrap[data-tone="status"] .cm-dd__opt[data-v="active"] { color: #047857; }
body.gw .cm-wrap[data-tone="status"] .cm-dd__opt[data-v="disabled"] { color: #b45309; }
body.gw .cm-wrap[data-tone="status"] .cm-dd__opt[data-v="resigned"] { color: #b91c1c; }
body.gw .mgr-bar--tb .mgr-date input[data-dp-display], body.gw .mgr-bar--tb .mgr-go { height: 36px !important; min-height: 36px !important; box-sizing: border-box; padding-top: 0 !important; padding-bottom: 0 !important; }
body.gw .mgr-bar--tb .mgr-time .cm-dd__btn { color: #111827 !important; }
body.gw .ev-row__label .req { color: #dc2626; font-style: normal; }
/* 결재 양식 편집: 2단(필드 구성 | 양식 정보), 왼쪽만 스크롤, 하단 버튼 줄 */
body.gw .gw-main > .bd-form.ap-fb-form { flex: 1 1 auto !important; min-height: 0 !important; max-width: none !important; }
body.gw .ap-fb-form .ev-layout { grid-template-rows: minmax(0, 1fr); overflow: hidden !important; }
body.gw .ap-fb-form .ap-fb-main { overflow-y: auto !important; min-height: 0; scrollbar-width: none; display: block !important; }
body.gw .ap-fb-form .ap-fb-main::-webkit-scrollbar { display: none; }
body.gw .ap-fb-form .ap-fb-main > .gw-btn[data-fb-add] { margin-top: 12px; }
/* 알림 창: 읽은 알림 보기 토글 · 더 보기 */
body.gw .gw-noti__head { display: flex; align-items: center; gap: 6px; }
body.gw .gw-noti__head > span { flex: 1; }
body.gw .gw-noti__toggle { border: 1px solid #e5e7eb; background: #fff; color: #4b5563; font-size: 12px; font-weight: 600; height: 28px; padding: 0 10px; border-radius: 8px; cursor: pointer; }
body.gw .gw-noti__toggle.is-on { background: #12283f; border-color: #12283f; color: #fff; }
body.gw .gw-noti__more { display: block; width: 100%; height: 44px; border: 0; border-top: 1px solid #f1f3f6; background: #fff; color: #12283f; font-size: 13px; font-weight: 600; cursor: pointer; }
body.gw .gw-noti__more:hover { background: #f8fafc; }
/* 컨텐츠 권한 관리: 요약 표 + 권한 설정 창 */
body.gw .pm-role { color: #6b7280; font-size: 13px; }
body.gw .pm-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px 0; }
body.gw .pm-chip { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; border-radius: 13px; background: #f1f5f9; font-size: 12.5px; }
body.gw .pm-chip em { font-style: normal; color: #9ca3af; font-size: 11.5px; }
body.gw .pm-table td { white-space: normal !important; }
body.gw .pm-mid .al-mid__grp { gap: 8px; }
body.gw .pm-mid button { white-space: nowrap; }
body.gw .pm-picks { display: flex; flex-direction: column; }
body.gw .pm-picks .al-picks__sec { flex: 1 1 0; min-height: 0; display: flex; flex-direction: column; border-bottom: 0; }
body.gw .pm-picks .al-picks__sec:last-child { border-bottom: 0; }
body.gw .pm-picks .al-picks__h small { font-weight: 400; color: #9ca3af; margin-left: 4px; }
body.gw .pm-picks .pm-n { float: right; color: #12283f; }
body.gw .pm-picks .al-pick { cursor: default; padding: 5px 8px; margin-bottom: 4px; }
body.gw .pm-picks .al-pick em { font-style: normal; color: #9ca3af; font-size: 11.5px; }
body.gw .al-pick__x { border: 0; background: none; color: #9ca3af; font-size: 16px; cursor: pointer; padding: 0 2px; }
body.gw .al-pick__x:hover { color: #b91c1c; }
body.gw .modal__panel.pm-modal { width: min(1080px, 96vw) !important; max-width: min(1080px, 96vw) !important; }
body.gw .pm-modal .al-body { grid-template-columns: 200px minmax(0, 1fr) 116px 300px; height: 540px; }
body.gw .pm-modal .al-mid { justify-content: center; padding: 0 10px; }
body.gw .pm-modal .al-mid__grp { display: flex; flex-direction: column; gap: 10px; }
body.gw .pm-modal .al-mid button { width: 100%; }
body.gw .bd-layout .tox-tinymce { border-radius: 10px; border-color: #e5e7eb; }
body.gw textarea[data-bd-cke] { min-height: 420px; }
/* 채팅 새 메시지 알림(PC): 알림 종 아래 오른쪽 위에서, 알림 목록 항목과 같은 모양 */
@media (min-width: 769px) {
  body.gw .gc-toasts { top: 64px !important; right: 20px !important; left: auto !important; bottom: auto !important; width: 380px; gap: 8px; }
  body.gw .gc-toast { align-items: flex-start; gap: 12px; padding: 14px 12px 14px 16px !important; border: 1px solid #e5e7eb !important; border-radius: 12px !important;
    background: #fff; box-shadow: 0 10px 30px rgba(10,26,47,.14); animation: gcToastSlide .22s ease-out; cursor: pointer; }
  body.gw .gc-toast .gc-ava { flex: none; width: 36px !important; height: 36px !important; border-radius: 50% !important; background: #f5f3ff !important; color: #7c3aed !important; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
  body.gw .gc-toast__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
  body.gw .gc-toast__top { display: flex; align-items: baseline; gap: 6px; font-size: 14px; color: #111827; }
  body.gw .gc-toast__top b { font-weight: 700; }
  body.gw .gc-toast__top span { font-size: 12px; color: #9ca3af; }
  body.gw .gc-toast__top::after { content: "메신저"; margin-left: auto; font-size: 11.5px; color: #7c3aed; font-weight: 600; }
  body.gw .gc-toast__msg { font-size: 13px; color: #4b5563; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  body.gw .gc-toast__x { flex: none; border: 0; background: none; color: #9ca3af; font-size: 18px; line-height: 1; cursor: pointer; padding: 0 2px; }
  body.gw .gc-toast.is-out { opacity: 0; transform: translateX(20px); transition: opacity .2s, transform .2s; }
}
@keyframes gcToastSlide { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
/* 메신저: 이모지만 보낸 메시지 — 말풍선 없이 크게 */
body.gw .gc-bubble.gc-bubble--emoji, body.gw .gc-msg.me .gc-bubble.gc-bubble--emoji { background: none !important; border: 0 !important; padding: 0 2px !important; font-size: 34px; line-height: 1.15; letter-spacing: 2px; }
/* 메신저 버튼: 왼쪽 메뉴(레일) 맨 아래 고정 — 그룹웨어·관리자 화면 공통(PC) */
@media (min-width: 769px) {
  body.gw .gw-rail { display: flex; flex-direction: column; }
  body.gw .gw-rail > .gw-rail__chat { margin-top: auto !important; }
}
/* 헤더 출퇴근 버튼 */
body.gw .gw-punch { position: relative; margin-right: 6px; }
body.gw .gw-punch__btn { height: 36px; padding: 0 14px; border-radius: 10px; font: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; border: 1px solid transparent; white-space: nowrap; }
body.gw .gw-punch__btn small { font-size: 11.5px; font-weight: 500; opacity: .8; }
body.gw .gw-punch__btn.is-in { background: #12283f; color: #fff; }
body.gw .gw-punch__btn.is-out { background: #fff; color: #12283f; border-color: #12283f; }
body.gw .gw-punch__btn.is-done { background: #f3f4f6; color: #6b7280; border-color: #e5e7eb; cursor: default; }
body.gw .gw-punch__pop { position: absolute; top: calc(100% + 8px); right: 0; z-index: 70; width: 260px; background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; box-shadow: 0 10px 30px rgba(10,26,47,.16); padding: 16px; display: flex; flex-direction: column; gap: 8px; }
body.gw .gw-punch__pop[hidden] { display: none; }
body.gw .gw-punch__pop b { font-size: 14.5px; color: #111827; }
body.gw .gw-punch__now { margin: 0; font-size: 13px; color: #6b7280; }
body.gw .gw-punch__reason { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; color: #b45309; }
body.gw .gw-punch__reason input { height: 36px; border: 1px solid #d1d5db; border-radius: 8px; padding: 0 10px; font: inherit; font-size: 13.5px; color: #111827; }
body.gw .gw-punch__acts { display: flex; justify-content: flex-end; gap: 6px; margin-top: 4px; }
@media (max-width: 768px) {
  body.gw .gw-punch__btn { height: 32px; padding: 0 10px; font-size: 12.5px; }
  body.gw .gw-punch__btn small { display: none; }
  body.gw .gw-punch__pop { position: fixed; top: 58px; right: 12px; left: 12px; width: auto; }
}
/* 헤더 출퇴근: 출퇴근 카드 축소판 한 줄 */
body.gw .gw-punch__bar { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 4px 0 14px; border: 1px solid #e5e7eb; border-radius: 12px; background: #fff; white-space: nowrap; }
body.gw .gw-punch__clock { font-size: 15px; font-weight: 800; color: #111827; font-variant-numeric: tabular-nums; letter-spacing: .02em; min-width: 64px; }
body.gw .gw-punch__st { font-size: 12px; font-weight: 700; }
body.gw .gw-punch__st.is-before { color: #c2410c; }
body.gw .gw-punch__st.is-work { color: #047857; }
body.gw .gw-punch__st.is-done { color: #6b7280; }
body.gw .gw-punch__net { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; color: #6b7280; padding-right: 10px; border-right: 1px solid #eef0f3; }
body.gw .gw-punch__net::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #f59e0b; }
body.gw .gw-punch__net.is-office::before { background: #10b981; }
body.gw .gw-punch__t { font-size: 11.5px; color: #6b7280; display: inline-flex; align-items: baseline; gap: 4px; }
body.gw .gw-punch__t b { font-size: 14px; font-weight: 800; color: #111827; font-variant-numeric: tabular-nums; }
body.gw .gw-punch__bar .gw-punch__btn { height: 32px; padding: 0 14px; border-radius: 9px; margin-left: 4px; font-size: 13px; }
@media (max-width: 1100px) { body.gw .gw-punch__t, body.gw .gw-punch__net { display: none; } }
@media (max-width: 768px) {
  body.gw .gw-punch__bar { height: 34px; gap: 6px; padding: 0 3px 0 10px; border-radius: 10px; }
  body.gw .gw-punch__clock { font-size: 13px; min-width: 0; }
  body.gw .gw-punch__st { display: none; }
  body.gw .gw-punch__bar .gw-punch__btn { height: 28px; padding: 0 10px; font-size: 12px; }
}
/* 일정 / 근태 메뉴 분리: 일정 모드는 근태 묶음 숨김, 근태 모드는 근태 묶음만 */
body.gw .cal-side.is-cal-mode .cal-side__sec--att { display: none !important; }
body.gw .cal-side.is-att-mode .gw-subnav__nav > .gw-subnav__sec:not(.cal-side__sec--att),
body.gw .cal-side.is-att-mode > .gw-subnav__add,
body.gw .cal-side.is-att-mode .gw-subnav__trash { display: none !important; }
body.gw .cal-side.is-att-mode .cal-side__sec--att { border-top: 0 !important; margin-top: 0 !important; padding-top: 0 !important; }
body.gw .gw-punch__clock { min-width: 86px; }
@media (max-width: 768px) { body.gw .gw-punch__clock { min-width: 0; } }
body.gw .gw-punch__st.is-done { display: none; }
/* 헤더 출퇴근 줄: 세로 가운데·간격 균일 */
body.gw .gw-punch__bar { gap: 0 !important; padding: 0 4px 0 16px !important; }
body.gw .gw-punch__bar > * { display: inline-flex !important; align-items: center !important; line-height: 1 !important; }
body.gw .gw-punch__clock { min-width: 0 !important; margin-right: 12px; font-size: 15px; }
body.gw .gw-punch__st { margin-right: 10px; font-size: 12.5px; }
body.gw .gw-punch__net { gap: 5px; font-size: 12px; padding-right: 14px !important; margin-right: 14px; border-right: 1px solid #e5e7eb; height: 16px; }
body.gw .gw-punch__t { gap: 6px !important; margin-right: 14px; font-size: 12px; }
body.gw .gw-punch__t b { font-size: 14px; line-height: 1; }
body.gw .gw-punch__bar .gw-punch__btn { margin-left: 2px !important; }
@media (max-width: 768px) { body.gw .gw-punch__clock { margin-right: 8px; font-size: 13px; } }
/* 왼쪽 메뉴(레일)가 화면보다 길면 안쪽만 스크롤 — 메신저는 항상 맨 아래에 보이게 */
@media (min-width: 769px) {
  body.gw .gw-rail { overflow-y: auto; overflow-x: hidden; scrollbar-width: none; }
  body.gw .gw-rail::-webkit-scrollbar { display: none; }
  body.gw .gw-rail > .gw-rail__chat { position: sticky; bottom: 0; background: inherit; padding-bottom: 6px; z-index: 1; }
}
@media (min-width: 769px) and (max-height: 900px) {
  body.gw .gw-rail > a, body.gw .gw-rail > button { padding-top: 5px !important; padding-bottom: 5px !important; gap: 3px !important; }
  body.gw .gw-rail .gw-rail__ic { width: 34px !important; height: 34px !important; }
}
/* 게시판 안 읽은 글: 옆 메뉴 숫자 · 목록 굵게 + N */
body.gw .gw-subnav__sub:has(.bd-unread-cnt) { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
body.gw .bd-unread-cnt { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: #12283f; color: #fff; font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
body.gw tr.bd-unread .mb-name { font-weight: 700 !important; color: #111827; }
body.gw .bd-new { display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; margin-left: 5px; border-radius: 50%; background: #ef4444; color: #fff; font-size: 9.5px; font-weight: 800; vertical-align: middle; }
body.gw .bd-readers--bottom { margin-top: 24px; padding-top: 14px; border-top: 1px solid #eef0f3; }
/* 메신저: 상대 입력 중… */
body.gw .gc-typing { display: flex; align-items: center; gap: 8px; padding: 4px 16px 8px; font-size: 12px; color: #6b7280; }
body.gw .gc-typing[hidden] { display: none; }
body.gw .gc-typing__dots { display: inline-flex; gap: 3px; padding: 6px 9px; background: #fff; border: 1px solid #e6eaee; border-radius: 12px; }
body.gw .gc-typing__dots i { width: 5px; height: 5px; border-radius: 50%; background: #9ca3af; animation: gcDot 1.2s infinite ease-in-out; }
body.gw .gc-typing__dots i:nth-child(2) { animation-delay: .15s; }
body.gw .gc-typing__dots i:nth-child(3) { animation-delay: .3s; }
@keyframes gcDot { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-3px); opacity: 1; } }
body.gw .gc-typing { background: transparent; }
/* 헤더 폭별 정리(정렬용 display:inline-flex !important 보다 뒤에서 덮어씀) */
@media (max-width: 1100px) {
  body.gw .gw-punch__bar > .gw-punch__t, body.gw .gw-punch__bar > .gw-punch__net { display: none !important; }
  body.gw .gw-punch__st { margin-right: 10px; }
}
@media (max-width: 960px) {
  body.gw .gw-header__right > .gw-home, body.gw .gw-header__right > span:has(> strong) { display: none !important; }
}
@media (max-width: 768px) {
  body.gw .gw-punch__bar > .gw-punch__st { display: none !important; }
  body.gw .gw-punch__bar { padding: 0 3px 0 10px !important; }
  body.gw .gw-punch__clock { margin-right: 6px !important; }
  body.gw .gw-header__right { gap: 6px; min-width: 0; }
}
@media (max-width: 400px) {
  body.gw .gw-punch__clock { font-size: 12px !important; }
  body.gw .gw-punch__bar .gw-punch__btn { padding: 0 8px !important; font-size: 11.5px !important; }
}
/* 아주 좁은 화면(≤380): 로고·로그아웃 줄여 넘침 방지 */
@media (max-width: 380px) {
  body.gw .gw-header img[src*="logo-horizontal"] { height: 16px !important; width: auto !important; }
  body.gw .gw-logout { padding: 0 8px !important; font-size: 12px !important; height: 30px !important; }
  body.gw .gw-header__right { gap: 4px !important; }
  body.gw .gw-noti__btn { width: 30px !important; }
}
/* 관리자 레일 '메신저 관리' 한 줄 */
body.gw .gw-rail > a, body.gw .gw-rail > button { white-space: nowrap; letter-spacing: -.02em; }
/* 직원 출결 관리 도구: 줄어들어 글자가 잘리지 않게 — 자리가 모자라면 탭 아래 줄로 */
body.gw .ct-toolbar:has(.mgr-bar--tb) { flex-wrap: wrap !important; row-gap: 10px; }
body.gw .mgr-bar--tb { flex: none !important; margin-left: auto !important; }
body.gw .mgr-bar--tb > *, body.gw .mgr-bar--tb .cm-dd, body.gw .mgr-bar--tb .mgr-time { flex: none !important; }
body.gw .mgr-bar--tb label.mgr-bar__item .cm-dd { width: 84px !important; }
body.gw .mgr-bar--tb .mgr-time .cm-dd { width: 70px !important; }
body.gw .mgr-bar--tb .cm-dd__btn { text-overflow: clip !important; }
body.gw .ct-toolbar:has(.mgr-bar--tb) { height: auto !important; min-height: 36px; align-items: center; }
body.gw .mgr-bar--tb .cm-dd__btn { padding-left: 10px !important; padding-right: 20px !important; }
body.gw .mgr-bar--tb label.mgr-bar__item .cm-dd { width: 72px !important; }
body.gw .mgr-bar--tb .mgr-time .cm-dd { width: 60px !important; }
body.gw .mgr-bar--tb .mgr-date input[data-dp-display] { width: 102px !important; }
body.gw .mgr-bar--tb { gap: 6px !important; }
body.gw .gw-main .ct-toolbar:has(.mgr-bar--tb) { flex: none !important; }
body.gw .mgr-bar--tb .mgr-time .cm-dd { width: 66px !important; }
body.gw .mgr-bar--tb .mgr-time .cm-dd__btn { padding-right: 18px !important; }
body.gw .mgr-bar--tb .cm-dd__btn > span:first-child { overflow: visible !important; flex: 1 0 auto; }
/* 일정 수정 모달: 작성·수정 줄 + 수정 이력 */
body.gw .ev-logbar { display: flex; align-items: center; gap: 10px; padding: 10px 24px 0; }
body.gw .ev-logbar[hidden], body.gw .ev-hist[hidden] { display: none; }
body.gw .ev-logbar .ev-log { margin: 0; flex: 1; min-width: 0; }
body.gw .ev-log__btn { flex: none; height: 26px; padding: 0 10px; font: inherit; font-size: 12px; color: #374151; background: #fff; border: 1px solid #d8dde3; border-radius: 6px; cursor: pointer; }
body.gw .ev-log__btn.is-on { background: #12283f; border-color: #12283f; color: #fff; }
body.gw .ev-hist { margin: 8px 24px 0; max-height: 180px; overflow-y: auto; border: 1px solid #e6eaee; border-radius: 8px; background: #fafbfc; padding: 4px 12px; font-size: 12.5px; }
body.gw .ev-hist__item { padding: 8px 0; border-bottom: 1px solid #eef1f4; }
body.gw .ev-hist__item:last-child { border-bottom: 0; }
body.gw .ev-hist__head { color: #374151; }
body.gw .ev-hist__head span { float: right; color: #9ca3af; font-size: 12px; }
body.gw .ev-hist ul { margin: 4px 0 0; padding-left: 16px; color: #4b5563; line-height: 1.6; }
body.gw .ev-hist__note, body.gw .ev-hist__empty { margin: 4px 0 0; color: #9ca3af; }
/* 휴대폰·PC 알림(웹 푸시): 알림 패널 안 줄 + 처음 안내 배너 */
body.gw .gw-push { display: flex; align-items: center; gap: 10px; padding: 10px 16px; background: #f5f7fa; border-bottom: 1px solid #e6eaee; font-size: 12.5px; color: #374151; }
body.gw .gw-push__txt { flex: 1; min-width: 0; line-height: 1.5; }
body.gw .gw-push__txt--err { color: #b91c1c; }
body.gw .gw-push__dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #10b981; margin-right: 6px; vertical-align: 1px; }
body.gw .gw-push__btn { flex: none; height: 28px; padding: 0 12px; border-radius: 6px; border: 0; background: #12283f; color: #fff; font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }
body.gw .gw-push__btn--ghost { background: #fff; color: #4b5563; border: 1px solid #d8dde3; font-weight: 500; }
body.gw .gw-push-prompt { position: fixed; right: 20px; bottom: 20px; z-index: 9000; width: 340px; max-width: calc(100vw - 32px); display: flex; flex-direction: column; gap: 12px;
  padding: 16px 18px; background: #fff; border: 1px solid #e6eaee; border-radius: 12px; box-shadow: 0 12px 32px rgba(17,24,39,.16); font-size: 13px; color: #374151; }
body.gw .gw-push-prompt__body { display: flex; flex-direction: column; gap: 4px; line-height: 1.55; }
body.gw .gw-push-prompt__body > b { font-size: 14px; color: #111827; }
body.gw .gw-push-prompt__act { display: flex; justify-content: flex-end; gap: 8px; }
body.gw .gw-push-prompt__act button { height: 32px; padding: 0 14px; border-radius: 7px; border: 1px solid #d8dde3; background: #fff; color: #4b5563; font: inherit; font-size: 13px; cursor: pointer; }
body.gw .gw-push-prompt__act button.is-primary { background: #12283f; border-color: #12283f; color: #fff; font-weight: 600; }
@media (max-width: 768px) {
  body.gw .gw-push-prompt { left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); width: auto; }
}
/* 메일: 긴 제목은 잘라 버리지 않고 줄바꿈(목록 모바일 2줄, 상세는 전체), 긴 첨부 이름도 화면 안에서 줄바꿈 */
body.gw .gw-main:has(.ml-detail) h1.gw-h1-back { align-items: flex-start; }
body.gw .gw-main:has(.ml-detail) h1.gw-h1-back .gw-h1-text { white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; line-height: 1.4; }
body.gw .ml-att { max-width: 100%; box-sizing: border-box; align-items: flex-start; }
body.gw .ml-att__nm { min-width: 0; overflow-wrap: anywhere; word-break: break-all; line-height: 1.45; }
@media (max-width: 768px) {
  body.gw .ml-table .ml-subj__t { display: -webkit-box !important; -webkit-box-orient: vertical; -webkit-line-clamp: 2; white-space: normal !important;
    overflow: hidden; text-overflow: clip; overflow-wrap: anywhere; max-width: calc(100% - 40px) !important; line-height: 1.45; }
}
@media (max-width: 768px) {
  /* 제목이 날짜 칸 폭에 눌리지 않게: 제목은 둘째 줄 전체, 별은 오른쪽 끝(아래 미리보기 줄) */
  body.gw .ml-table tbody tr { grid-template-areas: "chk from date" "chk subj subj" "chk lbl star" !important; }
  body.gw .ml-table td.ml-subj { min-width: 0; }
  body.gw .ml-table .ml-subj a { white-space: normal !important; }
  body.gw .ml-table .ml-subj__t { max-width: 100% !important; vertical-align: top; }
  body.gw .ml-table td:nth-child(2) { align-self: center; }
}
@media (max-width: 768px) {
  body.gw .ml-table tbody tr { grid-template-areas: "chk from date" "chk subj subj" "chk lbl lbl" !important; position: relative; }
  body.gw .ml-table tbody td:nth-child(2) { position: absolute !important; right: 12px; bottom: 10px; padding: 0 !important; }
  body.gw .ml-table td.ml-subj { padding-right: 22px !important; }
  body.gw .ml-table .ml-subj__t { display: -webkit-inline-box !important; max-width: calc(100% - 22px) !important; }
  body.gw .ml-table .ml-clip { vertical-align: top !important; }
}
/* 스크롤바 자동 숨김(PC): 평소 투명, 스크롤 중(.gw-scrolling)에만 얇게 표시 — 자리는 유지돼 내용이 흔들리지 않음.
   :where() 로 우선순위 0 → 일부러 숨긴 곳(scrollbar-width:none)은 그대로. */
@media (hover: hover) and (pointer: fine) {
  :where(html:has(> body.gw), body.gw, body.gw *) { scrollbar-width: thin; scrollbar-color: transparent transparent; }
  :where(html.gw-scrolling, body.gw .gw-scrolling) { scrollbar-color: rgba(107, 114, 128, .5) transparent; }
  /* 따로 색을 정해 두었던 스크롤 영역도 같은 방식으로 */
  body.gw .tk-grid, body.gw .att-scroll__in, body.gw .ab-modal__list, body.gw .tk-col__cards, body.gw .gc-panel--full > .gc-body { scrollbar-color: transparent transparent !important; }
  body.gw .tk-grid.gw-scrolling, body.gw .att-scroll__in.gw-scrolling, body.gw .ab-modal__list.gw-scrolling,
  body.gw .tk-col__cards.gw-scrolling, body.gw .gc-panel--full > .gc-body.gw-scrolling { scrollbar-color: rgba(107, 114, 128, .5) transparent !important; }
}
/* 게시물 본문: HTML(에디터) 글은 줄바꿈 문자를 공백으로(pre-wrap 이면 태그 사이 줄바꿈이 큰 빈칸이 됨), 목록 번호는 본문 안쪽으로 */
body.gw .bd-post__body:has(p, div, ol, ul, h1, h2, h3, h4, table, br) { white-space: normal; }
body.gw .bd-post__body ol, body.gw .bd-post__body ul { padding-left: 1.6em; margin: 6px 0 14px; }
body.gw .bd-post__body li { margin: 3px 0; }
body.gw .bd-post__body p { margin: 0 0 10px; }
body.gw .bd-post__body h1, body.gw .bd-post__body h2, body.gw .bd-post__body h3, body.gw .bd-post__body h4 { margin: 22px 0 8px; line-height: 1.4; }
body.gw .bd-post__body h3 { font-size: 17px; }
body.gw .bd-post__body > :first-child { margin-top: 0; }
body.gw .bd-post__body img, body.gw .bd-post__body table { max-width: 100%; }

/* ===== A · 왼쪽 서브메뉴: 평소 닫힘(본문 넓게), 레일·메뉴에 마우스 올리면 본문 위로 펼침 (PC) ===== */
@media (min-width: 769px) {
  body.gw .gw-body { position: relative; }
  body.gw .gw-body > .gw-subnav { display: flex !important; position: absolute !important; top: 12px !important; bottom: 12px; left: 88px; height: auto !important; z-index: 40; box-shadow: 0 12px 32px rgba(15,23,42,.18) !important; visibility: hidden; }   /* 애니메이션 없이 바로 열고 닫음 */
  /* 열기·닫기는 레일 스크립트가 is-open 으로(fragments rail). 메뉴 위·메뉴 안 입력 중(focus)이면 계속 열림 */
  body.gw .gw-body > .gw-subnav.is-open, body.gw .gw-body > .gw-subnav:hover, body.gw .gw-body > .gw-subnav:focus-within { visibility: visible; }
  /* 접기·펼치기 버튼은 필요 없음 */
  body.gw .gw-rail-expand, body.gw [data-subnav-toggle] { display: none !important; }
  /* 다른 메뉴 미리보기(사본): 링크·쓰기 버튼만 동작, 나머지 버튼·입력은 막음 */
  body.gw .gw-subnav--fly button:not([fly-click]), body.gw .gw-subnav--fly input, body.gw .gw-subnav--fly select, body.gw .gw-subnav--fly label { pointer-events: none; }
  body.gw .gw-subnav--fly .gw-subnav__collapse { display: none; }
}
@media (min-width: 769px) {
  /* 접기 버튼만 있던 하단 줄(메일 등)은 빈 칸이라 숨김 — 휴지통 등 다른 버튼 있는 줄은 그대로 */
  body.gw .gw-subnav__foot:has(> .gw-subnav__collapse:only-child) { display: none; }
  /* 메일 읽기: 답장·삭제 등 버튼 줄을 제목 줄(72px) 바로 아래 고정 — 여백은 안쪽 패딩으로 옮겨 위치 그대로 */
  body.gw .gw-main > .ml-detail__acts--top { position: sticky !important; top: 72px; z-index: 4; background: #fff; margin: -8px -28px 8px !important; padding: 8px 28px !important; }
}
/* 모바일 로그아웃: 헤더에서 빼고 하단 [더보기] 판 안 타일로 */
.gw-rail__logout { display: none; }
@media (max-width: 768px) {
  body.gw .gw-header .gw-header__right > form:has(.gw-logout) { display: none !important; }
  body.gw.rail-more-open .gw-rail > .gw-rail__logout { display: block; margin: 0; }
  body.gw.rail-more-open .gw-push-prompt { display: none !important; }   /* 알림 안내 창이 더보기 판을 가리지 않게 */
  body.gw .gw-rail__logout button { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 3px; border: 0; background: none; font: inherit; font-size: 10px; color: #b91c1c; cursor: pointer; padding: 4px 2px; }
  body.gw .gw-rail__logout .gw-rail__ic { width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; }
  body.gw .gw-rail__logout svg { width: 20px; height: 20px; }
}
/* 모바일 하단 메뉴 편집 · 당겨서 새로고침(앱 모드) */
.gw-rail__edit, .gw-ptr { display: none; }
@media (max-width: 768px) {
  body.gw:not(.rail-more-open) .gw-rail > .gw-rail__chat.is-mm-off { display: none !important; }
  body.gw.rail-more-open .gw-rail > .gw-rail__edit { display: block; grid-column: 1 / 3; border: 0; border-top: 1px solid #eef0f3; margin-top: 4px; padding: 8px 0 0; background: none; font: inherit; font-size: 12px; color: #12283f; cursor: pointer; }
  body.gw.rail-more-open .gw-rail > .gw-rail__edit + .gw-rail__more { grid-column: 3 / -1; margin-left: -3px; }
  /* 편집·닫기 한 줄: 높이 맞춰 윗선 같은 위치, 칸 간격(6px)만큼 이어 붙여 선 끊김 없게 */
  body.gw.rail-more-open .gw-rail > .gw-rail__edit { align-self: stretch; display: flex; align-items: center; justify-content: center; margin-right: -3px; }
  body.gw.rail-more-open .gw-rail > .gw-rail__edit + .gw-rail__more { align-self: stretch; }
  body.gw.rail-edit .gw-rail > .gw-rail__edit { font-weight: 700; }
  body.gw.rail-edit .gw-rail > .gw-rail__logout { opacity: .35; pointer-events: none; }
  body.gw.rail-edit .gw-rail > a, body.gw.rail-edit .gw-rail > .gw-rail__chat { position: relative; opacity: .45; }
  body.gw.rail-edit .gw-rail > .is-picked { opacity: 1; }
  body.gw:not(.rail-more-open) .gw-rail > [style*="--mm-order"] { order: var(--mm-order); }
  body.gw:not(.rail-more-open) .gw-rail > .gw-rail__more { order: 99; }
  body.gw.rail-edit .gw-rail > .is-picked::after { content: attr(data-pick-n); position: absolute; top: 0; left: 14%; width: 16px; height: 16px; border-radius: 50%; background: #12283f; color: #fff; font-size: 10px; font-weight: 700; line-height: 16px; text-align: center; }
  .gw-rail__edit.is-shake { animation: gwShake .3s; color: #b91c1c !important; }
  @keyframes gwShake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
  .gw-ptr { display: flex; position: fixed; top: 8px; left: 50%; z-index: 2000; width: 36px; height: 36px; margin-top: -40px; align-items: center; justify-content: center; border-radius: 50%; background: #fff; box-shadow: 0 2px 10px rgba(15,23,42,.18); color: #9ca3af; font-size: 20px; opacity: 0; transform: translate(-50%,0); pointer-events: none; }
  .gw-ptr.is-ready { color: #12283f; }
  .gw-ptr.is-loading span { display: inline-block; animation: gwSpin .8s linear infinite; }
  @keyframes gwSpin { to { transform: rotate(360deg); } }
}
/* 관리자 비밀번호 초기화 결과(임시 비밀번호 1회 표시) */
.pw-temp { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0 0 14px; padding: 12px 16px; border: 1px solid #fcd34d; border-radius: 10px; background: #fffbeb; font-size: 14px; color: #78350f; }
.pw-temp code { padding: 4px 10px; border-radius: 6px; background: #fff; border: 1px solid #fcd34d; font-size: 16px; font-weight: 700; letter-spacing: .04em; color: #111827; user-select: all; }
.pw-temp span { flex-basis: 100%; font-size: 12px; color: #92400e; }

/* ===== 공통 첨부 상자(fragments :: attachBox): 끌어다 놓기 칸 + 파일 칩 ===== */
.gw-attach { width: 100%; min-width: 0; }
.gw-attach__drop { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; padding: 10px 12px; border: 1.5px dashed #d9dde3; border-radius: 10px; background: #fafbfc; transition: border-color .15s, background .15s; }
.gw-attach__drop.is-drag { border-color: var(--navy); background: #f1f5f9; }
.gw-attach__msg { font-size: 13px; color: #6b7280; white-space: nowrap; }
.gw-attach .gw-attach__pick { height: 32px; padding: 0 14px; font-size: 13px; white-space: nowrap; flex: none; }
.gw-attach__cap { flex: 1 1 auto; text-align: right; font-size: 12px; color: #9ca3af; line-height: 1.5; white-space: nowrap; }   /* 한 줄. 정말 좁으면 줄 바꿈 */
.gw-attach__cap.is-err { white-space: normal; }
.gw-attach__cap.is-err { color: #b91c1c; font-weight: 600; }
.gw-attach__chips { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.gw-attach__chips:empty { display: none; }
.gw-attach__chip { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; height: 30px; padding: 0 6px 0 4px; border: 1px solid #e5e7eb; border-radius: 999px; background: #fff; font-size: 12.5px; color: #374151; }
.gw-attach__chip.is-big { border-color: #bfd4f6; background: #f3f8ff; }
.gw-attach__ext { flex: none; min-width: 34px; height: 22px; padding: 0 6px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 700; letter-spacing: .02em; color: #475569; background: #eef1f5; }
.gw-attach__ext[data-ext=PDF] { color: #b42318; background: #fdecea; }
.gw-attach__ext:is([data-ext=JPG],[data-ext=JPEG],[data-ext=PNG],[data-ext=GIF],[data-ext=WEBP],[data-ext=HEIC]) { color: #067647; background: #e6f6ee; }
.gw-attach__ext:is([data-ext=XLS],[data-ext=XLSX],[data-ext=CSV]) { color: #0f6b3a; background: #e3f3e9; }
.gw-attach__ext:is([data-ext=DOC],[data-ext=DOCX],[data-ext=HWP],[data-ext=HWPX],[data-ext=TXT]) { color: #1d4ed8; background: #e8effd; }
.gw-attach__ext:is([data-ext=PPT],[data-ext=PPTX]) { color: #c2410c; background: #fdeee3; }
a.gw-attach__nm { color: inherit; text-decoration: none; }
a.gw-attach__nm:hover { text-decoration: underline; }
.gw-attach__chip.is-removed .gw-attach__nm { text-decoration: line-through; color: #9ca3af; }
.gw-attach__nm { min-width: 0; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gw-attach__sz { flex: none; font-style: normal; color: #9ca3af; }
.gw-attach__x { flex: none; width: 20px; height: 20px; border: 0; border-radius: 50%; background: none; color: #94a3b8; font-size: 15px; line-height: 1; cursor: pointer; }
.gw-attach__x:hover { background: #fee2e2; color: #b91c1c; }
.gw-attach__chip > input[type=checkbox][hidden] { display: none !important; }   /* 올린 파일 삭제 표시용 숨은 체크박스(공통 체크박스 스타일이 보이게 만듦) */

/* ===== 조직도 (연락처 › 조직도, tab=org): 대표 → 선 → 부서 기둥. 본문 안에서만 스크롤 ===== */
body.gw .oc { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.oc-scroll { flex: 1; min-height: 0; overflow: auto; padding: 8px 0 24px; scrollbar-width: thin; }
.oc-tree { width: max-content; min-width: 100%; }
.oc-top { position: relative; display: flex; justify-content: center; padding-bottom: 22px; }
.oc-top::after { content: ''; position: absolute; left: 50%; bottom: 0; height: 22px; border-left: 1.5px solid #cbd5e1; }
.oc-cols { display: flex; justify-content: center; gap: 16px; padding: 0 8px; }
.oc-col { position: relative; padding-top: 20px; }
.oc-col::before { content: ''; position: absolute; top: 0; left: -8px; right: -8px; border-top: 1.5px solid #cbd5e1; }
.oc-col:first-child::before { left: 50%; }
.oc-col:last-child::before { right: 50%; }
.oc-col::after { content: ''; position: absolute; top: 0; left: 50%; height: 20px; border-left: 1.5px solid #cbd5e1; }
.oc-col__box { width: 196px; padding: 10px; border: 1px solid #e5e7eb; border-radius: 12px; background: #fff; }
.oc-col__head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 2px 6px 8px; margin-bottom: 4px; border-bottom: 1px solid #eef0f3; }
.oc-col__head b { font-size: 14px; color: #12283f; }
.oc-col__head span { font-size: 12px; color: #9ca3af; }
.oc-team { margin-top: 8px; padding-top: 6px; border-top: 1px dashed #e5e7eb; }
.oc-team__name { padding: 2px 6px 4px; font-size: 12px; font-weight: 600; color: #6b7280; }
.oc-p { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; min-height: 32px; padding: 5px 8px; border: 0; border-radius: 8px; background: none; font: inherit; text-align: left; cursor: pointer; }
.oc-p:hover, .oc-p:focus-visible { background: #f4f6f9; outline: none; }
.oc-p__nm { font-size: 13.5px; color: #1f2937; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.oc-p__pos { flex: none; font-size: 12px; color: #9ca3af; }
.oc-p.is-lead { background: #eef2f7; }
.oc-p.is-lead .oc-p__nm { font-weight: 700; color: #12283f; }
.oc-p__role { flex: none; margin-left: auto; padding: 1px 7px; border-radius: 999px; background: #12283f; color: #fff; font-size: 11px; font-style: normal; font-weight: 600; }
.oc-p__role + .oc-p__pos { margin-left: 0; }
.oc-p--ceo { width: auto; min-width: 180px; justify-content: center; gap: 10px; padding: 12px 22px; border-radius: 12px; background: #12283f; }
.oc-p--ceo:hover, .oc-p--ceo:focus-visible { background: #1d3a5a; }
.oc-p--ceo .oc-p__nm { font-size: 15px; font-weight: 700; color: #fff; }
.oc-p--ceo .oc-p__pos { color: #c7d2e0; }
.oc-card { position: fixed; z-index: 70; width: 248px; padding: 14px 16px; border: 1px solid #e5e7eb; border-radius: 12px; background: #fff; box-shadow: 0 12px 32px rgba(15,23,42,.18); }
.oc-card__nm { font-size: 15px; color: #12283f; }
.oc-card__pos { margin-left: 6px; font-size: 12.5px; color: #6b7280; }
.oc-card__dl { display: grid; grid-template-columns: 56px 1fr; gap: 6px 8px; margin: 10px 0 0; font-size: 13px; }
.oc-card__dl dt { color: #9ca3af; }
.oc-card__dl dd { margin: 0; color: #374151; word-break: break-all; }
.oc-card__btns { display: flex; gap: 6px; margin-top: 12px; }
.oc-card__btns .gw-btn { flex: 1; justify-content: center; }
@media (max-width: 768px) {
  .oc-tree { width: auto; }
  .oc-top::after, .oc-col::before, .oc-col::after { display: none; }
  .oc-top { padding-bottom: 12px; }
  .oc-cols { flex-direction: column; gap: 10px; padding: 0; }
  .oc-col { padding-top: 0; }
  .oc-col__box { width: auto; }
  .oc-card { left: 12px !important; right: 12px; width: auto; top: auto !important; bottom: 16px; }
}
/* 조직도 편집 모드(관리자) */
.oc-tree:not(.has-top) .oc-col::before, .oc-tree:not(.has-top) .oc-col::after { display: none; }
.oc-tree:not(.has-top) .oc-col { padding-top: 0; }
.oc-pick { display: flex; align-items: center; gap: 8px; margin: 2px 0 6px; padding: 6px 8px; border-radius: 8px; background: #f8fafc; font-size: 12px; color: #6b7280; }
.oc-pick > span { flex: none; font-weight: 600; }
.oc-pick select, .oc-pick .cm-dd { flex: 1; min-width: 0; }
.oc-pick--ceo { min-width: 280px; padding: 10px 14px; border: 1px dashed #cbd5e1; background: #fff; font-size: 13px; }
.oc-editbar { flex: none; display: flex; align-items: center; gap: 8px; padding: 12px 0 0; border-top: 1px solid #eef0f3; }
.oc-editbar > span { flex: 1; font-size: 12.5px; color: #6b7280; }
/* 관리자 › 용량 현황: 서비스별/사람별 탭 */
body.gw .cap-tabs { flex: none; margin: 0 0 14px; }
body.gw .cap-tabs .att-sum__chip { border: 0; font: inherit; cursor: pointer; }
body.gw .cap-r { text-align: right; white-space: nowrap; }
body.gw [data-cap-pane][hidden] { display: none !important; }
/* 달력·드롭다운 최상위 층(gw-float.js) — 브라우저 기본 popover 위치값 대신 스크립트가 top/left 지정 */
.cm-cal[popover], .cm-dd__panel[popover] { position: fixed; inset: auto; margin: 0; color: inherit; }
