@charset "UTF-8";
/**
 * common.css — 전 페이지 공통(리셋/토큰/폰트/레이아웃/헤더·푸터/공통 컴포넌트).
 * 페이지 전용은 src/scss/pages/<group>.scss.
 */
/**
 * 디자인 토큰 (:root CSS custom properties). common.scss 에서만 @use → common.css 에 1회 출력.
 * 그룹 CSS(pages/*.scss)는 @use 금지(토큰 중복 출력 방지). 값은 어디서나 var(--xxx).
 */
/**
 * SCSS 변수 (연산/믹스인용) — CSS 출력 없음. 어디서든 @use 해도 중복 생성 안 됨.
 * (CSS custom properties(:root)는 _tokens.scss 에서 출력.)
 */
/* 레이아웃 폭 (PC 전용) */
/**
 * 타이포 스케일 (단일 소스) — @Guide_Typography 기준. key = font-size(px).
 * 여기만 고치면 font() 믹스인과 --fs-* / --lh-* 토큰이 함께 갱신됨.
 */
:root {
  /* 디자인 시스템 팔레트 (원시 토큰) — @Guide_Color 기준 */
  /* Primary (브랜드 보라) */
  --p-700: #4233cb;
  --p-600: #4f3fec; /* 브랜드 기준색 */
  --p-500: #8277eb;
  --p-400: #a39aff;
  --p-300: #c8c3ff;
  --p-200: #e5e2ff;
  --p-100: #efedfc;
  --p-50: #f7f5ff;
  /* Neutral (회색) */
  --n-900: #1a1a1b;
  --n-800: #343639;
  --n-700: #424549;
  --n-600: #595c61;
  --n-500: #898c95;
  --n-400: #afb0b7;
  --n-300: #cfd2d6;
  --n-200: #dbdde0;
  --n-100: #e5e6ea;
  --n-50: #f2f3f6;
  --n-40: #f8f9fa; /* 테이블 행 hover */
  /* Dark Blue (네이비) — LNB 접기버튼/OP 상단바 (OP·PP 공통) */
  --db-700: #302b57;
  --db-600: #48436f;
  --db-500: #5457ac;
  --db-100: #c8cbde;
  --db-50: #e8eaf4;
  /* UI — Red(에러)/Green(성공)/Blue(정보) */
  --r-500: #d83838;
  --r-200: #ffd8d8;
  --r-100: #ffebeb;
  --r-50: #fef5f5; /* error_message 배경 */
  --g-600: #007b15; /* 엑셀/성공 강조 */
  --g-500: #009b1a;
  --g-100: #e8f7ea;
  --g-50: #f4fdf6; /* 엑셀 버튼 hover 배경 */
  --b-600: #153ed4; /* 상태 뱃지 '접수' 텍스트 */
  --b-500: #1e92f9;
  --b-100: #e1f1ff;
  --b-50: #f3f9ff; /* 상태 뱃지 '사용' 배경(filled) */
  --y-500: #ee7926; /* 상태 뱃지 '접수'(파트너 관리) 텍스트 */
  --y-50: #fffbee; /* 상태 뱃지 '접수'(파트너 관리) 배경(filled) */
  /* 의미 토큰 (semantic) — 팔레트 참조. 페이지는 이걸 사용 */
  --text-point-color: var(--p-600);
  --blurple: var(--p-600);
  --text-01: var(--n-800); /* 본문 강조 */
  --text-02: var(--n-600);
  --text-03: var(--n-500);
  --text-04: var(--n-400);
  --color-text-black: var(--n-900);
  --color-text-dark: var(--n-800);
  --color-text-default: var(--n-800); /* body 기본 */
  --color-text-light: var(--n-500);
  --color-error: var(--r-500);
  --color-point: var(--p-600);
  --color-bd: var(--n-500);
  --color-bd-light: var(--n-300);
  --color-bd-light-2: var(--n-100);
  --color-bg-light: var(--n-300);
  --color-bg-light-2: var(--n-100);
  --color-bg-error: var(--r-200);
  --color-bg-tranparent: var(--p-50); /* 닫힘 Q뱃지 등 */
  --color-good: var(--b-500);
  --color-normal: var(--g-500);
  /* layout */
  --screen-max: 1920px;
  --content-width: 1200px;
  --sidebar-width: 270px;
  --sidebar-width-collapsed: 66px;
  --grid-gutter: 20px;
  /* font-family — Pretendard(가변폰트) */
  --font-base:
    "Pretendard Variable", "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo",
    "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  /* font-weight */
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;
  /* 타이포 스케일 — $font-scale에서 자동 생성. 짝 적용은 font() 믹스인 권장. */
  --fs-32: 32px;
  --lh-32: 44px;
  --fs-28: 28px;
  --lh-28: 40px;
  --fs-24: 24px;
  --lh-24: 36px;
  --fs-20: 20px;
  --lh-20: 30px;
  --fs-18: 18px;
  --lh-18: 28px;
  --fs-16: 16px;
  --lh-16: 24px;
  --fs-15: 15px;
  --lh-15: 22px;
  --fs-14: 14px;
  --lh-14: 20px;
  --fs-13: 13px;
  --lh-13: 20px;
  --fs-12: 12px;
  --lh-12: 18px;
}

/**
 * 웹폰트 — Pretendard 가변폰트. 경로는 루트 절대경로(/fonts/, 타임리프 대응).
 * 단일 woff2로 weight 45~920 커버 (지원 브라우저 모두 가변폰트 지원).
 */
@font-face {
  font-family: "Pretendard Variable";
  font-weight: 45 920;
  font-style: normal;
  font-display: swap;
  src: url("/fonts/Pretendard/PretendardVariable.woff2") format("woff2");
}
/* reset */
* {
  box-sizing: border-box;
}

html,
body,
div,
span,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
address,
em,
img,
small,
strong,
sub,
sup,
b,
i,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
figure,
figcaption,
footer,
header,
nav,
section,
main {
  margin: 0;
  padding: 0;
  border: 0;
  font: inherit;
  vertical-align: baseline;
}

article,
aside,
figure,
figcaption,
footer,
header,
nav,
section,
main {
  display: block;
}

ol,
ul {
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  vertical-align: top;
  border: 0;
}

button {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

input,
textarea,
select {
  font: inherit;
  color: inherit;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

html {
  text-size-adjust: 100%;
  background-color: var(--n-50);
}

body {
  font-family: var(--font-base);
  font-size: 16px;
  line-height: 1.5;
  color: var(--color-text-default);
  background-color: var(--n-50);
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.blind {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.inner {
  width: var(--content-width);
  margin: 0 auto;
}

/**
 * 레이아웃 (PC 전용 / 지원 1920) — [A] 중앙 정렬형(콘텐츠 1200 가운데) / [B] 풀폭 사이드형(좌 LNB + 우 콘텐츠).
 */
/* 최소폭 고정(그 이하 가로 스크롤) · 스티키풋터(세로 flex + 100vh → main 이 남는 높이 채워 footer 하단 고정) · 고정헤더 높이만큼 padding-top 오프셋 */
#wrap {
  display: flex;
  flex-direction: column;
  min-width: 1200px;
  min-height: 100vh;
  padding-top: 70px;
  box-sizing: border-box;
}
#wrap > main {
  flex: 1 1 auto;
}

/* 콘텐츠 영역 (헤더/푸터 제외 본문) */
.wrap {
  padding: 40px 0 80px;
  background: var(--n-50);
  /* [B] LNB 레이아웃: 사이드가 헤더~푸터 풀높이로 붙도록 세로패딩 제거(내부 여백은 .content 담당) */
}
.wrap.wrap-lnb {
  padding: 0;
}

/* [A] 중앙 정렬형 — 풀폭 배경(100%) 바깥 + 안쪽 .inner 패턴 */
.full {
  width: 100%;
}
.full > .inner {
  width: 1200px;
  margin: 0 auto;
}

/* [B] 풀폭 사이드형
   ⚠ flex 로 나누지 않음: 좌측 LNB 는 position:fixed 로 고정(스크롤해도 제자리),
   우측 콘텐츠는 margin-left 로 컬럼 확보 → 페이지와 함께 스크롤. footer 는 콘텐츠 최하단. */
/* ⚠ 2026-08-03: 1920 중앙정렬 → 풀폭으로 전환(사용자 지시).
   LNB 를 뷰포트 좌측 끝에 고정하고, 남는 폭은 콘텐츠가 전부 사용. */
.layout-side {
  max-width: none;
  margin: 0;
  /* 좌측 LNB (고정: 헤더 아래 ~ 화면 바닥, 화면 좌측 끝에 밀착) */
}
.layout-side > .side {
  position: fixed;
  top: 70px;
  bottom: 0;
  left: 0;
  z-index: 90;
  width: 270px;
  overflow: hidden auto;
  transition: width 0.2s ease;
}
.layout-side {
  /* 우측 콘텐츠 (LNB 폭만큼 좌측 여백 확보).
     짧은 뷰포트에서 목록↔footer 간격이 좁아지지 않도록 고정 최소높이 900(뷰포트 calc 은 낮은 화면에서 어긋남). */
}
.layout-side > .content {
  min-width: 0;
  min-height: 900px;
  margin-left: 270px;
  padding: 30px 32px;
  transition: margin-left 0.2s ease;
}
.layout-side.is-collapsed > .side {
  width: 66px;
}
.layout-side.is-collapsed > .content {
  margin-left: 66px;
}

/**
 * 헤더 / GNB (로그아웃/로그인 상태 공통)
 */
/**
 * 공용 믹스인 — `@use '../common/mixins' as *;`
 */
/**
 * 타이포 스케일 적용(size + line-height 한 쌍). 예: `@include font(20);`
 * weight는 별도(`font-weight: var(--fw-bold);`). 허용 키는 $font-scale.
 */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--color-bd-light-2);
}
.header .header-inner {
  position: relative;
  display: flex;
  align-items: center;
  max-width: 1920px;
  height: 70px;
  margin: 0 auto;
  padding: 0 24px;
}
.header .logo {
  flex-shrink: 0;
  font-size: 20px;
  font-weight: 700;
  white-space: nowrap;
}
.header .logo a {
  color: var(--color-text-black);
}
.header .gnb {
  position: absolute;
  left: 276px;
  top: 50%;
  transform: translateY(-50%);
}
.header .gnb > ul {
  display: flex;
  gap: 48px;
}
.header .gnb > ul > li {
  position: relative;
}
.header .gnb a {
  position: relative;
  display: inline-block;
  padding: 8px 0;
  font-size: 18px;
  line-height: 28px;
  font-weight: var(--fw-semibold);
  color: var(--color-text-black);
}
.header .gnb a:hover {
  color: var(--color-point);
}
.header .header-right {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-left: auto;
}
.header .gnb-links {
  display: flex;
  align-items: center;
  gap: 24px;
}
.header .gnb-links .gnb-link {
  font-size: 16px;
  line-height: 24px;
  font-weight: var(--fw-medium);
  color: var(--color-text-black);
}
.header .gnb-links .gnb-link:hover {
  color: var(--color-point);
}
.header .gnb-links .gnb-links-sep {
  width: 1px;
  height: 12px;
  background: var(--n-300);
}
.header .gnb-sub {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 168px;
  padding: 8px 0;
  background: #fff;
  border: 1px solid var(--color-bd-light-2);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(26, 26, 27, 0.08);
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s ease;
  z-index: 1;
}
.header .gnb-sub::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -8px;
  height: 8px;
}
.header .gnb-sub a {
  display: block;
  padding: 9px 16px;
  font-size: 15px;
  white-space: nowrap;
  color: var(--color-text-default);
}
.header .gnb-sub a:hover {
  color: var(--color-point);
  background: var(--n-50);
}
.header .gnb > ul > li:hover .gnb-sub,
.header .gnb > ul > li:focus-within .gnb-sub {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.header {
  /* GNB 활성 메뉴: .gnb[data-active="키"] + li.gnb-키 */
}
.header .gnb[data-active=file] .gnb-file > a {
  color: var(--color-point);
  font-weight: 700;
}
.header .gnb[data-active=file] .gnb-file > a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--color-point);
}
.header .gnb[data-active=config] .gnb-config > a {
  color: var(--color-point);
  font-weight: 700;
}
.header .gnb[data-active=config] .gnb-config > a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--color-point);
}
.header .gnb[data-active=product] .gnb-product > a {
  color: var(--color-point);
  font-weight: 700;
}
.header .gnb[data-active=product] .gnb-product > a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--color-point);
}
.header .gnb[data-active=stats] .gnb-stats > a {
  color: var(--color-point);
  font-weight: 700;
}
.header .gnb[data-active=stats] .gnb-stats > a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--color-point);
}
.header .gnb[data-active=guide] .gnb-guide > a {
  color: var(--color-point);
  font-weight: 700;
}
.header .gnb[data-active=guide] .gnb-guide > a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--color-point);
}
.header .header-util {
  display: flex;
  gap: 14px;
}
.header .header-util .btn-line {
  height: 44px;
  gap: 4px;
  border-color: var(--n-400);
  font-weight: var(--fw-medium);
}
.header .header-user {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
  font-size: 14px;
}
.header .header-user .user-name {
  font-weight: 600;
  color: var(--color-text-default);
}
.header .header-user .user-login {
  color: var(--color-text-light);
}
.header .header-user .user-timer {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--text-02);
}
.header .role-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 26px;
  padding: 0 10px;
  border-radius: 6px;
  background: var(--color-bg-tranparent);
  color: var(--color-point);
  font-size: 13px;
  font-weight: 600;
}
.header .ico {
  display: inline-flex;
  align-items: center;
}

/* OP 상단바(슬림) — 흰 바 60 + 로고 + 우측 유틸. 중앙 메뉴 없음(PP 메뉴형은 .header, height 70 유지). */
.header-op .header-inner {
  height: 60px;
  max-width: none;
}
.header-op .logo {
  margin-right: 16px;
}
.header-op .logo a {
  color: var(--color-text-black);
}
.header-op .header-util {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: auto;
}
.header-op .header-selects {
  display: flex;
  gap: 10px;
}
.header-op .header-select {
  width: 132px;
}
.header-op .header-notice {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  line-height: 22px;
  font-weight: var(--fw-semibold);
  color: var(--n-800);
}
.header-op .header-notice .ico {
  width: 18px;
  height: 18px;
}
.header-op .header-notice:hover {
  color: var(--color-point);
}
.header-op .user-timer {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 15px;
  color: var(--n-500);
}
.header-op .user-timer .ico {
  width: 16px;
  height: 16px;
}
.header-op .btn-round {
  height: 34px;
  min-width: 0;
}
.header-op .btn-round .ico {
  width: 16px;
  height: 16px;
}

/* 인증 페이지 헤더 — 로고만, 보더/배경 없음 */
.header-blank {
  border-bottom: 0;
  background: transparent;
}

/* OP 슬림 헤더(60) 사용 시 고정헤더 오프셋 보정 — PP(70)는 기본값 유지 */
#wrap:has(.header-op) {
  padding-top: 60px;
}
#wrap:has(.header-op) .layout-side > .side {
  top: 60px;
}
/**
 * 헤더 / GNB (로그아웃/로그인 상태 공통)
 */
/**
 * LNB (좌측 네비게이션) — @[OP] Guide_Layout 3레벨. 펼침 270 / 접힘 66(변수).
 * 상단 관리자 info(블록 전체 링크) + 1/2/3뎁스 메뉴. 접힘/펼침 애니메이션 전부 0.2s ease 통일.
 */
/* 활성(현재 섹션) 스타일 — .is-active 직접지정 / 부모 data-active 매칭 양쪽에서 공유 */
.lnb {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-right: 1px solid var(--n-200);
}

/* 접기/펼치기 토글 */
.lnb-toggle {
  position: absolute;
  top: 20px;
  right: 0;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 34px;
  padding: 0;
  background: var(--db-600);
  border: 0;
  border-radius: 8px 0 0 8px;
  cursor: pointer;
}
.lnb-toggle .ico {
  width: 14px;
  height: 14px;
  color: #fff;
  transition: transform 0.2s ease;
}

/* 관리자 정보 — 블록 전체가 프로필 링크(hover 영역: 배지~최종접속 전체) */
.lnb-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 270px;
  padding: 24px 24px 22px;
  border-bottom: 1px solid var(--n-200);
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.2s ease;
}
.lnb-info:hover .lnb-user {
  color: var(--db-500);
}
.lnb-info:hover .lnb-user .ico {
  color: var(--db-500);
}

.lnb-role {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  align-self: flex-start;
  padding: 2px 5px;
  border: 1px solid var(--db-500);
  border-radius: 50px;
  font-size: 12px;
  line-height: 18px;
  font-weight: var(--fw-medium);
  color: var(--db-500);
  white-space: nowrap;
}
.lnb-role .ico {
  width: 16px;
  height: 16px;
}

.lnb-user {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  align-self: flex-start;
  font-size: 16px;
  line-height: 24px;
  font-weight: var(--fw-medium);
  color: var(--color-text-black);
  transition: color 0.15s ease;
}
.lnb-user .ico {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  color: var(--n-900);
  transition: color 0.15s ease;
}

.lnb-login {
  font-size: 14px;
  line-height: 20px;
  font-weight: var(--fw-regular);
  color: var(--n-500);
}

.lnb-bottom {
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: transparent transparent;
}
.lnb-bottom:hover {
  scrollbar-color: var(--n-400) transparent;
}
.lnb-bottom::-webkit-scrollbar {
  width: 6px;
}
.lnb-bottom::-webkit-scrollbar-thumb {
  background: transparent;
  border-radius: 3px;
  -webkit-transition: background 0.3s;
  transition: background 0.3s;
}
.lnb-bottom:hover::-webkit-scrollbar-thumb {
  background: var(--n-400);
}

.lnb-menu {
  display: flex;
  flex-direction: column;
}

.lnb-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 13px 20px;
  color: var(--n-900);
  cursor: pointer;
  overflow: hidden;
  border-bottom: 1px solid var(--n-100);
  transition: padding-left 0.2s ease;
}
.lnb-item::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--p-50);
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}
.lnb-item > * {
  position: relative;
  z-index: 1;
}
.lnb-item .ico {
  width: 18px;
  height: 18px;
}
.lnb-item > .ico:first-child {
  color: var(--n-900);
}
.lnb-item > .ico-log:first-child {
  color: #8a8a8a;
}
.lnb-item .lnb-label {
  flex: 1 1 0;
  min-width: 0;
  font-size: 16px;
  line-height: 24px;
  font-weight: var(--fw-semibold);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: opacity 0.2s ease;
}
.lnb-item .lnb-arrow {
  width: 16px;
  height: 16px;
  color: var(--n-900);
  transition: opacity 0.2s ease;
}
.lnb-item.is-active {
  color: var(--color-point);
}
.lnb-item.is-active::before {
  opacity: 1;
}
.lnb-item.is-active > .ico:first-child {
  color: var(--color-point);
}
.lnb-item.is-active .lnb-arrow {
  color: var(--color-point);
}
.lnb-item:last-child, .lnb-item.is-open {
  border-bottom: 0;
}

/* 부모 .lnb-menu[data-active="키"] → 해당 항목 활성 (헤더 GNB 와 동일 패턴, include 시 { "active": "키" }) */
.lnb-menu[data-active=kcms] .lnb-item[data-key=kcms] {
  color: var(--color-point);
}
.lnb-menu[data-active=kcms] .lnb-item[data-key=kcms]::before {
  opacity: 1;
}
.lnb-menu[data-active=kcms] .lnb-item[data-key=kcms] > .ico:first-child {
  color: var(--color-point);
}
.lnb-menu[data-active=kcms] .lnb-item[data-key=kcms] .lnb-arrow {
  color: var(--color-point);
}

.lnb-menu[data-active=kms] .lnb-item[data-key=kms] {
  color: var(--color-point);
}
.lnb-menu[data-active=kms] .lnb-item[data-key=kms]::before {
  opacity: 1;
}
.lnb-menu[data-active=kms] .lnb-item[data-key=kms] > .ico:first-child {
  color: var(--color-point);
}
.lnb-menu[data-active=kms] .lnb-item[data-key=kms] .lnb-arrow {
  color: var(--color-point);
}

.lnb-menu[data-active=user] .lnb-item[data-key=user] {
  color: var(--color-point);
}
.lnb-menu[data-active=user] .lnb-item[data-key=user]::before {
  opacity: 1;
}
.lnb-menu[data-active=user] .lnb-item[data-key=user] > .ico:first-child {
  color: var(--color-point);
}
.lnb-menu[data-active=user] .lnb-item[data-key=user] .lnb-arrow {
  color: var(--color-point);
}

.lnb-menu[data-active=partner-stats] .lnb-item[data-key=partner-stats] {
  color: var(--color-point);
}
.lnb-menu[data-active=partner-stats] .lnb-item[data-key=partner-stats]::before {
  opacity: 1;
}
.lnb-menu[data-active=partner-stats] .lnb-item[data-key=partner-stats] > .ico:first-child {
  color: var(--color-point);
}
.lnb-menu[data-active=partner-stats] .lnb-item[data-key=partner-stats] .lnb-arrow {
  color: var(--color-point);
}

.lnb-menu[data-active=operation] .lnb-item[data-key=operation] {
  color: var(--color-point);
}
.lnb-menu[data-active=operation] .lnb-item[data-key=operation]::before {
  opacity: 1;
}
.lnb-menu[data-active=operation] .lnb-item[data-key=operation] > .ico:first-child {
  color: var(--color-point);
}
.lnb-menu[data-active=operation] .lnb-item[data-key=operation] .lnb-arrow {
  color: var(--color-point);
}

.lnb-menu[data-active=system] .lnb-item[data-key=system] {
  color: var(--color-point);
}
.lnb-menu[data-active=system] .lnb-item[data-key=system]::before {
  opacity: 1;
}
.lnb-menu[data-active=system] .lnb-item[data-key=system] > .ico:first-child {
  color: var(--color-point);
}
.lnb-menu[data-active=system] .lnb-item[data-key=system] .lnb-arrow {
  color: var(--color-point);
}

.lnb-menu[data-active=content] .lnb-item[data-key=content] {
  color: var(--color-point);
}
.lnb-menu[data-active=content] .lnb-item[data-key=content]::before {
  opacity: 1;
}
.lnb-menu[data-active=content] .lnb-item[data-key=content] > .ico:first-child {
  color: var(--color-point);
}
.lnb-menu[data-active=content] .lnb-item[data-key=content] .lnb-arrow {
  color: var(--color-point);
}

/* 2뎁스 (KCMS·사용자 관리 하위) — Figma lnb_open_2Depth */
.lnb-sub {
  display: none;
  flex-direction: column;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--n-200);
}

.lnb-sub-item {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 10px 22px 10px 48px;
  font-size: 15px;
  line-height: 22px;
  font-weight: var(--fw-semibold);
  color: var(--n-900);
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.15s;
}
.lnb-sub-item:hover {
  background: var(--n-40);
}

/* 2뎁스 확장형(3뎁스 있음) — 버튼 리셋 + +/− 인디케이터 */
.lnb-sub-item--parent {
  width: 100%;
  border: 0;
  background: none;
  text-align: left;
}

.lnb-sub-label {
  flex: 1 1 0;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* +/− (12px 박스, CSS 바 2개). 펼침(is-open) 시 세로바 숨겨 − 로 전환.
   Figma: glyph inset 15.63%(=1.875) → 실제 팔길이 8.25px · stroke 1px · 라운드캡. */
.lnb-pm {
  position: relative;
  flex: 0 0 auto;
  width: 12px;
  height: 12px;
}
.lnb-pm::before, .lnb-pm::after {
  content: "";
  position: absolute;
  background: var(--n-500);
  border-radius: 1px;
}
.lnb-pm::before {
  top: 50%;
  left: 1.875px;
  right: 1.875px;
  height: 1px;
  transform: translateY(-50%);
}
.lnb-pm::after {
  left: 50%;
  top: 1.875px;
  bottom: 1.875px;
  width: 1px;
  transform: translateX(-50%);
}

.lnb-sub-item--parent.is-open .lnb-pm::after {
  display: none;
}
.lnb-sub-item--parent.is-open .lnb-pm::before {
  background: var(--n-900);
}

/* 3뎁스 (프로파일 관리 하위) — Figma lnb_open_3Depth.
   좌측 3px 바가 항목마다 붙어 연속 세로 가이드처럼 보임(active 구간만 Primary). */
.lnb-sub3 {
  display: none;
  flex-direction: column;
  padding: 6px 14px 4px 52px;
}

.lnb-sub3-item {
  display: block;
  padding: 10px 4px 10px 16px;
  border-left: 3px solid var(--n-200);
  border-radius: 0 10px 10px 0;
  font-size: 15px;
  line-height: 22px;
  font-weight: var(--fw-medium);
  color: var(--n-700);
  white-space: normal;
  word-break: keep-all;
  transition: background 0.15s;
}
.lnb-sub3-item:hover {
  background: var(--n-50);
}

/* 펼침/접힘은 JS 슬라이드(jQuery slideDown/Up)가 display 를 제어 — 순간전환 없이 부드럽게.
   여기선 화살표 회전만 담당. */
.lnb-item.is-open .lnb-arrow {
  transform: rotate(180deg);
}

/* 선택 상태 (현재 페이지/클릭) — .is-current 로 구동.
   초기: data-active/data-key 매칭 항목에 JS 가 is-current 부여. 리프 클릭 시 JS 가 이동. */
.lnb-sub-item.is-current {
  background: var(--p-50);
  color: var(--color-point);
}

.lnb-sub3-item.is-current {
  background: var(--p-50);
  border-left-color: var(--color-point);
  color: var(--color-point);
  font-weight: var(--fw-semibold);
}

/* 접힘 상태 (66px) — 라벨/정보 숨기고 아이콘만 */
.layout-side.is-collapsed .lnb-info {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.layout-side.is-collapsed .lnb-item {
  padding-left: 24px;
}
.layout-side.is-collapsed .lnb-label,
.layout-side.is-collapsed .lnb-arrow {
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  transition: opacity 0.2s ease, max-width 0s linear 0.2s;
}
.layout-side.is-collapsed .lnb-item::before {
  opacity: 0;
  transition: opacity 0.2s ease;
}
.layout-side.is-collapsed .lnb-sub,
.layout-side.is-collapsed .lnb-sub3 {
  display: none !important;
}
.layout-side.is-collapsed .lnb-toggle {
  top: 20px;
  right: auto;
  left: 50%;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  transform: translateX(-50%);
}
.layout-side.is-collapsed .lnb-toggle .ico {
  transform: rotate(180deg);
}

/**
 * 푸터
 */
.footer {
  padding: 20px 0;
  background: transparent;
  border-top: 0;
}
.footer .inner {
  display: flex;
  align-items: center;
  justify-content: center;
}
.footer .footer-info {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 14px;
  color: var(--text-02);
}
.footer .footer-info li {
  position: relative;
}
.footer .footer-info li + li::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 12px;
  background: var(--n-300);
}
.footer .footer-link {
  color: var(--text-02);
  text-decoration: underline;
}

/* OP LNB 레이아웃: 공통 .inner(1200 중앙) 대신 좌측 LNB 폭만큼 밀어
   콘텐츠 영역 가운데 정렬(잘림 방지). */
#wrap:has(.wrap-lnb) .footer .inner {
  width: auto;
  margin: 0;
  padding-left: 270px;
  transition: padding-left 0.2s ease;
}

/* LNB 접힘 시 푸터도 함께 좁힘 */
#wrap:has(.wrap-lnb .layout-side.is-collapsed) .footer .inner {
  padding-left: 66px;
}

/**
 * 섹션 / 카드 / 안내 박스
 */
.card {
  padding: 24px;
  background: #fff;
  border-radius: 14px;
}

.side-block + .side-block {
  margin-top: 40px;
}

.side-title {
  font-size: 20px;
  font-weight: 700;
  line-height: 30px;
  color: var(--color-text-black);
}

/* 안내 박스 (불릿 리스트) */
.guide-list {
  margin-top: 10px;
  padding: 20px;
  background: #fff;
  border-radius: 14px;
}
.guide-list li {
  position: relative;
  padding-left: 8px;
  font-size: 15px;
  line-height: 22px;
  color: var(--text-02);
}
.guide-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: var(--text-02);
}
.guide-list li + li {
  margin-top: 2px;
}

/**
 * 그리드 시스템 (미구현 — 토큰/믹스인 필요 시 @use 추가).
 */
/**
 * 버튼 — @Guide_Component 기준. .btn + 스타일 변형(-primary/-secondary/-line/-fill/…)
 * + 사이즈(.btn-lg/.btn-sm) + .btn-block. 색은 팔레트 토큰.
 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 44px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
  line-height: 22px;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.btn:disabled, .btn.is-disabled {
  cursor: not-allowed;
  pointer-events: none;
}

.btn-primary {
  height: 50px;
  background: var(--color-point);
  color: #fff;
  font-size: 16px;
  line-height: 24px;
}
.btn-primary:hover {
  background: var(--p-700);
}
.btn-primary:disabled, .btn-primary.is-disabled {
  background: var(--n-200);
  color: var(--n-400);
}

.btn-secondary {
  height: 50px;
  background: var(--p-100);
  color: var(--color-point);
  font-size: 16px;
  line-height: 24px;
}
.btn-secondary:hover {
  background: var(--p-200);
}
.btn-secondary:disabled, .btn-secondary.is-disabled {
  background: var(--n-200);
  color: var(--n-400);
}

.btn-line {
  min-width: 80px;
  background: #fff;
  border-color: var(--n-500);
  color: var(--n-900);
  font-weight: 600;
}
.btn-line:hover {
  background: var(--n-50);
  border-color: var(--n-500);
}
.btn-line:disabled, .btn-line.is-disabled {
  background: var(--n-200);
  border-color: var(--n-200);
  color: var(--n-400);
}

.btn-fill {
  min-width: 80px;
  background: var(--n-800);
  color: #fff;
  font-weight: 600;
}
.btn-fill:hover {
  background: var(--n-900);
}
.btn-fill:disabled, .btn-fill.is-disabled {
  background: var(--n-200);
  border-color: var(--n-200);
  color: var(--n-400);
}

.btn-tertiary {
  min-width: 80px;
  background: var(--n-50);
  color: var(--n-900);
  font-weight: 600;
}
.btn-tertiary:hover {
  background: var(--n-100);
}
.btn-tertiary:disabled, .btn-tertiary.is-disabled {
  background: var(--n-200);
  color: var(--n-400);
}

/* Navy fill — 색만 지정, 크기는 조합(.btn-primary/.modal-foot)으로 */
.btn-navy {
  background: var(--db-700);
  color: #fff;
}
.btn-navy:hover {
  background: #26203f;
}
.btn-navy:disabled, .btn-navy.is-disabled {
  background: var(--n-200);
  color: var(--n-400);
}

.btn-navy-sub {
  background: var(--db-500);
  color: #fff;
}
.btn-navy-sub:hover {
  background: var(--db-600);
}

.btn-round {
  gap: 4px;
  border-radius: 50px;
  background: #fff;
  border-color: var(--n-300);
  color: var(--n-900);
}
.btn-round:hover {
  background: var(--n-50);
  border-color: var(--n-300);
}
.btn-round:disabled, .btn-round.is-disabled {
  background: var(--n-200);
  border-color: var(--n-200);
  color: var(--n-400);
}

.btn-filter {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  min-width: 0;
  padding: 0;
}
.btn-filter .ico {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}
.btn-filter {
  /* 멀티컬러 아이콘(엑셀 등)은 <img class="ico-img"> — Figma 엑셀버튼 p10/아이콘 24 */
}
.btn-filter .ico-img {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
}
.btn-filter.btn-filter--search {
  background: var(--color-point);
  color: #fff;
  /* Figma 실측: 44 버튼에 돋보기 16.2(아이콘이 뷰박스를 꽉 채움) */
}
.btn-filter.btn-filter--search .ico {
  width: 16px;
  height: 16px;
}
.btn-filter.btn-filter--search:hover {
  background: var(--p-700);
}
.btn-filter.btn-filter--search:disabled, .btn-filter.btn-filter--search.is-disabled {
  background: var(--n-200);
  color: var(--n-400);
}
.btn-filter.btn-filter--excel {
  background: #fff;
  border-color: var(--g-600);
  color: var(--g-600);
}
.btn-filter.btn-filter--excel:hover {
  background: var(--g-50);
}
.btn-filter.btn-filter--excel:disabled, .btn-filter.btn-filter--excel.is-disabled {
  background: var(--n-200);
  border-color: var(--n-200);
  color: var(--n-400);
  opacity: 0.5;
}

.btn-text {
  height: auto;
  min-width: 0;
  padding: 0;
  gap: 4px;
  background: none;
  border: 0;
  color: var(--n-600);
}
.btn-text:hover {
  text-decoration: underline;
}
.btn-text:disabled, .btn-text.is-disabled {
  color: var(--n-300);
  text-decoration: none;
}

/* button/text_line — 항상 밑줄(.btn-text 는 hover 때만 밑줄이라 별개) */
.btn-text-line {
  height: auto;
  min-width: 0;
  padding: 0;
  background: none;
  border: 0;
  font-weight: var(--fw-regular);
  color: var(--n-600);
  text-decoration: underline;
}
.btn-text-line:hover {
  color: var(--n-700);
}
.btn-text-line:disabled, .btn-text-line.is-disabled {
  color: var(--n-300);
}

/* button/basic_light — 연한 라인 버튼(.btn-round 알약형과 별개) */
.btn-light {
  gap: 4px;
  background: #fff;
  border-color: var(--n-400);
  color: var(--n-900);
}
.btn-light:hover {
  background: var(--n-50);
  border-color: var(--n-400);
}
.btn-light:disabled, .btn-light.is-disabled {
  background: var(--n-200);
  border-color: var(--n-200);
  color: var(--n-400);
}

.btn-lg {
  height: 50px;
  font-size: 16px;
  line-height: 24px;
}

.btn-sm {
  height: auto;
  min-width: 70px;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}

/* button/small — 작은 라인 버튼(탈퇴 등). .btn-sm(범용 크기 모디파이어)과 별개 */
.btn-small {
  height: auto;
  min-width: auto;
  padding: 5px 12px;
  border-color: var(--n-300);
  border-radius: 6px;
  background: #fff;
  font-size: 14px;
  font-weight: var(--fw-medium);
  line-height: 20px;
  color: var(--text-02);
}
.btn-small:hover {
  border-color: var(--n-400);
}

.btn-block {
  display: flex;
  width: 100%;
}

/**
 * 폼 요소 (라벨 / input / select / input+버튼 그룹 / select 드롭다운)
 * basic 44h / Large 50h, radius 10, border N-200. 상태: hover(P-400) / focus(Primary) / disabled(N-100) / read only(P-50·P-300) / error(R-500)
 */
.form-row + .form-row {
  margin-top: 20px;
}

.form-label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  color: var(--n-900);
}
.form-label .req {
  color: var(--color-point);
}

.input {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--n-200);
  border-radius: 10px;
  background: #fff;
  font-size: 15px;
  line-height: 22px;
  color: var(--n-900);
}
.input::placeholder {
  color: var(--n-400);
}
.input:hover:not(:disabled, [readonly], :focus) {
  border-color: var(--p-400);
}
.input:focus {
  outline: none;
  border-color: var(--color-point);
}
.input:disabled, .input[readonly] {
  background: var(--n-100);
  border-color: var(--n-200);
  cursor: not-allowed;
}
.input[readonly] {
  background: var(--p-50);
  border-color: var(--p-300);
  cursor: default;
}
.input[readonly]:focus {
  border-color: var(--p-300);
}
.input.is-error {
  border-color: var(--color-error);
}

.input-lg {
  height: 50px;
}

/* 텍스트에어리어 — 흰 박스 + <textarea> + 우하단 글자수 카운터.
 * 마크업:
 *   <div class="textarea">
 *     <textarea class="textarea-field" placeholder="내용 입력" maxlength="100"></textarea>
 *     <p class="textarea-count"><b>0</b> / 100</p>
 *   </div>
 */
.textarea {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  height: 140px;
  padding: 12px;
  border: 1px solid var(--n-200);
  border-radius: 10px;
  background: #fff;
  transition: border-color 0.15s;
}
.textarea:focus-within {
  border-color: var(--color-point);
}
.textarea.is-error {
  border-color: var(--color-error);
}
.textarea:has(.textarea-field:disabled) {
  background: var(--n-100);
  cursor: not-allowed;
}

.textarea-field {
  flex: 1 1 0;
  width: 100%;
  min-height: 0;
  padding: 0;
  border: 0;
  background: none;
  resize: none;
  font-size: 15px;
  line-height: 22px;
  color: var(--n-900);
}
.textarea-field::placeholder {
  color: var(--n-400);
}
.textarea-field:focus {
  outline: none;
}
.textarea-field:disabled {
  cursor: not-allowed;
}

.textarea-count {
  flex: 0 0 auto;
  align-self: flex-end;
  font-size: 12px;
  line-height: 18px;
  color: var(--n-500);
}
.textarea-count b {
  font-weight: var(--fw-medium);
  color: var(--n-800);
}

/* 인풋 + 아이콘 — 흰 박스 좌측 아이콘 + input.
 * 마크업: <div class="input-icon"><i class="ico ico-guide-info"></i><input type="text" placeholder="Text"></div> */
.input-icon {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--n-200);
  border-radius: 10px;
  background: #fff;
  transition: border-color 0.15s;
}
.input-icon:hover:not(:focus-within) {
  border-color: var(--p-400);
}
.input-icon:focus-within {
  border-color: var(--color-point);
}
.input-icon.is-error {
  border-color: var(--color-error);
}
.input-icon .ico {
  flex: 0 0 auto;
  color: var(--n-900);
}
.input-icon input {
  flex: 1 1 0;
  min-width: 0;
  padding: 0;
  border: 0;
  background: none;
  font-size: 15px;
  line-height: 22px;
  color: var(--n-900);
}
.input-icon input::placeholder {
  color: var(--n-400);
}
.input-icon input:focus {
  outline: none;
}

/* 리사이즈 인풋 — 세로로 늘어나는 입력 + 우하단 커스텀 핸들.
 * 마크업:
 *   <div class="input-resize">
 *     <textarea class="input-resize-field" rows="1" placeholder="Guide Text"></textarea>
 *     <i class="ico ico-resize-handle input-resize-handle"></i>
 *   </div>
 */
.input-resize {
  position: relative;
  width: 100%;
  border: 1px solid var(--n-200);
  border-radius: 10px;
  background: #fff;
  transition: border-color 0.15s;
}
.input-resize:hover:not(:focus-within) {
  border-color: var(--p-400);
}
.input-resize:focus-within {
  border-color: var(--color-point);
}
.input-resize.is-error {
  border-color: var(--color-error);
}

.input-resize-field {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 11px 24px 11px 12px;
  border: 0;
  border-radius: 10px;
  background: none;
  resize: vertical;
  font-size: 15px;
  line-height: 22px;
  color: var(--n-900);
}
.input-resize-field::placeholder {
  color: var(--n-400);
}
.input-resize-field:focus {
  outline: none;
}
.input-resize-field:disabled {
  cursor: not-allowed;
}
.input-resize-field::-webkit-resizer {
  display: none;
}

/* 우하단 커스텀 핸들 (Figma 인셋 3, N-200) */
.input-resize-handle {
  position: absolute;
  right: 3px;
  bottom: 3px;
  width: 18px;
  height: 18px;
  color: var(--n-200);
  pointer-events: none;
}

.select {
  width: 100%;
  height: 44px;
  padding: 0 36px 0 12px;
  border: 1px solid var(--n-200);
  border-radius: 10px;
  background-color: #fff;
  background-image: url("/img/icons/line/arrow_down.svg");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  font-size: 15px;
  line-height: 22px;
  color: var(--n-900);
  appearance: none;
  cursor: pointer;
}
.select:hover:not(:disabled) {
  border-color: var(--p-400);
}
.select:focus {
  outline: none;
  border-color: var(--color-point);
}
.select:disabled {
  background-color: var(--n-100);
  border-color: var(--n-200);
  color: var(--n-400);
  cursor: not-allowed;
}

.input-group {
  display: flex;
  gap: 8px;
}
.input-group .input,
.input-group .select,
.input-group .select-box {
  flex: 1 1 auto;
}
.input-group .btn {
  flex: 0 0 auto;
  height: 44px;
}

.form-submit {
  margin-top: 32px;
}

/* 커스텀 셀렉트 (조립형) — native <select> 로 드롭다운/옵션 디자인이 안 살아 트리거+패널 조립.
 * 마크업:
 *   <div class="select-box">
 *     <button type="button" class="select-trigger">
 *       <span class="select-value is-placeholder">선택</span>
 *     </button>
 *     <ul class="select-dropdown">
 *       <li class="select-option" data-value="rep">대표파트너</li> ...
 *     </ul>
 *     <input type="hidden" class="select-input" name="..." />
 *   </div>
 * 동작: .is-open 토글 / 옵션 클릭 → .is-active + 값 반영 (_common.js)
 */
.select-box {
  position: relative;
  width: 100%;
}

.select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--n-200);
  border-radius: 10px;
  background: #fff;
  font-size: 15px;
  line-height: 22px;
  color: var(--n-900);
  text-align: left;
  cursor: pointer;
  /* ▼ 화살표 — arrow_down 아이콘(.ico 와 동일 소스), 색 currentcolor */
}
.select-trigger::after {
  content: "";
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  background-color: currentcolor;
  -webkit-mask: url("/img/icons/line/arrow_down.svg") center/contain no-repeat;
          mask: url("/img/icons/line/arrow_down.svg") center/contain no-repeat;
  transition: transform 0.15s;
}

.select-value {
  flex: 1 1 auto;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.select-value.is-placeholder {
  color: var(--n-900);
}

.select-box:not(.is-disabled) .select-trigger:hover {
  border-color: var(--p-400);
}

.select-box.is-open .select-trigger {
  border-color: var(--color-point);
}
.select-box.is-open .select-trigger::after {
  transform: rotate(180deg);
}

.select-box.is-disabled .select-trigger {
  background: var(--n-100);
  border-color: var(--n-200);
  color: var(--n-400);
  cursor: not-allowed;
}

/* 셀렉트 드롭다운 패널 — .select-box 안: 트리거 아래 팝오버 / 단독 사용도 가능 */
.select-dropdown {
  width: 100%;
  max-height: 460px;
  border: 1px solid var(--n-400);
  border-radius: 10px;
  background: #fff;
  overflow: hidden auto;
  /* 얇은 커스텀 스크롤바 — 트랙 상하 여백으로 라운드 코너(10px) 침범 방지 */
  scrollbar-width: thin;
  scrollbar-color: var(--n-300) transparent;
}
.select-dropdown::-webkit-scrollbar {
  width: 6px;
}
.select-dropdown::-webkit-scrollbar-track {
  margin: 10px 0;
  background: transparent;
}
.select-dropdown::-webkit-scrollbar-thumb {
  border-radius: 3px;
  background: var(--n-300);
}
.select-dropdown::-webkit-scrollbar-thumb:hover {
  background: var(--n-400);
}

.select-box .select-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  z-index: 20;
  display: none;
}

.select-box.is-open .select-dropdown {
  display: block;
}

.select-option {
  display: flex;
  align-items: center;
  padding: 12px;
  font-size: 15px;
  line-height: 22px;
  color: var(--n-900);
  cursor: pointer;
}
.select-option + .select-option {
  border-top: 1px solid var(--n-200);
}
.select-option:hover, .select-option.is-active {
  background: var(--n-50);
}

/* Small 사이즈 (@[OP/PP] selectbox/small) — 30px · radius 6 · 컴팩트 필터용.
 * 기본 select 와 색 체계가 다름(hover=배경 N-50 / 열림=P-100·P-400 / disabled=N-200).
 * 폭은 내용에 맞춤(fit-content), 드롭다운은 트리거 스펙에 비례. */
.select-box--sm {
  width: fit-content;
}
.select-box--sm .select-trigger {
  justify-content: flex-start;
  width: auto;
  gap: 4px;
  height: 30px;
  padding: 0 6px 0 12px;
  border-color: var(--n-300);
  border-radius: 6px;
  font-size: 14px;
  line-height: 20px;
  font-weight: var(--fw-medium);
  color: var(--n-600);
}
.select-box--sm .select-value {
  flex: 0 1 auto;
}
.select-box--sm:not(.is-disabled) .select-trigger:hover {
  background: var(--n-50);
  border-color: var(--n-300);
}
.select-box--sm.is-open .select-trigger {
  background: var(--p-100);
  border-color: var(--p-400);
  color: var(--color-point);
}
.select-box--sm.is-disabled .select-trigger {
  background: var(--n-200);
  border-color: var(--n-200);
  color: var(--n-400);
}
.select-box--sm .select-dropdown {
  right: 0;
  left: auto;
  width: max-content;
  min-width: 100%;
  padding: 4px;
  border: 1px solid var(--p-400);
  border-radius: 6px;
  box-shadow: 0 0 2px rgba(181, 181, 181, 0.24);
}
.select-box--sm .select-option {
  justify-content: flex-start;
  height: 32px;
  padding: 0 30px 0 8px;
  border-radius: 4px;
  font-size: 14px;
  line-height: 20px;
  font-weight: var(--fw-regular);
  color: var(--n-900);
}
.select-box--sm .select-option + .select-option {
  border-top: 0;
}
.select-box--sm .select-option:hover, .select-box--sm .select-option.is-active {
  background: var(--p-50);
  color: var(--db-700);
}

/**
 * 체크박스 / 라디오 (커스텀) — @Guide_Component 1:1. 박스 18px.
 * PP(tsp-pp)와 동일. 로그인 플로우 네이비는 login.scss 에서 오버라이드.
 */
.check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  /* 네이티브 input 숨김(접근성 유지) */
}
.check input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.check .check-box {
  position: relative;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  border: 1px solid var(--n-300);
  border-radius: 4px;
  background: #fff;
  transition: background 0.15s, border-color 0.15s;
}
.check {
  /* 표식(✓/점) 공통 — 정중앙 */
}
.check .check-box::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.check .check-text {
  font-size: 15px;
  line-height: 22px;
  color: var(--n-900);
}
.check input:disabled ~ .check-text {
  color: var(--n-400);
}
.check:has(input:disabled) {
  cursor: not-allowed;
}

/* 체크박스 가로 그룹 */
.check-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
}

/* 체크박스 ✓ — Figma 벡터 mask(색=배경색), 미선택에도 연회색 노출 */
.check:not(.check--radio) .check-box::after {
  width: 9px;
  height: 7px;
  background-color: var(--n-300);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 9 7'%3E%3Cpath d='M0.5 2.92L3.35 6.5L8.5 0.5' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 9 7'%3E%3Cpath d='M0.5 2.92L3.35 6.5L8.5 0.5' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
}
.check:not(.check--radio) {
  /* 선택 */
}
.check:not(.check--radio) input:checked ~ .check-box {
  border-color: var(--color-point);
  background: var(--color-point);
}
.check:not(.check--radio) input:checked ~ .check-box::after {
  background-color: #fff;
}
.check:not(.check--radio) {
  /* 비활성 미선택 */
}
.check:not(.check--radio) input:disabled ~ .check-box {
  background: var(--n-100);
  border-color: var(--n-300);
}
.check:not(.check--radio) input:disabled ~ .check-box::after {
  opacity: 0;
}
.check:not(.check--radio) {
  /* 비활성 + 선택 */
}
.check:not(.check--radio) input:disabled:checked ~ .check-box {
  background: var(--n-100);
  border-color: var(--n-300);
}
.check:not(.check--radio) input:disabled:checked ~ .check-box::after {
  opacity: 1;
  background-color: var(--n-400);
}

/* 라디오 — 원형 + 점 8px(mask 없음), 미선택에도 연회색 점 노출 */
.check--radio .check-box {
  border-radius: 50%;
}
.check--radio .check-box::after {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--n-300);
}
.check--radio {
  /* 선택 */
}
.check--radio input:checked ~ .check-box {
  border-color: var(--color-point);
  background: #fff;
}
.check--radio input:checked ~ .check-box::after {
  background: var(--color-point);
}
.check--radio {
  /* 비활성 미선택 */
}
.check--radio input:disabled ~ .check-box {
  background: var(--n-100);
  border-color: var(--n-300);
}
.check--radio input:disabled ~ .check-box::after {
  opacity: 0;
}
.check--radio {
  /* 비활성 + 선택 */
}
.check--radio input:disabled:checked ~ .check-box {
  background: var(--n-100);
  border-color: var(--n-300);
}
.check--radio input:disabled:checked ~ .check-box::after {
  opacity: 1;
  background: var(--n-400);
}

/**
 * 아이콘 (line/fill 세트) — CSS mask + currentColor. 크기 기본 16px, .ico-20 / .ico-24.
 * 사용: <i class="ico ico-search"></i> (색 = 부모 글자색). 멀티컬러는 .ico-img(<img>) 예외.
 */
/* fill 세트 — line 과 동일 mask 시스템, fill/ 폴더 */
.ico {
  display: inline-block;
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  vertical-align: middle;
}

.ico-20 {
  width: 20px;
  height: 20px;
}

.ico-24 {
  width: 24px;
  height: 24px;
}

.ico-user {
  background-color: currentcolor;
  -webkit-mask: url("/img/icons/line/user.svg") center/contain no-repeat;
          mask: url("/img/icons/line/user.svg") center/contain no-repeat;
}

.ico-login {
  background-color: currentcolor;
  -webkit-mask: url("/img/icons/line/login.svg") center/contain no-repeat;
          mask: url("/img/icons/line/login.svg") center/contain no-repeat;
}

.ico-logout {
  background-color: currentcolor;
  -webkit-mask: url("/img/icons/line/logout.svg") center/contain no-repeat;
          mask: url("/img/icons/line/logout.svg") center/contain no-repeat;
}

.ico-search {
  background-color: currentcolor;
  -webkit-mask: url("/img/icons/line/search.svg") center/contain no-repeat;
          mask: url("/img/icons/line/search.svg") center/contain no-repeat;
}

.ico-refresh {
  background-color: currentcolor;
  -webkit-mask: url("/img/icons/line/refresh.svg") center/contain no-repeat;
          mask: url("/img/icons/line/refresh.svg") center/contain no-repeat;
}

.ico-close {
  background-color: currentcolor;
  -webkit-mask: url("/img/icons/line/close.svg") center/contain no-repeat;
          mask: url("/img/icons/line/close.svg") center/contain no-repeat;
}

.ico-close-thin {
  background-color: currentcolor;
  -webkit-mask: url("/img/icons/line/close_thin.svg") center/contain no-repeat;
          mask: url("/img/icons/line/close_thin.svg") center/contain no-repeat;
}

.ico-home {
  background-color: currentcolor;
  -webkit-mask: url("/img/icons/line/home.svg") center/contain no-repeat;
          mask: url("/img/icons/line/home.svg") center/contain no-repeat;
}

.ico-time {
  background-color: currentcolor;
  -webkit-mask: url("/img/icons/line/time.svg") center/contain no-repeat;
          mask: url("/img/icons/line/time.svg") center/contain no-repeat;
}

.ico-guide-info {
  background-color: currentcolor;
  -webkit-mask: url("/img/icons/line/guide_info.svg") center/contain no-repeat;
          mask: url("/img/icons/line/guide_info.svg") center/contain no-repeat;
}

.ico-megaphone {
  background-color: currentcolor;
  -webkit-mask: url("/img/icons/line/megaphone.svg") center/contain no-repeat;
          mask: url("/img/icons/line/megaphone.svg") center/contain no-repeat;
}

.ico-calendar {
  background-color: currentcolor;
  -webkit-mask: url("/img/icons/line/calendar.svg") center/contain no-repeat;
          mask: url("/img/icons/line/calendar.svg") center/contain no-repeat;
}

.ico-email {
  background-color: currentcolor;
  -webkit-mask: url("/img/icons/line/email.svg") center/contain no-repeat;
          mask: url("/img/icons/line/email.svg") center/contain no-repeat;
}

.ico-file {
  background-color: currentcolor;
  -webkit-mask: url("/img/icons/line/file.svg") center/contain no-repeat;
          mask: url("/img/icons/line/file.svg") center/contain no-repeat;
}

.ico-contents-show {
  background-color: currentcolor;
  -webkit-mask: url("/img/icons/line/contents_show.svg") center/contain no-repeat;
          mask: url("/img/icons/line/contents_show.svg") center/contain no-repeat;
}

.ico-contents-hide {
  background-color: currentcolor;
  -webkit-mask: url("/img/icons/line/contents_hide.svg") center/contain no-repeat;
          mask: url("/img/icons/line/contents_hide.svg") center/contain no-repeat;
}

.ico-arrow-up {
  background-color: currentcolor;
  -webkit-mask: url("/img/icons/line/arrow_up.svg") center/contain no-repeat;
          mask: url("/img/icons/line/arrow_up.svg") center/contain no-repeat;
}

.ico-arrow-down {
  background-color: currentcolor;
  -webkit-mask: url("/img/icons/line/arrow_down.svg") center/contain no-repeat;
          mask: url("/img/icons/line/arrow_down.svg") center/contain no-repeat;
}

.ico-arrow-left {
  background-color: currentcolor;
  -webkit-mask: url("/img/icons/line/arrow_left.svg") center/contain no-repeat;
          mask: url("/img/icons/line/arrow_left.svg") center/contain no-repeat;
}

.ico-arrow-right {
  background-color: currentcolor;
  -webkit-mask: url("/img/icons/line/arrow_right.svg") center/contain no-repeat;
          mask: url("/img/icons/line/arrow_right.svg") center/contain no-repeat;
}

.ico-arrow-up-bold {
  background-color: currentcolor;
  -webkit-mask: url("/img/icons/line/arrow_up_blod.svg") center/contain no-repeat;
          mask: url("/img/icons/line/arrow_up_blod.svg") center/contain no-repeat;
}

.ico-arrow-down-bold {
  background-color: currentcolor;
  -webkit-mask: url("/img/icons/line/arrow_down_blod.svg") center/contain no-repeat;
          mask: url("/img/icons/line/arrow_down_blod.svg") center/contain no-repeat;
}

.ico-arrow-left-double {
  background-color: currentcolor;
  -webkit-mask: url("/img/icons/line/arrow_left_double.svg") center/contain no-repeat;
          mask: url("/img/icons/line/arrow_left_double.svg") center/contain no-repeat;
}

.ico-arrow-right-double {
  background-color: currentcolor;
  -webkit-mask: url("/img/icons/line/arrow_right_double.svg") center/contain no-repeat;
          mask: url("/img/icons/line/arrow_right_double.svg") center/contain no-repeat;
}

.ico-resize-handle {
  background-color: currentcolor;
  -webkit-mask: url("/img/icons/line/resize_handle.svg") center/contain no-repeat;
          mask: url("/img/icons/line/resize_handle.svg") center/contain no-repeat;
}

.ico-move {
  background-color: currentcolor;
  -webkit-mask: url("/img/icons/line/move.svg") center/contain no-repeat;
          mask: url("/img/icons/line/move.svg") center/contain no-repeat;
}

.ico-folder {
  background-color: currentcolor;
  -webkit-mask: url("/img/icons/line/folder.svg") center/contain no-repeat;
          mask: url("/img/icons/line/folder.svg") center/contain no-repeat;
}

.ico-card {
  background-color: currentcolor;
  -webkit-mask: url("/img/icons/line/card.svg") center/contain no-repeat;
          mask: url("/img/icons/line/card.svg") center/contain no-repeat;
}

.ico-key {
  background-color: currentcolor;
  -webkit-mask: url("/img/icons/line/key.svg") center/contain no-repeat;
          mask: url("/img/icons/line/key.svg") center/contain no-repeat;
}

.ico-statistics {
  background-color: currentcolor;
  -webkit-mask: url("/img/icons/line/statistics.svg") center/contain no-repeat;
          mask: url("/img/icons/line/statistics.svg") center/contain no-repeat;
}

.ico-certificationinfo {
  background-color: currentcolor;
  -webkit-mask: url("/img/icons/line/certificationinfo.svg") center/contain no-repeat;
          mask: url("/img/icons/line/certificationinfo.svg") center/contain no-repeat;
}

.ico-setting {
  background-color: currentcolor;
  -webkit-mask: url("/img/icons/line/setting.svg") center/contain no-repeat;
          mask: url("/img/icons/line/setting.svg") center/contain no-repeat;
}

.ico-log {
  background-color: currentcolor;
  -webkit-mask: url("/img/icons/line/log.svg") center/contain no-repeat;
          mask: url("/img/icons/line/log.svg") center/contain no-repeat;
}

.ico-monitor {
  background-color: currentcolor;
  -webkit-mask: url("/img/icons/line/monitor.svg") center/contain no-repeat;
          mask: url("/img/icons/line/monitor.svg") center/contain no-repeat;
}

.ico-document {
  background-color: currentcolor;
  -webkit-mask: url("/img/icons/line/document.svg") center/contain no-repeat;
          mask: url("/img/icons/line/document.svg") center/contain no-repeat;
}

.ico-plus {
  background-color: currentcolor;
  -webkit-mask: url("/img/icons/line/plus.svg") center/contain no-repeat;
          mask: url("/img/icons/line/plus.svg") center/contain no-repeat;
}

.ico-minus {
  background-color: currentcolor;
  -webkit-mask: url("/img/icons/line/minus.svg") center/contain no-repeat;
          mask: url("/img/icons/line/minus.svg") center/contain no-repeat;
}

.ico-delete {
  background-color: currentcolor;
  -webkit-mask: url("/img/icons/line/delete.svg") center/contain no-repeat;
          mask: url("/img/icons/line/delete.svg") center/contain no-repeat;
}

.ico-deleted-items {
  background-color: currentcolor;
  -webkit-mask: url("/img/icons/line/deleted_items.svg") center/contain no-repeat;
          mask: url("/img/icons/line/deleted_items.svg") center/contain no-repeat;
}

.ico-close-bold {
  background-color: currentcolor;
  -webkit-mask: url("/img/icons/line/close_bold.svg") center/contain no-repeat;
          mask: url("/img/icons/line/close_bold.svg") center/contain no-repeat;
}

.ico-company {
  background-color: currentcolor;
  -webkit-mask: url("/img/icons/line/company.svg") center/contain no-repeat;
          mask: url("/img/icons/line/company.svg") center/contain no-repeat;
}

.ico-contents {
  background-color: currentcolor;
  -webkit-mask: url("/img/icons/line/contents.svg") center/contain no-repeat;
          mask: url("/img/icons/line/contents.svg") center/contain no-repeat;
}

.ico-operation {
  background-color: currentcolor;
  -webkit-mask: url("/img/icons/line/operation.svg") center/contain no-repeat;
          mask: url("/img/icons/line/operation.svg") center/contain no-repeat;
}

.ico-kms {
  background-color: currentcolor;
  -webkit-mask: url("/img/icons/line/kms.svg") center/contain no-repeat;
          mask: url("/img/icons/line/kms.svg") center/contain no-repeat;
}

.ico-arrow-o-right {
  background-color: currentcolor;
  -webkit-mask: url("/img/icons/line/arrow_o_right.svg") center/contain no-repeat;
          mask: url("/img/icons/line/arrow_o_right.svg") center/contain no-repeat;
}

.ico-tree-plus {
  background-color: currentcolor;
  -webkit-mask: url("/img/icons/line/tree_plus.svg") center/contain no-repeat;
          mask: url("/img/icons/line/tree_plus.svg") center/contain no-repeat;
}

.ico-tree-minus {
  background-color: currentcolor;
  -webkit-mask: url("/img/icons/line/tree_minus.svg") center/contain no-repeat;
          mask: url("/img/icons/line/tree_minus.svg") center/contain no-repeat;
}

.ico-guide-book {
  background-color: currentcolor;
  -webkit-mask: url("/img/icons/line/guide_book.svg") center/contain no-repeat;
          mask: url("/img/icons/line/guide_book.svg") center/contain no-repeat;
}

.ico-success {
  background-color: currentcolor;
  -webkit-mask: url("/img/icons/line/success.svg") center/contain no-repeat;
          mask: url("/img/icons/line/success.svg") center/contain no-repeat;
}

.ico-noti {
  background-color: currentcolor;
  -webkit-mask: url("/img/icons/line/noti.svg") center/contain no-repeat;
          mask: url("/img/icons/line/noti.svg") center/contain no-repeat;
}

.ico-certified {
  background-color: currentcolor;
  -webkit-mask: url("/img/icons/fill/certified.svg") center/contain no-repeat;
          mask: url("/img/icons/fill/certified.svg") center/contain no-repeat;
}

.ico-guide-info-fill {
  background-color: currentcolor;
  -webkit-mask: url("/img/icons/fill/guide_info.svg") center/contain no-repeat;
          mask: url("/img/icons/fill/guide_info.svg") center/contain no-repeat;
}

/* other 세트(멀티컬러: 엑셀 등) — mask 불가 → 색 보존 SVG 를 <img> 로.
 * 사용: <img class="ico-img" src="/img/icons/other/excel.svg" alt="Excel"> */
.ico-img {
  display: inline-block;
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  vertical-align: middle;
  object-fit: contain;
}

/**
 * 헤더 / GNB (로그아웃/로그인 상태 공통)
 */
/**
 * 검색 필터 바 (목록 페이지 공통)
 * [조건 select] [기간 date~date] [키워드] [검색버튼] | [엑셀버튼]
 */
.search-box {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 16px;
  padding: 24px;
  background: #fff;
  border-radius: 14px;
}

.f-date {
  position: relative;
}
.f-date .input {
  padding-right: 40px;
}
.f-date .ico-calendar {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  color: var(--color-text-black);
  pointer-events: none;
}

.f-period {
  display: flex;
  align-items: center;
  gap: 4px;
}

.date-sep {
  color: var(--n-900);
}

.search-bar {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  gap: 12px;
  /* 창이 좁아져도 카드 밖으로 튀어나가지 않는다 — 조회조건 줄 안에서 잘린다.
     (카드에 걸면 카드 패딩까지 먹고, 뒤따르는 구분선·엑셀 버튼이 밀려 겹친다)
     셀렉트 드롭다운은 JS 가 position:fixed 로 띄우므로 잘리지 않음. */
  min-width: 0;
  overflow: hidden;
}
.search-bar .f-select {
  flex: 0 0 120px;
}
.search-bar .f-period {
  flex: 0 0 auto;
}
.search-bar .f-date {
  flex: 0 0 140px;
  width: 140px;
}
.search-bar .f-keyword {
  flex: 1 1 auto;
}
.search-bar {
  /* ID 입력(토큰ID·카드ID 등) — Figma input/basic 200 고정 */
}
.search-bar .f-id {
  flex: 0 0 200px;
  width: 200px;
}

/* OP 목록 필터 변형 — Figma selectbox/basic 160(기본 120 은 좁은 필터용),
   키워드 입력 없이 남는 자리를 비우고 검색 버튼을 우측 끝에 둔다(Figma search_box = 빈 여백). */
.search-bar--op .f-select {
  flex: 0 0 160px;
}
.search-bar--op .btn-filter--search {
  margin-left: auto;
}

.filter-divider {
  flex: 0 0 auto;
  width: 1px;
  height: 18px;
  background: var(--color-bd-light);
}

/**
 * 헤더 / GNB (로그아웃/로그인 상태 공통)
 */
/**
 * 데이터 테이블 (OP 목록 페이지 공통).
 * ⚠ OP 전용 스펙. PP 테이블은 이 저장소 아님(PP 저장소). [[op-pp-separate-sites]]
 */
.table-box {
  display: flex;
  align-items: stretch;
  padding: 24px;
  background: #fff;
  border-radius: 14px;
  flex-direction: column;
  min-width: 0;
}

/* 테이블 가로 스크롤 래퍼 — 좁은 폭에서 열 고정폭 합이 박스보다 크면 박스 안에서 가로 스크롤(넘침 방지) */
.table-scroll {
  width: 100%;
  overflow-x: auto;
}

.table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  /**
   * 행 높이 = 테두리 포함 Figma 값과 일치시킨다(2026-08-04).
   *  · 본문 행 52 = 상 15 + 행간 22 + 하 14 + 아래 테두리 1
   *  · 헤더 행 46 = 상 11 + 행간 22 + 하 11 + 위·아래 테두리 2
   * (Figma 는 테두리를 행 높이 안쪽에 그리고 CSS 는 바깥에 더하므로 아래 패딩에서 1 씩 뺀다)
   */
}
.table th,
.table td {
  padding: 15px 10px 14px;
  font-size: 15px;
  line-height: 22px;
  text-align: center;
}
.table {
  /* 헤더 라벨은 줄바꿈 금지 — 폭이 좁아지면 두 줄로 깨지지 않고 말줄임(…) 처리 */
}
.table thead th {
  padding-top: 11px;
  padding-bottom: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: var(--n-50);
  color: var(--color-text-black);
  font-weight: var(--fw-semibold);
  border-top: 1px solid var(--n-200);
  border-bottom: 1px solid var(--n-200);
}
.table tbody tr {
  background: #fff;
  transition: background 0.12s;
}
.table tbody tr:hover {
  background: var(--n-40);
}
.table tbody td {
  border-bottom: 1px solid var(--n-200);
  color: var(--color-text-black);
}

.table-board .td-title {
  text-align: left;
}
.table-board {
  /* 행 전체가 클릭 영역(클릭 시 상세 이동은 _common.js) */
}
.table-board tbody tr {
  cursor: pointer;
}

/**
 * 헤더 / GNB (로그아웃/로그인 상태 공통)
 */
/**
 * 관리 목록 페이지 공통 레이아웃 (프로파일 관리 등 목록형 화면)
 * 페이지 헤더 · 검색 필터 그리드 · 테이블 툴바 · 가로스크롤 래퍼. 목록/폼/버튼/테이블은 각 공통 모듈 재사용.
 */
/* .page-head 타이틀 블록 간격은 modules/_page 가 단일 소스 */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 12px;
  font-size: 14px;
  line-height: 20px;
  color: var(--n-600);
}
.breadcrumb .ico {
  color: var(--n-600);
}
.breadcrumb .breadcrumb-home {
  display: inline-flex;
  align-items: center;
}
.breadcrumb .here {
  color: var(--n-900);
  font-weight: var(--fw-semibold);
}
.breadcrumb a {
  color: var(--n-600);
  text-decoration: none;
}
.breadcrumb a:hover {
  text-decoration: underline;
}

/* .page-title(h1)은 공통 modules/_page.scss 사용 */
.page-desc {
  margin-top: 8px;
  font-size: 15px;
  line-height: 22px;
  color: var(--text-02);
}

.filter-card {
  margin-bottom: 24px;
}

.filter-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px 20px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field > label {
  font-size: 14px;
  line-height: 20px;
  font-weight: var(--fw-semibold);
  color: var(--n-900);
}

.filter-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 20px;
}

/* 검색 필터 (라벨-좌측 수평형 + 우측 검색 아이콘 버튼) — @Guide filter_box.
 * 폭 노브(페이지 SCSS 에서 override): --search-label-w(라벨 폭) / --search-input-w(입력 폭, @Guide 314).
 * 좁은 화면은 flex-wrap 줄바꿈. (라벨 상단형은 .filter-grid) */
.search-filter {
  --search-label-w: 120px;
  --search-input-w: 300px;
  display: flex;
  align-items: flex-end;
  gap: 10px;
  margin-bottom: 24px;
  padding: 24px;
  background: #fff;
  border-radius: 14px;
}

.search-filter-fields {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 16px 30px;
}

.search-field {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-basis: 30%;
  height: 44px;
  /* 라벨: 고정 폭(통일) → 입력창 시작점 정렬 */
}
.search-field > label {
  flex: 0 0 var(--search-label-w);
  width: var(--search-label-w);
  white-space: nowrap;
  font-size: 14px;
  line-height: 20px;
  font-weight: var(--fw-semibold);
  color: var(--n-900);
}
.search-field {
  /* 직접 자식만 겨냥 → f-date·input-group 등 래퍼 안의 중첩 input 은 보호 */
}
.search-field > .input,
.search-field > .select,
.search-field > .select-box,
.search-field > .f-date {
  flex: 0 0 var(--search-input-w);
  width: var(--search-input-w);
  min-width: 0;
}
.search-field-warp {
  display: flex;
  gap: 14px;
  width: var(--search-input-w);
}

.search-btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: var(--color-point);
  color: #fff; /* .ico currentcolor → 흰 아이콘 */
  cursor: pointer;
  transition: background 0.15s;
}
.search-btn:hover {
  background: var(--p-700);
}
.search-btn .ico {
  width: 20px;
  height: 20px;
}

.table-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  margin-bottom: 12px;
  /* 창이 좁아져도 우측 버튼은 카드 안에 남고, 좌측 건수 문구가 먼저 말줄임된다 */
}
.table-toolbar > .btn,
.table-toolbar > .btn-group,
.table-toolbar > a.btn {
  flex: 0 0 auto;
}
.table-toolbar .count {
  overflow: hidden;
  min-width: 0;
  font-size: 15px;
  line-height: 22px;
  color: var(--text-02);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.table-toolbar .count b {
  color: var(--color-point);
  font-weight: var(--fw-bold);
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

.table .num {
  color: var(--text-02);
}
.table .left {
  text-align: left;
}
.table .cell-link {
  color: var(--color-point);
  cursor: pointer;
}
.table .cell-link:hover {
  text-decoration: underline;
}

/**
 * 헤더 / GNB (로그아웃/로그인 상태 공통)
 */
/**
 * 상세 화면 공통 (프로파일 상세 등) — 탭바·정보 섹션·키/값 그리드·액션줄 공유.
 * 목록/폼/버튼/테이블/모달은 공통 모듈 재사용, 페이지 고유부는 pages/*.
 */
/* 상세 카드 패널 = .card 그대로 사용. .detail-card 는 스타일 없는 마크업 hook */
/* 탭 헤더 (풀폭 3분할, 카드 상단) */
.detail-tabs {
  display: flex;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--n-300);
}

/* 탭 없이 우측 액션(목록보기 등)만 있는 상단줄 */
.detail-topbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 12px;
}

.detail-tab {
  flex: 1 0 0;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  margin-bottom: -1px; /* 활성 2px 밑줄을 컨테이너 라인에 정렬 */
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  font-size: 16px;
  line-height: 24px;
  color: var(--text-02);
  cursor: pointer;
}
.detail-tab.is-active {
  color: var(--color-text-black);
  border-bottom-color: var(--db-700);
  font-weight: var(--fw-semibold);
}

/* 정보 섹션 */
.detail-sec + .detail-sec {
  margin-top: 32px;
}

/* 섹션 제목 줄(제목 + 우측 보조 버튼 배치 가능) */
.detail-sec-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.detail-sec-title {
  margin-bottom: 10px;
  font-size: 20px;
  line-height: 30px;
  font-weight: var(--fw-bold);
  color: var(--color-text-black);
}
.detail-sec-head .detail-sec-title {
  margin-bottom: 0;
}

/* 키/값 그리드: 기본 2쌍(4열) / .cols-2 는 1쌍(2열, 값이 넓을 때) */
.detail-grid {
  display: grid;
  grid-template-columns: 220px 1fr 220px 1fr;
  border-top: 1px solid var(--n-200);
}
.detail-grid.cols-2 {
  grid-template-columns: 160px 1fr;
}
.detail-grid .dt,
.detail-grid .dd {
  padding: 15px 10px;
  border-bottom: 1px solid var(--n-200);
  font-size: 15px;
  line-height: 22px;
}
.detail-grid .dt {
  display: flex;
  align-items: center;
  background: var(--n-50);
  color: var(--text-02);
  font-weight: var(--fw-semibold);
}
.detail-grid .dd {
  display: flex;
  align-items: center;
  color: var(--color-text-black);
  word-break: break-all;
}
.detail-grid {
  /* 한 줄 전체를 쓰는 값(라벨 옆부터 끝까지) */
}
.detail-grid .dd.wide {
  grid-column: 2/-1;
}

/* 상세 값 내 경고 텍스트(예: KCV 키 없음) */
.detail-warn {
  color: var(--color-error);
}

/* 빈 결과 셀(데이터 없음) */
.detail-empty {
  padding: 24px 10px;
  text-align: center;
  color: var(--text-03);
}

/* 하단 액션 버튼줄 */
.detail-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 32px;
  /* 우측 정렬(카드 하단 액션바 — 카드 상세 등) */
}
.detail-actions.end {
  justify-content: flex-end;
}

/* 카드 밖 하단 중앙: 목록 등 */
.detail-foot {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

/* 애플리케이션 탭: 추가/저장 버튼줄 */
.detail-appbtns {
  display: flex;
  justify-content: flex-end;
  margin-top: 12px;
}
.detail-appbtns.center {
  justify-content: center;
  margin-top: 18px;
}

/* 세로 스크롤 테이블(조회 결과 등) */
.table-wrap.is-scroll {
  max-height: 300px;
  overflow-y: auto;
}

.form-row {
  width: 100%;
}

.muted {
  width: 100%;
}

/**
 * 헤더 / GNB (로그아웃/로그인 상태 공통)
 */
/**
 * 라벨-값 정보/폼 테이블 (OP 상세·열람·수정·등록 공통) — th 회색 라벨(고정 130) / td 값·인풋.
 * 수치 기준: Figma 1088:34098·34643 — th130/td639, 행 52, 셀 내용 x10 y15.
 */
.info-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
  border-top: 1px solid var(--n-200);
}
.info-table .col-th {
  width: 130px;
}
.info-table th,
.info-table td {
  padding: 15px 10px 14px;
  font-size: 15px;
  line-height: 22px;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid var(--n-200);
}
.info-table {
  /* 인풋·셀렉트·버튼(높이 44)이 든 셀은 세로 여백 축소 → 행 높이 52 유지(44 + 4·2) */
}
.info-table td:has(.input),
.info-table td:has(.input-group),
.info-table td:has(.select-box),
.info-table td:has(> .btn) {
  padding-top: 4px;
  padding-bottom: 3px;
  vertical-align: top;
}
.info-table {
  /* 인풋이 있는 행의 라벨(th)도 상단 정렬 (Figma y15) */
}
.info-table tr:has(.input) th {
  vertical-align: top;
}
.info-table th {
  background: var(--n-50);
  color: var(--n-900);
  font-weight: var(--fw-semibold);
  white-space: nowrap;
}
.info-table td {
  color: var(--n-900);
}
.info-table .req {
  color: var(--color-point);
  font-weight: var(--fw-semibold);
}
.info-table .input {
  width: 100%;
}
.info-table {
  /* 셀 안 인풋그룹의 버튼(OTP·중복체크·인증 등) — Figma basic_line 폭 100 고정 */
}
.info-table .input-group .btn {
  flex: 0 0 100px;
  width: 100px;
}
.info-table .status-select {
  width: 100%;
}

/* 증빙서류 등 파일 링크 — N-900 밑줄 */
.file-link {
  color: var(--n-900);
  text-decoration: underline;
}

/* 상세 하단 '목록' 버튼 — 카드 아래 가운데 (Figma 폭 100) */
.detail-list {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}
.detail-list .btn {
  width: 100px;
}

/* 권한그룹 필드: 셀렉트 + 설명 텍스트 한 줄 (등록·수정 공용) */
.authgroup-field {
  display: flex;
  align-items: center;
  gap: 12px;
}
.authgroup-field .authgroup-select {
  flex: 0 0 auto;
  width: 260px;
}
.authgroup-field .authgroup-desc {
  font-size: 15px;
  line-height: 22px;
  color: var(--n-600);
}
.authgroup-field .authgroup-desc:empty {
  display: none;
}

/* 권한그룹 표시: 이름 | 설명(구분선) + (선택) 아래 메뉴 리스트 */
.auth-group {
  display: flex;
  align-items: center;
  gap: 12px;
}
.auth-group .auth-name {
  color: var(--n-900);
}
.auth-group .auth-sep {
  width: 1px;
  height: 12px;
  background: var(--n-300);
}
.auth-group .auth-desc {
  color: var(--n-600);
}

.auth-menus {
  display: flex;
  gap: 30px;
  margin-top: 14px;
  color: var(--n-600);
  font-size: 15px;
  line-height: 22px;
}

/* 테이블/카드 하단 액션 버튼 행 — 우측 정렬 (Figma: 버튼 80, 간격 10) */
.info-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 24px;
}
.info-actions .btn {
  min-width: 80px;
  width: 80px;
}

/**
 * 헤더 / GNB (로그아웃/로그인 상태 공통)
 */
/**
 * 상품 관리 공통 (카드상품 / 발급사상품) — 2분할 트리+상세 레이아웃.
 * 좌측 트리뷰 / 우측 인라인 상세·신규·export·import 패널. 두 화면이 동일 구조 공유.
 */
/* 2분할 레이아웃 (@Figma 1337:56890 — 좌우 50:50): 좌 컬럼(필터+트리) / 우 상세 패널 */
.cd-split {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.cd-left-col {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  /* 검색필터를 이 반폭 컬럼에서만 재정의(스코프 한정 → 타 페이지 영향 없음). 입력을 항상 2개씩 한 줄에(요청) */
}
.cd-left-col > .search-filter {
  margin-bottom: 0;
  --search-label-w: 112px;
  /* 필드 = 컬럼의 절반(가로 gap 30 → 절반 15 제외) → 무조건 2열 */
}
.cd-left-col > .search-filter .search-field {
  flex: 1 1 calc(50% - 15px);
  min-width: 0;
  min-height: 44px;
}
.cd-left-col > .search-filter {
  /* 고정 314/200 대신 입력이 필드 남는 폭을 채움(2열 확보) */
}
.cd-left-col > .search-filter .search-field > .input {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
}

.tab {
  padding: 0 20px;
}

.cd-left {
  width: 100%;
  min-width: 0;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--color-bd-light-2);
  border-radius: 14px;
}

.cd-right {
  flex: 1 1 0;
  min-width: 0;
}

.tree {
  font-size: 14px;
  line-height: 20px;
  background-color: var(--n-40);
}

.tree-node .tree-children {
  padding-left: 18px;
}

.tree-head {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 8px;
  border-radius: 8px;
  cursor: pointer;
}
.tree-head:hover {
  background: var(--n-50);
}

/* 펼침 토글 캐럿 — .open 시 90도 회전 */
.tree-toggle {
  flex: 0 0 auto;
  width: 14px;
  color: var(--text-03);
  transition: transform 0.15s;
}

.tree-node.open > .tree-head > .tree-toggle {
  transform: rotate(90deg);
}

.tree-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 1 1 auto;
  min-width: 0;
  color: var(--color-text-black);
}

.tree-id {
  font-family: monospace;
  color: var(--color-point);
}

.tree-sep {
  color: var(--n-300);
}

.tree-cnt {
  color: var(--text-03);
}

.tree-name {
  font-weight: var(--fw-semibold);
}

.tree-node.selected > .tree-head,
.tree-node.is-selected > .tree-head {
  background: var(--p-50);
}

.tree-apps {
  padding: 2px 0 6px 26px;
}

.tree-app {
  padding: 3px 0;
  font-size: 13px;
  line-height: 20px;
  color: var(--text-02);
}

/* ── prod-tree (tsp-pp 참고): 상품 관리 트리 공통 비주얼 ─────────────
 * 카드상품/발급사상품 화면 공유. 1뎁스=chevron(ico-arrow-down) / 하위=+/− 박스(prod-box) /
 * 리프=prod-leaf. 뎁스별 들여쓰기(padding-left·margin-left)는 각 페이지 scss에서 지정.
 * badge-state·btn-detail·select-box(편집) 은 위 공통 스타일 재사용. 동작=ui/_common.js. */
.prod-tree {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.prod-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.prod-label {
  display: flex;
  flex: 1 1 0;
  min-width: 0;
  align-items: center;
  gap: 6px;
  color: var(--color-text-black);
}

/* 코드 = monospace 보라(프로파일/발급사상품 식별자) */
.prod-code {
  font-family: monospace;
  color: var(--color-point);
}

/* 코드 │ 이름 구분 세로선 */
.prod-sep {
  flex: 0 0 auto;
  width: 1px;
  height: 12px;
  background: var(--n-300);
}

.prod-cnt {
  flex: 0 0 auto;
  color: var(--text-03);
}

/* ── 1뎁스 행(chevron) ── */
.prod-row--issuer {
  height: 36px;
  gap: 4px;
}
.prod-row--issuer .prod-label {
  font-size: 16px;
  line-height: 24px;
}
.prod-row--issuer {
  /* 편집 드롭다운은 자연폭으로 우측 고정 */
}
.prod-row--issuer .edit-dropdown {
  flex: 0 0 auto;
}

.prod-chevron {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 0;
  background: none;
  cursor: pointer;
}
.prod-chevron .ico {
  width: 16px;
  height: 16px;
  transition: transform 0.15s;
}

.prod-issuer:not(.is-open) .prod-chevron .ico {
  transform: rotate(-90deg);
}

.prod-issuer.is-open > .prod-row--issuer .prod-label {
  font-weight: var(--fw-semibold);
}

/* 1뎁스 하위(트리 본문) — 회색 박스 */
.prod-sub--issuer {
  margin-top: 10px;
  padding: 16px;
  border-radius: 6px;
  background: var(--n-40);
}

.prod-branch {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* ── +/− 토글 박스(하위 뎁스) ── */
.prod-box {
  position: relative;
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  border: 1px solid var(--n-500);
  border-radius: 2px;
  background: none;
  cursor: pointer;
}
.prod-box::before, .prod-box::after {
  content: "";
  position: absolute;
  background: var(--n-800);
}
.prod-box::before {
  top: 50%;
  left: 3px;
  right: 3px;
  height: 1px;
  transform: translateY(-50%);
}
.prod-box::after {
  left: 50%;
  top: 3px;
  bottom: 3px;
  width: 1px;
  transform: translateX(-50%);
}

.prod-node.is-open > .prod-row .prod-box::after {
  display: none;
}

/* ── 카드상품 행(공통: 폰트·펼침 굵기). 들여쓰기는 페이지별 ── */
.prod-node--product > .prod-row .prod-title {
  flex: 0 1 auto;
  font-size: 14px;
  line-height: 20px;
}

.prod-node--product.is-open > .prod-row .prod-title {
  font-weight: var(--fw-semibold);
}

/* ── 애플리케이션(회색 라운드 박스). margin-left 는 페이지별 ── */
.prod-leaf-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px;
  border-radius: 14px;
  background: var(--n-50);
}

.prod-leaf {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: none;
  text-align: left;
  cursor: pointer;
  font-size: 14px;
  line-height: 20px;
  color: var(--text-02);
}
.prod-leaf input[type=checkbox] {
  flex: 0 0 auto;
  margin: 0;
}
.prod-leaf.is-active {
  font-weight: var(--fw-medium);
  color: var(--color-point);
}

/* 그룹 사이 가로 구분선 */
.prod-hr {
  height: 1px;
  margin: 0;
  background: var(--n-200);
}

/* 접힘 시 하위 숨김 */
.prod-issuer:not(.is-open) > .prod-sub,
.prod-node:not(.is-open) > .prod-sub {
  display: none;
}

.edit-dropdown {
  position: relative;
  flex: 0 0 auto;
}

.btn-edit {
  padding: 4px 10px;
  border: 1px solid var(--n-300);
  border-radius: 8px;
  background: #fff;
  font-size: 13px;
  line-height: 20px;
  color: var(--n-700);
  cursor: pointer;
}
.btn-edit:hover {
  background: var(--n-50);
  border-color: var(--n-400);
}

.edit-menu {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  z-index: 20;
  min-width: 120px;
  padding: 4px;
  border: 1px solid var(--color-bd-light);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  list-style: none;
}
.edit-menu[hidden] {
  display: none;
}

.edit-item {
  display: block;
  width: 100%;
  padding: 8px 10px;
  border: 0;
  border-radius: 6px;
  background: none;
  font-size: 14px;
  line-height: 20px;
  color: var(--color-text-black);
  text-align: left;
  cursor: pointer;
}
.edit-item:hover {
  background: var(--n-50);
}

.btn-detail {
  flex: 0 0 auto;
  padding: 4px 10px;
  border: 1px solid var(--n-300);
  border-radius: 8px;
  background: #fff;
  font-size: 13px;
  line-height: 20px;
  color: var(--n-700);
  cursor: pointer;
}
.btn-detail:hover {
  background: var(--n-50);
  border-color: var(--n-400);
}

/* 발급/연결 상태 뱃지 */
.badge-state {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border: 1px solid transparent;
  border-radius: 50px;
  font-size: 13px;
  line-height: 20px;
  font-weight: var(--fw-semibold);
  white-space: nowrap;
}

.badge-state.issued,
.badge-state.issuer-issued,
.badge-state.issuer-allissued {
  color: var(--g-600);
  border-color: var(--g-600);
  background: var(--g-50);
}

.badge-state.connected {
  color: var(--color-point);
  border-color: var(--color-point);
  background: var(--p-50);
}

.badge-state.standby,
.badge-state.issuer-standby {
  color: var(--n-600);
  border-color: var(--n-400);
  background: var(--n-50);
}

.badge-issueinfo {
  cursor: pointer;
}

/* 우측 상세/신규/export/import 패널 */
.card-detail-box {
  background: #fff;
  border: 1px solid var(--color-bd-light-2);
  border-radius: 14px;
}

.cd-placeholder {
  padding: 60px 20px;
  text-align: center;
  color: var(--text-03);
  background: #fff;
  border: 1px dashed var(--color-bd-light);
  border-radius: 14px;
}

.cd-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--color-bd-light-2);
}

.cd-panel-title {
  font-size: 18px;
  line-height: 28px;
  font-weight: var(--fw-bold);
  color: var(--color-text-black);
}

.cd-panel-close {
  width: 32px;
  height: 32px;
  border: 0;
  background: none;
  font-size: 24px;
  line-height: 1;
  color: var(--text-03);
  cursor: pointer;
}
.cd-panel-close:hover {
  color: var(--color-text-black);
}

.cd-panel-body {
  padding: 20px;
}

.cd-panel-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-end;
  padding: 16px 20px;
  border-top: 1px solid var(--color-bd-light-2);
}

.cd-desc {
  font-size: 13px;
  line-height: 20px;
  color: var(--text-02);
  line-height: 1.7;
}

.cd-desc-line + .cd-desc-line {
  margin-top: 2px;
}

.cd-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--color-bd-light-2);
}

.cd-tab {
  padding: 8px 4px;
  margin-bottom: -1px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  font-size: 15px;
  line-height: 22px;
  color: var(--text-02);
  cursor: pointer;
}
.cd-tab.is-active {
  color: var(--color-point);
  border-bottom-color: var(--color-point);
  font-weight: var(--fw-semibold);
}

.cd-section + .cd-section {
  margin-top: 24px;
}

.cd-sec-title {
  margin: 12px 0;
  font-size: 20px;
  line-height: 30px;
  font-weight: var(--fw-semibold);
  color: var(--color-text-black);
  text-align: left;
  width: 100%;
  padding-bottom: 8px;
  border-bottom: 1px solid #e5e5e5;
}

.cd-sec-head {
  margin-bottom: 12px;
}

/* 접이식 섹션 제목 */
.cd-sec-toggle {
  cursor: pointer;
  -webkit-user-select: none;
          user-select: none;
  /* ▼ 화살표 — select-box 와 동일 소스(arrow_down.svg), 색 currentcolor */
}
.cd-sec-toggle .cd-caret {
  display: inline-block;
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  margin-right: 4px;
  vertical-align: middle;
  background-color: currentcolor;
  -webkit-mask: url("/img/icons/line/arrow_down.svg") center/contain no-repeat;
          mask: url("/img/icons/line/arrow_down.svg") center/contain no-repeat;
  transition: transform 0.15s;
}
.cd-sec-toggle:not(.is-open) .cd-caret {
  transform: rotate(-180deg);
}
.cd-sec-toggle {
  /* 접힘 상태 → 바로 뒤 본문 숨김 */
}
.cd-sec-toggle:not(.is-open) + .cd-sec-body {
  display: none;
}

/* 라벨/값 정보 그리드(@Figma 915:33383): 라벨 셀 N-50 · 값 셀 흰. 세로선 없음, 행마다 하단선.
 * 좁은 패널(50% 폭)에서 기본 2열(라벨│값), 넓은 뷰에서 4열. */
.cd-grid {
  display: grid;
  grid-template-columns: 160px 1fr 160px 1fr;
  border-top: 1px solid var(--n-200);
  font-size: 15px;
  line-height: 22px;
}

.modal-box .cd-grid {
  grid-template-columns: 190px 1fr 190px 1fr;
}

.cd-grid-label {
  padding: 15px 10px;
  background: var(--n-50);
  border-bottom: 1px solid var(--n-200);
  font-weight: var(--fw-semibold);
  color: var(--n-600);
}

.cd-grid-value {
  padding: 15px 10px;
  background: #fff;
  border-bottom: 1px solid var(--n-200);
  color: var(--n-900);
}

.cd-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}
.cd-field + .cd-field {
  margin-top: 12px;
}
.cd-field > label {
  font-size: 14px;
  line-height: 20px;
  font-weight: var(--fw-semibold);
  color: var(--n-900);
}

.cd-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 12px;
}
.cd-field-row .cd-field + .cd-field {
  margin-top: 0;
}

.cd-readonly {
  padding: 10px 12px;
  background: var(--n-50);
  border: 1px solid var(--color-bd-light-2);
  border-radius: 10px;
  font-size: 15px;
  line-height: 22px;
  color: var(--text-02);
}

.cd-note {
  margin-top: 12px;
  padding: 10px 12px;
  background: var(--r-100);
  border: 1px solid var(--r-200);
  border-radius: 8px;
  font-size: 13px;
  line-height: 20px;
  color: var(--text-02);
}

.cd-table-wrap {
  width: 100%;
}

.cd-app-table {
  margin-top: 4px;
}
.cd-app-table th,
.cd-app-table td {
  padding: 10px;
  font-size: 14px;
  line-height: 20px;
}

.cd-app-link {
  color: var(--color-point);
  cursor: pointer;
}
.cd-app-link:hover {
  text-decoration: underline;
}

.cd-filesum {
  font-size: 13px;
  line-height: 20px;
  color: var(--text-02);
}

.cd-script-info {
  margin-top: 14px;
  padding-left: 12px;
  border-left: 3px solid var(--color-bd-light);
  font-size: 13px;
  line-height: 20px;
  color: var(--text-02);
  line-height: 1.6;
}

.cd-loading {
  padding: 40px 0;
  text-align: center;
  color: var(--text-03);
}

.cd-newreg-desc {
  margin-bottom: 16px;
}

.cd-newreg-hint {
  font-size: 13px;
  line-height: 20px;
  color: var(--text-03);
}

.cd-newreg-sechead {
  margin-bottom: 12px;
}

.cd-newreg-section + .cd-newreg-section {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--color-bd-light-2);
}

.cd-dup-warn {
  margin-top: 6px;
  font-size: 13px;
  line-height: 20px;
  color: var(--color-error);
}
.cd-dup-warn[hidden] {
  display: none;
}

/* 등록 가능 앱 검색줄 — 필드 수(1~3) 무관 남는 폭 균등 분할 + 버튼 자연폭 우측 고정(grid 대신 flex) */
.cd-search {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: end;
  margin-bottom: 12px;
  /* 필드: 균등 분할. min-width:0 으로 셀렉트 등 내용 넘침 방지 */
}
.cd-search > .cd-field {
  flex: 1 1 0;
  min-width: 0;
}
.cd-search > .cd-search-btn {
  flex: 0 0 auto;
  justify-content: flex-end;
}

/* 소형 액션 버튼(추가/삭제/미니) — .btn 계열 없이 쓰이는 자리 보정 */
.cd-add-btn,
.cd-mini-btn {
  padding: 5px 12px;
  border: 1px solid var(--n-500);
  border-radius: 6px;
  background: #fff;
  font-size: 13px;
  line-height: 20px;
  color: var(--n-900);
  cursor: pointer;
}
.cd-add-btn:hover,
.cd-mini-btn:hover {
  background: var(--n-50);
}

.cd-del {
  color: var(--color-error);
  cursor: pointer;
}

.page-btn {
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  border: 1px solid var(--color-bd-light);
  border-radius: 6px;
  background: #fff;
  font-size: 14px;
  line-height: 20px;
  color: var(--text-02);
  cursor: pointer;
}
.page-btn.is-active {
  background: var(--color-text-black);
  border-color: var(--color-text-black);
  color: #fff;
  font-weight: var(--fw-bold);
}

.cd-table-wrap .empty,
td.empty {
  padding: 20px;
  text-align: center;
  color: var(--text-03);
}

/**
 * 헤더 / GNB (로그아웃/로그인 상태 공통)
 */
/**
 * 뱃지 (구분 라벨/상태 라벨) — @[OP] Status_OP 컴포넌트. Figma 919:46086.
 * 알약형 filled tint. 실측 w60·h22·13-Medium·radius 50. 색/타이포는 토큰 사용.
 */
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 7px;
  border: 1px solid transparent;
  border-radius: 50px;
  background: #fff;
  font-size: 13px;
  line-height: 20px;
  font-weight: var(--fw-semibold);
  vertical-align: middle;
}

/* 상태/구분 뱃지 공통 — 고정폭 60·높이 22·13 Medium (Figma 실측) */
.badge-ok,
.badge-apply,
.badge-issue,
.badge-progress,
.badge-done,
.badge-active,
.badge-activation,
.badge-fail,
.badge-withdraw,
.badge-inactive,
.badge-cancel,
.badge-blocked,
.badge-receipt,
.badge-approve,
.badge-partner,
.badge-wait,
.badge-all,
.badge-register,
.badge-expire,
.badge-hide,
.badge-suspend {
  box-sizing: border-box;
  width: 60px;
  height: 22px;
  padding: 1px 0;
  font-weight: var(--fw-medium);
}

/* 이메일 발송 — 라벨이 길어 고정 60 대신 내용폭(min 60, 좌우 패딩 7) */
.badge-email {
  box-sizing: border-box;
  min-width: 60px;
  height: 22px;
  padding: 1px 7px;
  font-weight: var(--fw-medium);
  white-space: nowrap;
}

/* 초록 G-500 — 정상·신청·발급·등록 (등록: Status_OP register 배리언트, 회색→초록 변경) */
.badge-ok,
.badge-apply,
.badge-issue,
.badge-register {
  background: var(--g-50);
  color: var(--g-500);
}

/* 파랑 B-500 — 진행중·처리완료·사용·활성 */
.badge-progress,
.badge-done,
.badge-active,
.badge-activation {
  background: var(--b-50);
  color: var(--b-500);
}

/* 빨강 R-500 — 실패·탈퇴·비활성 (bg Figma 전용 #fff7f7) */
.badge-fail,
.badge-withdraw,
.badge-inactive {
  background: #fff7f7;
  color: var(--r-500);
}

/* 남보라 DB-600 — 취소·사용중지 (bg Figma 전용 #f4f5f8) */
.badge-cancel,
.badge-blocked {
  background: #f4f5f8;
  color: var(--db-600);
}

/* 주황 Y-500 — 접수 */
.badge-receipt {
  background: var(--y-50);
  color: var(--y-500);
}

/* 보라 Primary — 승인·파트너·이메일 발송 */
.badge-approve,
.badge-partner,
.badge-email {
  background: var(--p-50);
  color: var(--color-point);
}

/* 회색 N-600 — 대기·전체·기간만료·숨김 */
.badge-wait,
.badge-all,
.badge-expire,
.badge-hide {
  background: var(--n-50);
  color: var(--n-600);
}

/* 발급에러(CAMS 라이프사이클) — Figma 컴포넌트 외, R-200 강조 */
.badge-suspend {
  background: var(--r-200);
  color: var(--r-500);
}

/**
 * 헤더 / GNB (로그아웃/로그인 상태 공통)
 */
/**
 * 페이지네이션 (목록 페이지 공통) — 활성 = 검정 원(N-900) 흰 글자 / 비활성 = N-600 / 다음 = 더블 화살표.
 */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
}
.pagination a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-size: 15px;
  line-height: 22px;
  color: var(--text-02);
}
.pagination a:hover {
  font-weight: 700;
}
.pagination .is-active {
  background: var(--color-text-black);
  color: #fff;
  font-weight: var(--fw-bold);
}
.pagination .page-next {
  color: var(--text-02);
}
.pagination .page-next .ico {
  width: 16px;
  height: 16px;
}

/**
 * 탭 메뉴 — .tab > .tab-item(.is-active)
 */
.tab {
  display: flex;
  width: 100%;
}

.tab-item {
  flex: 1 1 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  background: #fff;
  border-bottom: 1px solid var(--n-300);
  font-size: 16px;
  line-height: 24px;
  color: var(--n-600);
  text-align: center;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.tab-item:hover {
  background: var(--n-50);
}
.tab-item.is-active {
  border-bottom: 2px solid var(--color-point);
}

/**
 * 헤더 / GNB (로그아웃/로그인 상태 공통)
 */
/**
 * 스텝/진행 단계 — 마법사 상단 스텝퍼 (KMS 키 생성 등).
 * 마크업(원을 양 끝으로 벌리기 위해 원 사이에 .stepper-bar 삽입):
 *   <ol class="stepper">
 *     <li class="stepper-step is-current"><span class="stepper-dot">1</span><span class="stepper-text">라벨</span></li>
 *     <li class="stepper-bar" aria-hidden="true"></li>
 *     <li class="stepper-step"><span class="stepper-dot">2</span><span class="stepper-text">라벨</span></li>
 *     …
 *   </ol>
 * 상태: 기본(대기) / .is-current(진행중) / .is-done(완료).
 */
.stepper {
  display: flex;
  align-items: flex-start;
  min-height: 64px;
  margin: 0;
  padding: 0 32px;
  list-style: none;
}

/* 단계(원+라벨) — 원 크기만 차지, 라벨은 원 아래 절대배치 */
.stepper-step {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
}

/* 원 사이 연결선 — 남는 공간을 채우며 늘어나 원을 양 끝으로 밀어냄.
   좌우 16 여백으로 원과 라인이 닿지 않게(Figma: 원-라인 간격 16) */
.stepper-bar {
  flex: 1 1 0;
  height: 5px;
  margin: 15.5px 16px 0;
  border-radius: 6px;
  background: #f2f3f6;
}

.stepper-dot {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f3f4fa;
  font-size: 15px;
  line-height: 22px;
  font-weight: var(--fw-bold);
  color: var(--n-900);
}

.stepper-text {
  position: absolute;
  top: 42px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 15px;
  line-height: 22px;
  font-weight: var(--fw-semibold);
  color: var(--n-600);
  white-space: nowrap;
}

/* 진행중(현재 단계) — 원 Primary 채움 + 연보라 후광 + 라벨 Primary */
.stepper-step.is-current .stepper-dot {
  background: var(--color-point);
  color: #fff;
  box-shadow: 0 0 0 4px var(--p-100);
}
.stepper-step.is-current .stepper-text {
  color: var(--color-point);
}

/* 완료 — 진한 원 + 흰 체크 + 라벨 진하게(N-900) */
.stepper-step.is-done .stepper-dot {
  background: var(--n-800);
  color: transparent;
}
.stepper-step.is-done .stepper-dot::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 16px;
  transform: translate(-50%, -50%);
  background: #fff;
  -webkit-mask: url("/img/icons/kms/icon_check.svg") no-repeat center/contain;
          mask: url("/img/icons/kms/icon_check.svg") no-repeat center/contain;
}
.stepper-step.is-done .stepper-text {
  color: var(--n-900);
}

/**
 * 아코디언 (FAQ). 열림 상태 = .accordion-item 에 .is-open 토글(JS).
 */
.accordion {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.accordion-item {
  background: #fff;
  border: 1px solid transparent;
  border-radius: 14px;
  overflow: hidden;
  transition: background 0.2s, border-color 0.2s;
}

.accordion-head {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 16px 20px;
  text-align: left;
}
.accordion-head .q {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 16px;
  background: var(--color-bg-tranparent);
  color: var(--color-point);
  font-size: 15px;
  font-weight: 600;
  transition: background 0.2s, color 0.2s;
}
.accordion-head .accordion-title {
  flex: 1 1 auto;
  font-size: 16px;
  font-weight: 500;
  line-height: 22px;
  color: var(--color-text-black);
}
.accordion-head {
  /* 화살표 — 펼침 시 180° 회전 */
}
.accordion-head .ico-arrow {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  background-color: currentcolor;
  -webkit-mask: url("/img/icons/line/arrow_down_blod.svg") center/contain no-repeat;
          mask: url("/img/icons/line/arrow_down_blod.svg") center/contain no-repeat;
  color: var(--text-03);
  transition: transform 0.2s;
}

.accordion-body {
  display: none;
  padding: 10px 20px 16px 32px;
  font-size: 15px;
  font-weight: 500;
  line-height: 22px;
  color: var(--color-text-default);
}

/* 열림 상태 */
.accordion-item.is-open {
  background: var(--p-100);
  border-color: var(--color-point);
}
.accordion-item.is-open .accordion-head {
  padding-bottom: 0;
}
.accordion-item.is-open .q {
  background: var(--color-point);
  color: #fff;
}
.accordion-item.is-open .accordion-title {
  font-weight: 700;
}
.accordion-item.is-open .accordion-body {
  display: block;
}
.accordion-item.is-open .ico-arrow {
  color: var(--n-900);
  transform: rotate(180deg);
}

/**
 * 헤더 / GNB (로그아웃/로그인 상태 공통)
 */
/**
 * 모달/팝업 (OP 디자인시스템 표준 — Figma popup 779:25145)
 * 구조: .modal-overlay > .modal-box > .modal-head + .modal-body + .modal-foot. 열기/닫기 = _common.js.
 */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.4);
}

.modal-box {
  display: flex;
  flex-direction: column;
  width: 440px;
  max-width: 100%;
  max-height: 100%;
  overflow: hidden;
  background: #fff;
  border-radius: 0;
}

/* 헤더 (제목 + 닫기) — 제목 대칭 가운데(X 유무 무관), X는 절대위치 */
.modal-head {
  position: relative;
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  padding: 13px 16px;
  border-bottom: 1px solid var(--n-100);
}

.modal-title {
  flex: 1 1 0;
  min-width: 0;
  font-size: 16px;
  line-height: 24px;
  font-weight: var(--fw-bold);
  color: var(--n-900);
  text-align: center;
}

.modal-close {
  position: absolute;
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--n-900);
  font-size: 0;
  cursor: pointer;
  /* 닫기 아이콘(20×20 X) — .ico 와 동일 mask, 색 currentcolor. 텍스트/마크업 없이 CSS 렌더 */
}
.modal-close::before {
  content: "";
  width: 20px;
  height: 20px;
  background-color: currentcolor;
  -webkit-mask: url("/img/icons/line/close.svg") center/contain no-repeat;
          mask: url("/img/icons/line/close.svg") center/contain no-repeat;
}
.modal-close:hover {
  color: var(--n-500);
}

/* 바디 (표준: 상하좌우 가운데) */
.modal-body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: center;
  min-height: 150px;
  max-height: 650px;
  overflow-y: auto;
  padding: 30px 20px;
}

.modal-msg {
  font-size: 15px;
  line-height: 22px;
  font-weight: var(--fw-medium);
  color: var(--n-900);
  text-align: center;
}

/* 아이콘형 알림 (아이콘 + 메시지) */
.modal-alert {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.modal-icon {
  display: inline-flex;
  width: 40px;
  height: 40px;
}
.modal-icon img {
  display: block;
  width: 100%;
  height: 100%;
}

/* 푸터 (취소/확인) — 상단 패딩 0(버튼이 본문 바로 아래에 붙음) · 좌우/하 20 */
.modal-foot {
  display: flex;
  flex: 0 0 auto;
  gap: 10px;
  justify-content: flex-end;
  padding: 0 20px 20px;
}
.modal-foot .btn {
  min-width: 90px;
  height: 44px;
}

/* 단일 버튼 foot (알림형) — 보더 없음. Figma: 확인 90px 중앙 · basic 44px(full/L 아님) */
.modal-foot--single {
  gap: 10px;
  justify-content: center;
  padding: 0 20px 20px;
  border-top: 0;
}
.modal-foot--single .btn {
  min-width: 90px;
  height: 44px;
}

/* 확인/폼형 모달 공통 콘텐츠 (강제탈퇴·가입승인·대표파트너지정 등) — 좌측정렬 문구 + 회색 정보박스 + (선택) 입력. 알림형과 별개 */
.modal-body--form {
  align-items: stretch;
  justify-content: flex-start;
  gap: 24px;
  padding: 30px 20px 20px;
}

.modal-text {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 15px;
  line-height: 22px;
  font-weight: var(--fw-medium);
  color: var(--n-900);
}

.modal-warn {
  color: var(--color-error);
}

.modal-subtitle {
  font-size: 18px;
  line-height: 28px;
  font-weight: var(--fw-bold);
  color: var(--n-900);
  margin-bottom: 10px;
}

/* 폼 모달 내 체크박스 그룹(가입승인 담당업무 등) — 가로 나열, 항목 간 24px(Figma) */
.modal-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

/* 일부 폼 모달은 콘텐츠 간격 16px(Figma) — 가입승인(체크박스)·신청반려(문구↔입력). 기본 form 24 덮어씀 */
.modal-body--form:has(.modal-checks),
.modal-body--form:has(.reject-field) {
  gap: 16px;
}

.modal-data-box {
  padding: 20px;
  background: #f8f8f8;
  border-radius: 10px;
}

.modal-data {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.modal-data-row {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 15px;
  line-height: 22px;
}
.modal-data-row dt {
  flex: none;
  width: 80px;
  font-weight: var(--fw-semibold);
  color: var(--n-600);
}
.modal-data-row dd {
  color: var(--n-900);
}

/* 확인(.btn-navy) 비활성 — Figma 회색(N-200/N-400). 신청반려 등 조건부 활성 팝업 공통 */
.modal-foot .btn-navy:disabled {
  background: var(--n-200);
  color: var(--n-400);
}

/**
 * 헤더 / GNB (로그아웃/로그인 상태 공통)
 */
/**
 * Raw / Log 블록 (.raw) — 에러 원문·전문·로그 등 서식 없는 텍스트 표시용.
 * <pre class="raw"> 에 사용. errorModal 등 모달 본문에서 주로 노출되나 페이지 어디서든 사용 가능.
 * 연회색 배경 + 모노스페이스 + 줄바꿈(pre-wrap) + 세로 스크롤(max-height).
 *
 * .raw--code 모디파이어 — XML/JSON 등 들여쓰기가 의미를 갖는 원문용.
 * 줄바꿈 없이 가로 스크롤로 계층 구조를 보존한다.
 */
.raw {
  width: 100%;
  max-height: 360px;
  padding: 14px 16px;
  border: 1px solid var(--n-200);
  border-radius: 8px;
  background: #0b1021;
  color: #e6edf3;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 13px;
  line-height: 20px;
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-all;
  overflow: auto;
  tab-size: 2;
}

.cdp-xml {
  max-height: 360px;
  width: 100%;
  overflow: auto;
  background: #0f172a;
  color: #e2e8f0;
  padding: 12px;
  border-radius: var(--radius-sm);
  font: 12px/1.5 ui-monospace, Menlo, Consolas, monospace;
  white-space: pre;
}

/**
 * 헤더 / GNB (로그아웃/로그인 상태 공통)
 */
/**
 * 트리(폴딩 + 드래그 순서변경) — 메뉴 관리 / 공통코드 관리 공용.
 * 노드 렌더링만 담당(카드/레이아웃은 각 페이지 scss). JS: _common.js .mtree-*.
 */
.menu-tree,
.code-tree {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.menu-tree[hidden],
.code-tree[hidden] {
  display: none;
}
.menu-tree,
.code-tree {
  /* 1뎁스 사이 구분선 — Figma Vector 1px N-100 */
}
.menu-tree > .mtree-node + .mtree-node,
.code-tree > .mtree-node + .mtree-node {
  padding-top: 6px;
  border-top: 1px solid var(--n-100);
}

.mtree-node {
  min-width: 0;
}

.mtree-row {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  /* 순서 변경 드래그 중 드롭 위치 표시 */
}
.mtree-row.is-drag-over {
  outline: 1px dashed var(--p-400);
  outline-offset: -1px;
}

/* +/− 토글 — Figma 16×16(아이콘에 사각 테두리 포함) */
.mtree-toggle {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--n-500);
  cursor: pointer;
}
.mtree-toggle .ico {
  width: 16px;
  height: 16px;
}

/* 메뉴명 영역 — 선택 시 배경/테두리 */
.mtree-text {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  gap: 6px;
  min-width: 0;
  height: 32px;
  padding: 0 6px;
  border: 1px solid transparent;
  border-radius: 4px;
  cursor: pointer;
}

.mtree-name {
  font-size: 15px;
  line-height: 22px;
  font-weight: var(--fw-medium);
  color: var(--n-900);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* 선택(하위 메뉴) — Figma bg #f3f4fa(팔레트 미제공 실측값) + 텍스트 P-600 */
.mtree-text.is-selected {
  background: #f3f4fa;
}
.mtree-text.is-selected .mtree-name {
  color: var(--p-600);
}

/* 드래그 앤 드롭으로 잡은 항목 — Figma 흰 배경 + 보더 P-400 */
.mtree-text.is-dragging {
  border-color: var(--p-400);
  background: #fff;
}
.mtree-text.is-dragging .mtree-name {
  color: var(--p-600);
}

/* 순서 이동 핸들 */
.mtree-handle {
  flex: 0 0 auto;
  margin-left: auto;
  width: 16px;
  height: 16px;
  color: var(--n-500);
  cursor: grab;
}

/* 하위 목록 — Figma 행 pad-left 8 · 내부 gap4 */
.mtree-children {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-left: 8px;
  margin-top: 6px;
}
.mtree-children .mtree-row {
  gap: 4px;
}
.mtree-children {
  /* 3뎁스는 들여쓰기를 연결선(32)이 담당 — 중첩 패딩 없음(Figma 행 폭 동일) */
}
.mtree-children .mtree-children {
  padding-left: 0;
}

/* 트리 연결선 — Figma lien 12×32 (행 간격 6 위로 연장해 세로선 연속) */
.mtree-line {
  flex: 0 0 auto;
  position: relative;
  width: 12px;
  height: 32px;
}
.mtree-line::before {
  content: "";
  position: absolute;
  top: -6px;
  bottom: 0;
  left: 0;
  border-left: 1px solid var(--n-300);
}
.mtree-line::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  left: 0;
  border-top: 1px solid var(--n-300);
}

/* 3뎁스 행 — Figma lien 32(세로선만, 가로 tick 없음) */
.mtree-line--v {
  width: 32px;
}
.mtree-line--v::after {
  content: none;
}

/* 3뎁스 텍스트 박스 — Figma pad 8/12 */
.mtree-row--leaf .mtree-text {
  padding: 0 12px;
}

/* ㄴ 코너 마크 — Figma Vector 6×6 */
.mtree-mark {
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  border-bottom: 1px solid var(--n-300);
  border-left: 1px solid var(--n-300);
}

/* 코드값(공통코드 관리) — 이름 │ 코드. 기본 검정(N-900), 선택/호버 시 텍스트색 상속 */
.mtree-code {
  flex: 0 0 auto;
  font-size: 15px;
  line-height: 22px;
  color: var(--n-900);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* 이름 ↔ 코드 세로 구분선 */
.mtree-divider {
  flex: 0 0 auto;
  width: 1px;
  height: 12px;
  background: var(--n-300);
}

/* 선택/호버 시 코드도 이름과 함께 Primary */
.mtree-text.is-selected .mtree-code,
.mtree-text:hover .mtree-code {
  color: var(--p-600);
}

/* 접힘: is-open 아닌 노드의 하위 숨김(토글 동작) */
.mtree-node:not(.is-open) > .mtree-children {
  display: none;
}

/**
 * 헤더 / GNB (로그아웃/로그인 상태 공통)
 */
/**
 * 툴팁 (Tooltip) — 흰 말풍선 + 보라 테두리 + 꼬리(beak).
 * 변형: .tooltip--top(꼬리 아래·기본) / .tooltip--bottom(꼬리 위).
 */
.tooltip {
  position: relative;
  display: inline-block;
  max-width: 270px;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--p-700);
  border-radius: 6px;
  box-shadow: 0 4px 5px rgba(66, 51, 203, 0.1);
  font-size: 14px;
  line-height: 20px;
  font-weight: var(--fw-medium);
  color: var(--n-700);
  white-space: normal;
  /* 꼬리(beak) — 45° 회전 사각형에서 테두리 2변만 보이게 */
}
.tooltip::after {
  content: "";
  position: absolute;
  left: 24px;
  width: 10px;
  height: 10px;
  background: #fff;
  border: 1px solid var(--p-700);
  transform: rotate(45deg);
}

/* 상단형: 꼬리 아래(우·하 변만 노출) */
.tooltip--top::after {
  bottom: -6px;
  border-top: 0;
  border-left: 0;
}

/* 하단형: 꼬리 위(좌·상 변만 노출) */
.tooltip--bottom::after {
  top: -6px;
  border-right: 0;
  border-bottom: 0;
}

/**
 * 도움말 버튼 + 팝오버 툴팁 (Figma info_btn 32 + Tooltip 닫기형)
 * 마크업: <span class="info-tip">
 *          <button class="info-btn"><i class="ico ico-guide-info"></i></button>
 *          <span class="tooltip tooltip--pop tooltip--bottom"> … <button class="tooltip-close"> </span>
 *        </span>
 * 열림/닫힘 토글은 _common.js (.info-tip.is-open).
 */
.info-tip {
  position: relative;
  display: inline-flex;
  vertical-align: middle;
}

.info-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 16px;
  background: var(--p-200);
  color: var(--color-point);
  cursor: pointer;
}
.info-btn .ico {
  width: 18px;
  height: 18px;
}

/**
 * 팝오버 본문 — 버튼 기준 절대배치. 기본 숨김, .is-open 에서 노출.
 * Figma(2042:49442) 패딩은 3중 중첩이고 X 와 본문의 시작 위치가 다르다:
 *   bubble p4 + content(pl12 / pr4 / py4) → 여기까지가 닫기(X) 기준 = 상 8 · 우 8 · 좌 16
 *   그 안의 Text 만 py8 을 더 가짐        → 본문 글자는 상·하 16
 * 즉 X 는 상단 8, 글자는 상단 16 에서 시작한다(하나로 합치면 X 가 같이 내려온다).
 * 줄바꿈은 디자인에 적힌 그대로만(자동 줄바꿈 없음) → white-space: nowrap.
 */
.tooltip--pop {
  /* position 은 JS(_common.js)가 열 때 fixed 로 잡아준다.
     표 셀처럼 overflow:hidden 인 조상 안에서도 잘리지 않게 하기 위함(셀렉트 드롭다운과 동일 방식). */
  position: fixed;
  z-index: 100;
  display: none;
  max-width: none;
  width: max-content;
  padding: 8px 8px 8px 16px;
  border-radius: 10px;
  box-shadow: 0 4px 5px rgba(66, 51, 203, 0.1), 0 0 2px rgba(181, 181, 181, 0.24);
  /* 꼬리 — Figma 에셋 그대로(28×20 폴리곤을 28×8 창으로 클리핑 + 180° 회전).
     실제로 보이는 모양은 밑변 약 9 · 높이 약 6 의 뾰족한 꼬리다.
     직접 그린 28폭 삼각형은 너무 납작해 디자인과 달랐다.
     위치는 말풍선 우측 26(모서리 라운드 10 회피), JS 가 이 지점을 버튼 중앙에 맞춘다. */
}
.tooltip--pop::before {
  content: "";
  position: absolute;
  top: -8px;
  right: var(--beak-right, 26px);
  width: 28px;
  height: 8px;
  background: url("/img/icons/other/tooltip_beak.svg") no-repeat center/28px 8px;
}
.tooltip--pop {
  /* 기본 .tooltip 의 45° 사각형 꼬리는 사용하지 않음 */
}
.tooltip--pop::after {
  content: none;
}
.tooltip--pop .tooltip-body {
  display: flex;
  align-items: flex-start;
  gap: 4px;
}
.tooltip--pop {
  /* 각 줄은 디자인에 적힌 그대로 한 줄 유지(자동 줄바꿈 금지).
     상하 8 은 Figma 의 Text py8 — 글자만 X 보다 8 아래에서 시작한다. */
}
.tooltip--pop .tooltip-text {
  padding: 8px 0;
  overflow: hidden;
  white-space: nowrap;
}
.tooltip--pop .tooltip-text p {
  margin: 0;
}
.tooltip--pop {
  /* 불릿 목록 — Figma list-disc + 들여쓰기 21 */
}
.tooltip--pop .tooltip-text ul {
  margin: 0;
  padding: 0;
  list-style: disc;
}
.tooltip--pop .tooltip-text li {
  margin-left: 21px;
}
.tooltip--pop {
  /* 본문에 "•" 문자를 직접 넣은 목록(수량 보충 방식) — 마커·들여쓰기 없음 */
}
.tooltip--pop .tooltip-text .tooltip-dots {
  list-style: none;
}
.tooltip--pop .tooltip-text .tooltip-dots li {
  margin-left: 0;
}
.tooltip--pop .tooltip-close {
  flex: 0 0 auto;
  padding: 0;
  border: 0;
  background: none;
  color: var(--n-900);
  cursor: pointer;
}
.tooltip--pop .tooltip-close .ico {
  width: 16px;
  height: 16px;
}

.info-tip.is-open .tooltip--pop {
  display: block;
}

/* 아래 공간이 부족해 위로 띄운 경우 — 꼬리를 말풍선 아래로(아래를 가리킴) */
.info-tip.is-up .tooltip--pop::before {
  top: auto;
  bottom: -8px;
  transform: scaleY(-1);
}

/**
 * 헤더 / GNB (로그아웃/로그인 상태 공통)
 */
/**
 * 페이지 공통 요소 (모든 페이지 그룹 공유) — @[OP+PP] Guide_Layout.
 * 타이틀 3종: page-title(28-B) / contents-title(20-B) / group-title(Primary 바 + 15-SB, --fold 접이식).
 */
.page-title {
  margin-bottom: 8px;
  font-size: 28px;
  line-height: 40px;
  font-weight: var(--fw-bold);
  color: var(--color-text-black);
}

/* 타이틀 + 설명문구 (Figma page-title / Property 1=Title+Text)
   마크업: <div class="page-head"><h2 class="page-title">…</h2><p class="page-title-desc">…</p></div> */
.page-head {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 24px;
}
.page-head .page-title {
  margin-bottom: 0;
}

.page-title-desc {
  font-size: 15px;
  line-height: 22px;
  color: var(--text-02);
}

.contents-title {
  font-size: 20px;
  line-height: 30px;
  font-weight: var(--fw-bold);
  color: var(--color-text-black);
}

/* 그룹 타이틀 (Figma Group_title) — 좌측 3×12 Primary 바 + 15-SB.
   마크업: <h4 class="group-title"><span class="group-title-text">…</span></h4> */
.group-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  line-height: 22px;
  font-weight: var(--fw-semibold);
  color: var(--color-text-black);
}
.group-title::before {
  content: "";
  flex: 0 0 auto;
  width: 3px;
  height: 12px;
  background: var(--color-point);
}

.group-title-text {
  flex: 1 1 auto;
  min-width: 0;
}

/* 접이식 변형 (Figma Group_title / Property 1=폴딩) — 우측 arrow_down.
   열림 시 .is-open 으로 화살표 180° (토글 동작은 페이지/JS 담당) */
.group-title--fold {
  width: 100%;
  padding-right: 14px;
  background: none;
  border: 0;
  text-align: left;
  cursor: pointer;
}
.group-title--fold .ico {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  color: var(--color-text-black);
  transition: transform 0.15s;
}
.group-title--fold.is-open .ico {
  transform: rotate(180deg);
}

/* flatpickr 기본 스타일(벤더) — 테마 오버라이드는 modules/_datepicker.scss */
.flatpickr-calendar {
  background: transparent;
  opacity: 0;
  display: none;
  text-align: center;
  visibility: hidden;
  padding: 0;
  animation: none;
  direction: ltr;
  border: 0;
  font-size: 14px;
  line-height: 24px;
  border-radius: 5px;
  position: absolute;
  width: 307.875px;
  box-sizing: border-box;
  touch-action: manipulation;
  background: #fff;
  box-shadow: 1px 0 0 #e6e6e6, -1px 0 0 #e6e6e6, 0 1px 0 #e6e6e6, 0 -1px 0 #e6e6e6, 0 3px 13px rgba(0, 0, 0, 0.08);
}

.flatpickr-calendar.open,
.flatpickr-calendar.inline {
  opacity: 1;
  max-height: 640px;
  visibility: visible;
}

.flatpickr-calendar.open {
  display: inline-block;
  z-index: 99999;
}

.flatpickr-calendar.animate.open {
  animation: fpFadeInDown 300ms cubic-bezier(0.23, 1, 0.32, 1);
}

.flatpickr-calendar.inline {
  display: block;
  position: relative;
  top: 2px;
}

.flatpickr-calendar.static {
  position: absolute;
  top: calc(100% + 2px);
}

.flatpickr-calendar.static.open {
  z-index: 999;
  display: block;
}

.flatpickr-calendar.multiMonth .flatpickr-days .dayContainer:nth-child(n+1) .flatpickr-day.inRange:nth-child(7n+7) {
  box-shadow: none !important;
}

.flatpickr-calendar.multiMonth .flatpickr-days .dayContainer:nth-child(n+2) .flatpickr-day.inRange:nth-child(7n+1) {
  box-shadow: -2px 0 0 #e6e6e6, 5px 0 0 #e6e6e6;
}

.flatpickr-calendar .hasWeeks .dayContainer,
.flatpickr-calendar .hasTime .dayContainer {
  border-bottom: 0;
  border-bottom-right-radius: 0;
  border-bottom-left-radius: 0;
}

.flatpickr-calendar .hasWeeks .dayContainer {
  border-left: 0;
}

.flatpickr-calendar.hasTime .flatpickr-time {
  height: 40px;
  border-top: 1px solid #e6e6e6;
}

.flatpickr-calendar.noCalendar.hasTime .flatpickr-time {
  height: auto;
}

.flatpickr-calendar:before,
.flatpickr-calendar:after {
  position: absolute;
  display: block;
  pointer-events: none;
  border: solid transparent;
  content: "";
  height: 0;
  width: 0;
  left: 22px;
}

.flatpickr-calendar.rightMost:before,
.flatpickr-calendar.arrowRight:before,
.flatpickr-calendar.rightMost:after,
.flatpickr-calendar.arrowRight:after {
  left: auto;
  right: 22px;
}

.flatpickr-calendar.arrowCenter:before,
.flatpickr-calendar.arrowCenter:after {
  left: 50%;
  right: 50%;
}

.flatpickr-calendar:before {
  border-width: 5px;
  margin: 0 -5px;
}

.flatpickr-calendar:after {
  border-width: 4px;
  margin: 0 -4px;
}

.flatpickr-calendar.arrowTop:before,
.flatpickr-calendar.arrowTop:after {
  bottom: 100%;
}

.flatpickr-calendar.arrowTop:before {
  border-bottom-color: #e6e6e6;
}

.flatpickr-calendar.arrowTop:after {
  border-bottom-color: #fff;
}

.flatpickr-calendar.arrowBottom:before,
.flatpickr-calendar.arrowBottom:after {
  top: 100%;
}

.flatpickr-calendar.arrowBottom:before {
  border-top-color: #e6e6e6;
}

.flatpickr-calendar.arrowBottom:after {
  border-top-color: #fff;
}

.flatpickr-calendar:focus {
  outline: 0;
}

.flatpickr-wrapper {
  position: relative;
  display: inline-block;
}

.flatpickr-months {
  display: flex;
}

.flatpickr-months .flatpickr-month {
  background: transparent;
  color: rgba(0, 0, 0, 0.9);
  fill: rgba(0, 0, 0, 0.9);
  height: 34px;
  line-height: 1;
  text-align: center;
  position: relative;
  -webkit-user-select: none;
  user-select: none;
  overflow: hidden;
  flex: 1;
}

.flatpickr-months .flatpickr-prev-month,
.flatpickr-months .flatpickr-next-month {
  -webkit-user-select: none;
  user-select: none;
  text-decoration: none;
  cursor: pointer;
  position: absolute;
  top: 0;
  height: 34px;
  padding: 10px;
  z-index: 3;
  color: rgba(0, 0, 0, 0.9);
  fill: rgba(0, 0, 0, 0.9);
}

.flatpickr-months .flatpickr-prev-month.flatpickr-disabled,
.flatpickr-months .flatpickr-next-month.flatpickr-disabled {
  display: none;
}

.flatpickr-months .flatpickr-prev-month i,
.flatpickr-months .flatpickr-next-month i {
  position: relative;
}

.flatpickr-months .flatpickr-prev-month.flatpickr-prev-month,
.flatpickr-months .flatpickr-next-month.flatpickr-prev-month {
  /*
        /*rtl:begin:ignore*/
  /*
        */
  left: 0;
  /*
        /*rtl:end:ignore*/
  /*
        */
}

/*
      /*rtl:begin:ignore*/
/*
      /*rtl:end:ignore*/
.flatpickr-months .flatpickr-prev-month.flatpickr-next-month,
.flatpickr-months .flatpickr-next-month.flatpickr-next-month {
  /*
        /*rtl:begin:ignore*/
  /*
        */
  right: 0;
  /*
        /*rtl:end:ignore*/
  /*
        */
}

/*
      /*rtl:begin:ignore*/
/*
      /*rtl:end:ignore*/
.flatpickr-months .flatpickr-prev-month:hover,
.flatpickr-months .flatpickr-next-month:hover {
  color: #959ea9;
}

.flatpickr-months .flatpickr-prev-month:hover svg,
.flatpickr-months .flatpickr-next-month:hover svg {
  fill: #f64747;
}

.flatpickr-months .flatpickr-prev-month svg,
.flatpickr-months .flatpickr-next-month svg {
  width: 14px;
  height: 14px;
}

.flatpickr-months .flatpickr-prev-month svg path,
.flatpickr-months .flatpickr-next-month svg path {
  transition: fill 0.1s;
  fill: inherit;
}

.numInputWrapper {
  position: relative;
  height: auto;
}

.numInputWrapper input,
.numInputWrapper span {
  display: inline-block;
}

.numInputWrapper input {
  width: 100%;
}

.numInputWrapper input::-ms-clear {
  display: none;
}

.numInputWrapper input::-webkit-outer-spin-button,
.numInputWrapper input::-webkit-inner-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

.numInputWrapper span {
  position: absolute;
  right: 0;
  width: 14px;
  padding: 0 4px 0 2px;
  height: 50%;
  line-height: 50%;
  opacity: 0;
  cursor: pointer;
  border: 1px solid rgba(57, 57, 57, 0.15);
  box-sizing: border-box;
}

.numInputWrapper span:hover {
  background: rgba(0, 0, 0, 0.1);
}

.numInputWrapper span:active {
  background: rgba(0, 0, 0, 0.2);
}

.numInputWrapper span:after {
  display: block;
  content: "";
  position: absolute;
}

.numInputWrapper span.arrowUp {
  top: 0;
  border-bottom: 0;
}

.numInputWrapper span.arrowUp:after {
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-bottom: 4px solid rgba(57, 57, 57, 0.6);
  top: 26%;
}

.numInputWrapper span.arrowDown {
  top: 50%;
}

.numInputWrapper span.arrowDown:after {
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid rgba(57, 57, 57, 0.6);
  top: 40%;
}

.numInputWrapper span svg {
  width: inherit;
  height: auto;
}

.numInputWrapper span svg path {
  fill: rgba(0, 0, 0, 0.5);
}

.numInputWrapper:hover {
  background: rgba(0, 0, 0, 0.05);
}

.numInputWrapper:hover span {
  opacity: 1;
}

.flatpickr-current-month {
  font-size: 135%;
  line-height: inherit;
  font-weight: 300;
  color: inherit;
  position: absolute;
  width: 75%;
  left: 12.5%;
  padding: 7.48px 0 0 0;
  line-height: 1;
  height: 34px;
  display: inline-block;
  text-align: center;
  transform: translate3d(0px, 0px, 0px);
}

.flatpickr-current-month span.cur-month {
  font-family: inherit;
  font-weight: 700;
  color: inherit;
  display: inline-block;
  margin-left: 0.5ch;
  padding: 0;
}

.flatpickr-current-month span.cur-month:hover {
  background: rgba(0, 0, 0, 0.05);
}

.flatpickr-current-month .numInputWrapper {
  width: 6ch;
  width: 7ch\0 ;
  display: inline-block;
}

.flatpickr-current-month .numInputWrapper span.arrowUp:after {
  border-bottom-color: rgba(0, 0, 0, 0.9);
}

.flatpickr-current-month .numInputWrapper span.arrowDown:after {
  border-top-color: rgba(0, 0, 0, 0.9);
}

.flatpickr-current-month input.cur-year {
  background: transparent;
  box-sizing: border-box;
  color: inherit;
  cursor: text;
  padding: 0 0 0 0.5ch;
  margin: 0;
  display: inline-block;
  font-size: inherit;
  font-family: inherit;
  font-weight: 300;
  line-height: inherit;
  height: auto;
  border: 0;
  border-radius: 0;
  vertical-align: initial;
  appearance: textfield;
}

.flatpickr-current-month input.cur-year:focus {
  outline: 0;
}

.flatpickr-current-month input.cur-year[disabled],
.flatpickr-current-month input.cur-year[disabled]:hover {
  font-size: 100%;
  color: rgba(0, 0, 0, 0.5);
  background: transparent;
  pointer-events: none;
}

.flatpickr-current-month .flatpickr-monthDropdown-months {
  appearance: menulist;
  background: transparent;
  border: none;
  border-radius: 0;
  box-sizing: border-box;
  color: inherit;
  cursor: pointer;
  font-size: inherit;
  font-family: inherit;
  font-weight: 300;
  height: auto;
  line-height: inherit;
  margin: -1px 0 0 0;
  outline: none;
  padding: 0 0 0 0.5ch;
  position: relative;
  vertical-align: initial;
  -webkit-box-sizing: border-box;
  -webkit-appearance: menulist;
  -moz-appearance: menulist;
  width: auto;
}

.flatpickr-current-month .flatpickr-monthDropdown-months:focus,
.flatpickr-current-month .flatpickr-monthDropdown-months:active {
  outline: none;
}

.flatpickr-current-month .flatpickr-monthDropdown-months:hover {
  background: rgba(0, 0, 0, 0.05);
}

.flatpickr-current-month .flatpickr-monthDropdown-months .flatpickr-monthDropdown-month {
  background-color: transparent;
  outline: none;
  padding: 0;
}

.flatpickr-weekdays {
  background: transparent;
  text-align: center;
  overflow: hidden;
  width: 100%;
  display: flex;
  align-items: center;
  height: 28px;
}

.flatpickr-weekdays .flatpickr-weekdaycontainer {
  display: flex;
  flex: 1;
}

span.flatpickr-weekday {
  cursor: default;
  font-size: 90%;
  background: transparent;
  color: rgba(0, 0, 0, 0.54);
  line-height: 1;
  margin: 0;
  text-align: center;
  display: block;
  flex: 1;
  font-weight: bolder;
}

.dayContainer,
.flatpickr-weeks {
  padding: 1px 0 0 0;
}

.flatpickr-days {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  width: 307.875px;
}

.flatpickr-days:focus {
  outline: 0;
}

.dayContainer {
  padding: 0;
  outline: 0;
  text-align: left;
  width: 307.875px;
  min-width: 307.875px;
  max-width: 307.875px;
  box-sizing: border-box;
  display: inline-block;
  display: flex;
  flex-wrap: wrap;
  -ms-flex-wrap: wrap;
  justify-content: space-around;
  transform: translate3d(0px, 0px, 0px);
  opacity: 1;
}

.dayContainer + .dayContainer {
  box-shadow: -1px 0 0 #e6e6e6;
}

.flatpickr-day {
  background: none;
  border: 1px solid transparent;
  border-radius: 150px;
  box-sizing: border-box;
  color: #393939;
  cursor: pointer;
  font-weight: 400;
  width: 14.2857143%;
  flex-basis: 14.2857143%;
  max-width: 39px;
  height: 39px;
  line-height: 39px;
  margin: 0;
  display: inline-block;
  position: relative;
  justify-content: center;
  text-align: center;
}

.flatpickr-day.inRange,
.flatpickr-day.prevMonthDay.inRange,
.flatpickr-day.nextMonthDay.inRange,
.flatpickr-day.today.inRange,
.flatpickr-day.prevMonthDay.today.inRange,
.flatpickr-day.nextMonthDay.today.inRange,
.flatpickr-day:hover,
.flatpickr-day.prevMonthDay:hover,
.flatpickr-day.nextMonthDay:hover,
.flatpickr-day:focus,
.flatpickr-day.prevMonthDay:focus,
.flatpickr-day.nextMonthDay:focus {
  cursor: pointer;
  outline: 0;
  background: #e6e6e6;
  border-color: #e6e6e6;
}

.flatpickr-day.today {
  border-color: #959ea9;
}

.flatpickr-day.today:hover,
.flatpickr-day.today:focus {
  border-color: #959ea9;
  background: #959ea9;
  color: #fff;
}

.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange,
.flatpickr-day.selected.inRange,
.flatpickr-day.startRange.inRange,
.flatpickr-day.endRange.inRange,
.flatpickr-day.selected:focus,
.flatpickr-day.startRange:focus,
.flatpickr-day.endRange:focus,
.flatpickr-day.selected:hover,
.flatpickr-day.startRange:hover,
.flatpickr-day.endRange:hover,
.flatpickr-day.selected.prevMonthDay,
.flatpickr-day.startRange.prevMonthDay,
.flatpickr-day.endRange.prevMonthDay,
.flatpickr-day.selected.nextMonthDay,
.flatpickr-day.startRange.nextMonthDay,
.flatpickr-day.endRange.nextMonthDay {
  background: #569ff7;
  box-shadow: none;
  color: #fff;
  border-color: #569ff7;
}

.flatpickr-day.selected.startRange,
.flatpickr-day.startRange.startRange,
.flatpickr-day.endRange.startRange {
  border-radius: 50px 0 0 50px;
}

.flatpickr-day.selected.endRange,
.flatpickr-day.startRange.endRange,
.flatpickr-day.endRange.endRange {
  border-radius: 0 50px 50px 0;
}

.flatpickr-day.selected.startRange + .endRange:not(:nth-child(7n+1)),
.flatpickr-day.startRange.startRange + .endRange:not(:nth-child(7n+1)),
.flatpickr-day.endRange.startRange + .endRange:not(:nth-child(7n+1)) {
  box-shadow: -10px 0 0 #569ff7;
}

.flatpickr-day.selected.startRange.endRange,
.flatpickr-day.startRange.startRange.endRange,
.flatpickr-day.endRange.startRange.endRange {
  border-radius: 50px;
}

.flatpickr-day.inRange {
  border-radius: 0;
  box-shadow: -5px 0 0 #e6e6e6, 5px 0 0 #e6e6e6;
}

.flatpickr-day.flatpickr-disabled,
.flatpickr-day.flatpickr-disabled:hover,
.flatpickr-day.prevMonthDay,
.flatpickr-day.nextMonthDay,
.flatpickr-day.notAllowed,
.flatpickr-day.notAllowed.prevMonthDay,
.flatpickr-day.notAllowed.nextMonthDay {
  color: rgba(57, 57, 57, 0.3);
  background: transparent;
  border-color: transparent;
  cursor: default;
}

.flatpickr-day.flatpickr-disabled,
.flatpickr-day.flatpickr-disabled:hover {
  cursor: not-allowed;
  color: rgba(57, 57, 57, 0.1);
}

.flatpickr-day.week.selected {
  border-radius: 0;
  box-shadow: -5px 0 0 #569ff7, 5px 0 0 #569ff7;
}

.flatpickr-day.hidden {
  visibility: hidden;
}

.rangeMode .flatpickr-day {
  margin-top: 1px;
}

.flatpickr-weekwrapper {
  float: left;
}

.flatpickr-weekwrapper .flatpickr-weeks {
  padding: 0 12px;
  box-shadow: 1px 0 0 #e6e6e6;
}

.flatpickr-weekwrapper .flatpickr-weekday {
  float: none;
  width: 100%;
  line-height: 28px;
}

.flatpickr-weekwrapper span.flatpickr-day,
.flatpickr-weekwrapper span.flatpickr-day:hover {
  display: block;
  width: 100%;
  max-width: none;
  color: rgba(57, 57, 57, 0.3);
  background: transparent;
  cursor: default;
  border: none;
}

.flatpickr-innerContainer {
  display: block;
  display: flex;
  box-sizing: border-box;
  overflow: hidden;
}

.flatpickr-rContainer {
  display: inline-block;
  padding: 0;
  box-sizing: border-box;
}

.flatpickr-time {
  text-align: center;
  outline: 0;
  display: block;
  height: 0;
  line-height: 40px;
  max-height: 40px;
  box-sizing: border-box;
  overflow: hidden;
  display: flex;
}

.flatpickr-time:after {
  content: "";
  display: table;
  clear: both;
}

.flatpickr-time .numInputWrapper {
  flex: 1;
  width: 40%;
  height: 40px;
  float: left;
}

.flatpickr-time .numInputWrapper span.arrowUp:after {
  border-bottom-color: #393939;
}

.flatpickr-time .numInputWrapper span.arrowDown:after {
  border-top-color: #393939;
}

.flatpickr-time.hasSeconds .numInputWrapper {
  width: 26%;
}

.flatpickr-time.time24hr .numInputWrapper {
  width: 49%;
}

.flatpickr-time input {
  background: transparent;
  box-shadow: none;
  border: 0;
  border-radius: 0;
  text-align: center;
  margin: 0;
  padding: 0;
  height: inherit;
  line-height: inherit;
  color: #393939;
  font-size: 14px;
  position: relative;
  box-sizing: border-box;
  appearance: textfield;
}

.flatpickr-time input.flatpickr-hour {
  font-weight: bold;
}

.flatpickr-time input.flatpickr-minute,
.flatpickr-time input.flatpickr-second {
  font-weight: 400;
}

.flatpickr-time input:focus {
  outline: 0;
  border: 0;
}

.flatpickr-time .flatpickr-time-separator,
.flatpickr-time .flatpickr-am-pm {
  height: inherit;
  float: left;
  line-height: inherit;
  color: #393939;
  font-weight: bold;
  width: 2%;
  -webkit-user-select: none;
  user-select: none;
  align-self: center;
}

.flatpickr-time .flatpickr-am-pm {
  outline: 0;
  width: 18%;
  cursor: pointer;
  text-align: center;
  font-weight: 400;
}

.flatpickr-time input:hover,
.flatpickr-time .flatpickr-am-pm:hover,
.flatpickr-time input:focus,
.flatpickr-time .flatpickr-am-pm:focus {
  background: #eee;
}

.flatpickr-input[readonly] {
  cursor: pointer;
}
@keyframes fpFadeInDown {
  from {
    opacity: 0;
    transform: translate3d(0, -20px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}
/**
 * 날짜피커(flatpickr) 테마 — 벤더 하드코딩 색을 토큰으로 덮음.
 * 색 = var(--*), 폰트 = 타이포/weight 토큰. 기하값(그림자/라운드/여백)은 px.
 */
/* flatpickr 부착 시 input이 readonly → .input[readonly] 회색 먹는 것 방지.
   날짜칸은 달력 여는 활성 요소이므로 흰색 + 커서 포인터 유지. */
.input.flatpickr-input {
  background: #fff;
  cursor: pointer;
}
.input.flatpickr-input:hover {
  border-color: var(--p-400);
}

/* 컨테이너 — 좌우 패딩 16 확보 위해 폭 342 */
.flatpickr-calendar {
  width: 342px;
  padding: 8px 16px 12px;
  border: 1px solid var(--color-bd-light);
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  font-family: var(--font-base);
}

/* 이전/다음 달 화살표 */
.flatpickr-months .flatpickr-prev-month {
  left: 36px;
}
.flatpickr-months .flatpickr-next-month {
  right: 36px;
}
.flatpickr-months .flatpickr-prev-month svg,
.flatpickr-months .flatpickr-next-month svg {
  fill: var(--text-02);
}
.flatpickr-months .flatpickr-prev-month:hover svg,
.flatpickr-months .flatpickr-next-month:hover svg {
  fill: var(--color-point);
}

/* 월/연도 헤더 — 정중앙, 연도 스피너/선택 제거 */
.flatpickr-current-month {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 34px;
  padding: 0;
  font-size: var(--fs-18);
  font-weight: var(--fw-bold);
  color: var(--color-text-black);
  /* 연도 — 월 앞 + 선택기능 제거 */
}
.flatpickr-current-month .numInputWrapper {
  order: -1;
  width: 4ch;
  pointer-events: none;
}
.flatpickr-current-month .numInputWrapper span.arrowUp,
.flatpickr-current-month .numInputWrapper span.arrowDown {
  display: none;
}
.flatpickr-current-month input.cur-year {
  width: 100%;
  height: 22px;
  padding: 0;
  line-height: 22px;
  font-weight: var(--fw-bold);
  color: var(--color-text-black);
  text-align: right;
  vertical-align: middle;
  pointer-events: none;
}
.flatpickr-current-month .cur-month {
  height: 22px;
  margin: 0;
  line-height: 22px;
  font-weight: var(--fw-bold);
  vertical-align: middle;
}

/* 요일 헤더 */
.flatpickr-weekday {
  font-size: var(--fs-13);
  font-weight: var(--fw-medium);
  color: var(--text-03);
}

/* 날짜 셀(기본) */
.flatpickr-day {
  font-size: var(--fs-14);
  color: var(--color-text-black);
}
.flatpickr-day:hover, .flatpickr-day:focus {
  background: var(--n-50);
  border-color: var(--n-50);
}

/* 전/다음 달·비활성 = 흐리게 */
.flatpickr-day.prevMonthDay,
.flatpickr-day.nextMonthDay,
.flatpickr-day.flatpickr-disabled {
  color: var(--n-300);
}

.flatpickr-day.flatpickr-disabled:hover {
  background: transparent;
}

/* 선택일 / 기간 양끝 = Primary 보라(꽉 찬 원) */
.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange,
.flatpickr-day.selected:hover,
.flatpickr-day.startRange:hover,
.flatpickr-day.endRange:hover,
.flatpickr-day.selected:focus,
.flatpickr-day.startRange:focus,
.flatpickr-day.endRange:focus {
  background: var(--color-point);
  border-color: var(--color-point);
  color: #fff;
}

/* 선택일이 전/다음 달 칸에 걸릴 때도 벤더 파랑(#569ff7) 대신 보라 */
.flatpickr-day.selected.prevMonthDay,
.flatpickr-day.selected.nextMonthDay,
.flatpickr-day.startRange.prevMonthDay,
.flatpickr-day.startRange.nextMonthDay,
.flatpickr-day.endRange.prevMonthDay,
.flatpickr-day.endRange.nextMonthDay {
  background: var(--color-point);
  border-color: var(--color-point);
  color: #fff;
}

/* 기간 중간 = 연보라 (벤더 파랑 box-shadow 연결선도 토큰으로) */
.flatpickr-day.inRange {
  background: var(--p-100);
  border-color: var(--p-100);
  box-shadow: -5px 0 0 var(--p-100), 5px 0 0 var(--p-100);
}

.flatpickr-day.selected.startRange + .endRange:not(:nth-child(7n+1)),
.flatpickr-day.startRange.startRange + .endRange:not(:nth-child(7n+1)),
.flatpickr-day.endRange.startRange + .endRange:not(:nth-child(7n+1)) {
  box-shadow: -10px 0 0 var(--color-point);
}

.flatpickr-day.week.selected {
  box-shadow: -5px 0 0 var(--color-point), 5px 0 0 var(--color-point);
}

/* 오늘 = 회색 fill(꽉 찬 원). 선택일과 겹치면 보라(selected) 우선 */
.flatpickr-day.today:not(.selected) {
  background: var(--n-100);
  border-color: var(--n-100);
  color: var(--color-text-black);
}

.flatpickr-day.today:not(.selected):hover,
.flatpickr-day.today:not(.selected):focus {
  background: var(--n-200);
  border-color: var(--n-200);
  color: var(--color-text-black);
}

/* 월 전용 피커(monthSelect 플러그인) */
.flatpickr-monthSelect-months {
  display: flex;
  flex-wrap: wrap;
  margin: 6px 0 4px;
}

.flatpickr-monthSelect-month {
  box-sizing: border-box;
  flex: 0 0 33.33%;
  margin: 2px 0;
  padding: 10px 0;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: var(--fs-14);
  font-weight: var(--fw-medium);
  color: var(--color-text-black);
  text-align: center;
}
.flatpickr-monthSelect-month:hover, .flatpickr-monthSelect-month:focus {
  background: var(--n-50);
  border-color: var(--n-50);
}

/* 비활성 = 흐리게 */
.flatpickr-monthSelect-month.flatpickr-disabled {
  color: var(--n-300);
}
.flatpickr-monthSelect-month.flatpickr-disabled:hover, .flatpickr-monthSelect-month.flatpickr-disabled:focus {
  background: none;
  cursor: not-allowed;
}

/* 선택월 / 기간 양끝 = Primary 보라(꽉 찬 셀) */
.flatpickr-monthSelect-month.selected,
.flatpickr-monthSelect-month.startRange,
.flatpickr-monthSelect-month.endRange,
.flatpickr-monthSelect-month.selected:hover,
.flatpickr-monthSelect-month.selected:focus {
  background: var(--color-point);
  border-color: var(--color-point);
  color: #fff;
}

/* 기간 중간 = 연보라 */
.flatpickr-monthSelect-month.inRange {
  background: var(--p-100);
  border-color: var(--p-100);
  box-shadow: -5px 0 0 var(--p-100), 5px 0 0 var(--p-100);
}

/* 이번 달(오늘) = 회색 테두리. 선택월과 겹치면 보라 우선 */
.flatpickr-monthSelect-month.today:not(.selected) {
  border-color: var(--n-300);
}
