/*
    csoCom.css — CSO 프로젝트 전용 공통 스타일시트 (우리 소유, 퍼블리싱 납품물 아님).
    reset.css/sub.css/custom.css 는 퍼블리싱 산출물이라 재전달 시 덮어써지므로,
    화면정의서에는 있으나 퍼블리싱에 없는 마크업을 보강해야 할 때 여기에 둔다.
    (JS 쪽 csoCom.js 와 동일한 위치·역할 — CLAUDE_UTILS.md J2 참조)

    ※ 좌측 사이드바(마이페이지/OpenAPI/이용안내/활용사례) 스타일은 2026-08-12 제거함
      — 퍼블리싱에 해당 컴포넌트가 없어 우선 퍼블리싱 그대로 유지하기로 결정.
      화면정의서 vs 퍼블리싱 불일치는 결정권자 확인 후 재작업.
*/

/*───────────────────────────────────────────────────────────
    OpenAPI 활용가이드 상세(getApiGuideDetail.do) — DB 명세서 표 전용 디자인.
    목록용 .board_table 의 큰 본문 글자(20px)와 행높이는 정보량이 많은 API 명세에
    어울리지 않으므로, 상위 wrap 선택자로 글자·간격·색상을 일괄 override 한다.
    (관리자가 등록한 <table> 에 화면에서 클래스를 추가할 수 없기 때문)
    ※ table-layout:fixed 는 넣지 않는다 — 관리자 표마다 컬럼 수·내용 길이가 달라
      고정폭이면 board_table 처럼 <colgroup> 폭 지정이 없어 컬럼이 뭉개진다.
───────────────────────────────────────────────────────────*/
.board_view_body.table_wrap { color: var(--gray-80); }
.board_view_body.table_wrap table { width: 100%; border-collapse: separate; border-spacing: 0; overflow: hidden; border: 1px solid var(--alpha-g20); border-radius: var(--radius-08); background: var(--gray-0); font-size: var(--text-15); color: var(--gray-80); font-weight: 400; }
.board_view_body.table_wrap th,
.board_view_body.table_wrap td { height: auto; padding: 12px 14px; border: 0; border-right: 1px solid var(--alpha-g10); border-bottom: 1px solid var(--alpha-g15); text-align: center; vertical-align: middle; font-size: var(--text-15); letter-spacing: -0.3px; line-height: 1.55; word-break: keep-all; overflow-wrap: anywhere; }
.board_view_body.table_wrap tr > :last-child { border-right: 0; }
.board_view_body.table_wrap tbody tr:last-child > * { border-bottom: 0; }
.board_view_body.table_wrap thead th { background: var(--primary-5); font-size: var(--text-14); font-weight: 700; color: var(--gray-80); }
.board_view_body.table_wrap tbody th { background: var(--gray-5); font-weight: 700; color: var(--gray-80); }
.board_view_body.table_wrap tbody td { font-size: var(--text-15); font-weight: 400; color: var(--gray-80); }
.board_view_body.table_wrap tbody tr:hover > td { background: var(--primary-5); }

/* 호출주소·표준·설명 메타표 — 항목명은 잔잔한 배경, 값은 읽기 편하게 좌측 정렬 */
.board_view_body.table_wrap table.apispec-meta th { width: 144px; background: var(--gray-5); color: var(--gray-70); white-space: nowrap; }
.board_view_body.table_wrap table.apispec-meta td { text-align: left; color: var(--gray-90); }

/* 요청/응답 명세표 — 샘플은 데이터 품질이 일정하지 않아 화면에서 숨기고 주요 열에 폭을 재배분한다. */
.board_view_body.table_wrap table.apispec { min-width: 1040px; }
.board_view_body.table_wrap table.apispec :is(th,td):nth-child(1) { width: 25%; min-width: 260px; white-space: nowrap; overflow-wrap: normal; }
.board_view_body.table_wrap table.apispec :is(th,td):nth-child(2) { width: 16%; }
.board_view_body.table_wrap table.apispec :is(th,td):nth-child(3),
.board_view_body.table_wrap table.apispec :is(th,td):nth-child(4),
.board_view_body.table_wrap table.apispec :is(th,td):nth-child(5) { width: 6%; min-width: 58px; padding-right: 8px; padding-left: 8px; white-space: nowrap; }
.board_view_body.table_wrap table.apispec :is(th,td):nth-child(6) { width: 9%; min-width: 84px; padding-right: 10px; padding-left: 10px; white-space: nowrap; }
.board_view_body.table_wrap table.apispec :is(th,td):nth-child(7) { width: auto; border-right: 0; }
.board_view_body.table_wrap table.apispec :is(th,td):nth-child(8) { display: none; }

/* 항목명·국문명·설명은 좌측 정렬하고 크기·필수·반복·타입만 가운데 정렬 */
.board_view_body.table_wrap table.apispec tbody td:nth-child(1),
.board_view_body.table_wrap table.apispec tbody td:nth-child(2),
.board_view_body.table_wrap table.apispec tbody td:nth-child(7) { text-align: left; }
.board_view_body.table_wrap table.apispec tbody td:nth-child(1) { color: var(--primary-70); font-weight: 600; }

/* DB HTML의 padding-left 단계(16/32/48px)를 이용해 응답 필드 계층을 자동 표시한다. */
.board_view_body.table_wrap table.apispec tbody td:first-child > span[style*="padding-left:16px"]::before,
.board_view_body.table_wrap table.apispec tbody td:first-child > span[style*="padding-left:32px"]::before,
.board_view_body.table_wrap table.apispec tbody td:first-child > span[style*="padding-left:48px"]::before { content: '└─'; display: inline-block; margin-right: 6px; color: var(--gray-40); font-weight: 400; }

/*───────────────────────────────────────────────────────────
    OpenAPI 활용가이드 상세(getApiGuideDetail.do) — 명세서 상단 "개요" 박스.
    관리자 화면에서 등록한 API 명세 콘텐츠가 이 클래스를 사용한다.
    호출주소 아래 <table class="apispec-meta">, 요청/응답 <table class="apispec">
    에는 board_table 클래스도 함께 부여돼 있어 위 .table_wrap 규칙과 자연히 어울린다.
───────────────────────────────────────────────────────────*/
.apispec-overview { margin-bottom: 20px; padding: 18px 20px; border: 1px solid var(--primary-20); border-left: 4px solid var(--primary-60); border-radius: var(--radius-08); background: var(--primary-5); }
.apispec-overview-tit { margin: 0 0 8px; font-size: var(--text-15); font-weight: 700; color: var(--primary-70); }
.apispec-overview-desc { margin: 0 0 14px; font-size: var(--text-16); color: var(--gray-90); line-height: 1.6; }
.apispec-example { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.apispec-example-lbl { flex-shrink: 0; font-size: var(--text-14); font-weight: 700; color: var(--gray-70); }
.apispec-example-url { flex: 1; min-width: 0; padding: 8px 12px; border-radius: var(--radius-06); background: var(--gray-10); font-family: Consolas, monospace; font-size: var(--text-14); color: var(--gray-90); word-break: break-all; }

/* apispec-doc 하위 요소 간 여백 — admin 콘텐츠(api_nt)는 요소 사이에 여백이 전혀 없어 붙어보인다 */
.board_view_body.table_wrap .apispec-doc > .apispec-overview { margin-top: 4px; margin-bottom: 24px; }
.board_view_body.table_wrap .apispec-doc > table.apispec-meta { margin-bottom: 28px; }
.board_view_body.table_wrap .apispec-doc > p.apispec-cap { margin: 0 0 12px; padding-left: 10px; border-left: 3px solid var(--primary-60); font-size: var(--text-17); font-weight: 700; color: var(--gray-90); line-height: 1.45; }
.board_view_body.table_wrap .apispec-doc > table.apispec { margin-bottom: 28px; }
.board_view_body.table_wrap .apispec-doc > p.apispec-note { margin-top: 4px; padding: 11px 14px; border-radius: var(--radius-06); background: var(--gray-5); font-size: var(--text-14); color: var(--gray-60); line-height: 1.55; }

/*───────────────────────────────────────────────────────────
    API 이름 = 상세(getApiGuideDetail.do) 새 탭 링크. 체크박스 유무와 무관하게 공통 사용:
    - apiAplyForm.html: <label><input type=checkbox>...<span class="api_nm_link">...</span></label>
      (라벨 안 — 체크박스 토글은 별개, csoCom.showApiSpecNewTab 이 label 기본동작을 막는다)
    - apiAply.html: <div class="api_check_group"><span class="api_nm_link">...</span>...</div>
      (체크박스 없이 이 span 자체가 flex 항목 — 그래서 .api_check_group label 과 동일한 치수를 자체적으로 갖는다)
───────────────────────────────────────────────────────────*/
.api_nm_link { display: inline-flex; align-items: center; min-height: 44px; font-size: var(--text-15); color: var(--gray-90); line-height: 1.5; cursor: pointer; text-decoration: underline; text-decoration-style: dotted; text-underline-offset: 3px; }
.api_nm_link:hover { color: var(--primary-60); }

/* getApiAply.do "신청 API" 소제목 — .api_application_meta dt 와 동일 톤(custom.css) */
.api_applied_items_tit { margin-bottom: 8px; font-size: var(--text-15); color: var(--gray-70); font-weight: 700; line-height: 1.5; }

/*───────────────────────────────────────────────────────────
    getApiGuideDetail.do "API 체험" — self-call 프록시(getApiTrialResult.do)를 그 자리에서 실행해
    결과를 <details> 로 접었다 폈다 볼 수 있는 블록. csoCom.js runApiSpecTry 참조.
───────────────────────────────────────────────────────────*/
.apispec-try { margin: 20px 0 -40px; padding: 18px 20px 20px; border: 1px solid var(--alpha-g15); border-radius: var(--radius-08); background: var(--gray-3, var(--gray-5)); }
.apispec-try-tit { margin: 0 0 6px; font-size: var(--text-15); font-weight: 700; color: var(--gray-90); }
.apispec-try-desc { margin: 0 0 12px; font-size: var(--text-14); color: var(--gray-60); }
.apispec-try-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.apispec-try-url { flex: 1; min-width: 220px; padding: 8px 12px; border-radius: var(--radius-06); background: var(--gray-10); font-family: Consolas, monospace; font-size: var(--text-14); color: var(--gray-90); word-break: break-all; }
.apispec-try-resp { display: flex; align-items: center; gap: 10px; font-size: var(--text-14); color: var(--gray-70); white-space: nowrap; }
.apispec-try-resp label { display: inline-flex; align-items: center; gap: 4px; cursor: pointer; }
.apispec-try-btn { flex-shrink: 0; padding: 8px 18px; border: 0; border-radius: var(--radius-06); background: var(--primary-60); color: #fff; font-size: var(--text-14); font-weight: 700; cursor: pointer; white-space: nowrap; }
.apispec-try-btn:hover { background: var(--primary-70); }
.apispec-try-btn:disabled { background: var(--gray-40); cursor: wait; }

.apispec-try-result { margin-top: 14px; border-top: 1px solid var(--alpha-g15); padding-top: 12px; }
.apispec-try-result summary { cursor: pointer; font-size: var(--text-14); font-weight: 700; color: var(--gray-70); list-style: none; }
.apispec-try-result summary::-webkit-details-marker { display: none; }
.apispec-try-result summary::before { content: '▶'; display: inline-block; margin-right: 6px; font-size: 10px; color: var(--primary-60); transition: transform 0.15s ease; }
.apispec-try-result[open] summary::before { transform: rotate(90deg); }
.apispec-try-pre { margin: 10px 0 0; padding: 14px 16px; border-radius: var(--radius-06); background: #0f1720; color: #d6e2ef; font-family: Consolas, monospace; font-size: var(--text-13, 13px); line-height: 1.6; white-space: pre-wrap; word-break: break-all; max-height: 420px; overflow-y: auto; }

/* API 체험 — 수정 가능한 샘플 파라미터와 실행 보조 기능 */
.apispec-try-param-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0 0 14px; }
.apispec-try-param { min-width: 0; padding: 12px; border: 1px solid var(--alpha-g15); border-radius: var(--radius-06); background: var(--gray-0); }
.apispec-try-param.is-locked { background: var(--gray-5); }
.apispec-try-param-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 7px; }
.apispec-try-param-head label { min-width: 0; color: var(--gray-90); font-size: var(--text-14); font-weight: 700; }
.apispec-try-param-head code { font-family: Consolas, monospace; color: var(--primary-70); }
.apispec-try-param-badge { flex-shrink: 0; padding: 2px 7px; border-radius: 999px; background: var(--gray-10); color: var(--gray-60); font-size: 12px; font-weight: 700; }
.apispec-try-param-badge.is-required { background: #fff0f0; color: #c33b3b; }
.apispec-try-param-badge.is-server { background: var(--primary-10); color: var(--primary-70); }
.apispec-try-param input { width: 100%; height: 40px; padding: 0 10px; border: 1px solid var(--gray-40); border-radius: var(--radius-06); background: var(--gray-0); color: var(--gray-90); font-size: var(--text-14); }
.apispec-try-param input:focus { border-color: var(--primary-60); outline: 2px solid color-mix(in srgb, var(--primary-60) 20%, transparent); }
.apispec-try-param input[aria-invalid="true"] { border-color: #c33b3b; outline-color: rgba(195,59,59,.18); }
.apispec-try-param input:disabled { background: var(--gray-10); color: var(--gray-60); }
.apispec-try-param > p { margin: 7px 0 0; color: var(--gray-60); font-size: 12px; line-height: 1.45; }
.apispec-try-url-row { display: flex; align-items: stretch; gap: 8px; margin-bottom: 10px; }
.apispec-try-url-row .apispec-try-url { display: block; }
.apispec-try-row { justify-content: flex-end; }
.apispec-try-row .apispec-try-resp { margin-right: auto; }
.apispec-try-btn.is-secondary { border: 1px solid var(--gray-40); background: var(--gray-0); color: var(--gray-80); }
.apispec-try-btn.is-secondary:hover { border-color: var(--primary-60); background: var(--primary-5); color: var(--primary-70); }
.apispec-try-validation { min-height: 20px; margin: 7px 0 0; color: #b42318; font-size: var(--text-13, 13px); }
.apispec-try-result-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; }
.apispec-try-result-meta { color: var(--gray-60); font-size: var(--text-13, 13px); }
.apispec-try-result-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.apispec-try-result-actions button { padding: 5px 9px; border: 1px solid var(--gray-40); border-radius: var(--radius-06); background: var(--gray-0); color: var(--gray-70); font-size: 12px; cursor: pointer; }
.apispec-try-result-actions button:disabled { opacity: .45; cursor: default; }
.apispec-try-guidance { margin-top: 10px; padding: 10px 12px; border-radius: var(--radius-06); background: var(--gray-5); color: var(--gray-70); font-size: var(--text-13, 13px); line-height: 1.55; }
.apispec-try-guidance.is-success { background: #eefaf3; color: #247145; }
.apispec-try-guidance.is-error { background: #fff4f2; color: #9b2c2c; }

/* API 상세: 기존 템플릿 및 API_EXPLN 클래스 유지, 상세 화면에만 적용한다. */
.api_guide_layout > .board_view > article { gap: clamp(24px, 2.5vw, 36px); }
.api_guide_layout .apispec-try,
.api_guide_layout .board_view_body.table_wrap .apispec-doc > .apispec-overview {
    margin: 0;
    padding: clamp(18px, 2vw, 24px);
    border: 1px solid var(--alpha-g15);
    border-radius: var(--radius-08);
    background: var(--gray-0);
}
.api_guide_layout .apispec-try-tit,
.api_guide_layout .apispec-overview-tit,
.api_guide_layout .board_view_body.table_wrap .apispec-doc > p.apispec-cap {
    margin: 0 0 16px;
    padding: 0 0 12px;
    border: 0;
    border-bottom: 1px solid var(--alpha-g15);
    color: var(--gray-90);
    font-size: clamp(var(--text-18), 1.4vw, var(--text-20));
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: -0.4px;
    text-align: left;
}
.api_guide_layout .apispec-try-desc,
.api_guide_layout .apispec-overview-desc {
    margin: 0 0 20px;
    color: var(--gray-70);
    font-size: var(--text-15);
    line-height: 1.7;
    overflow-wrap: anywhere;
}
.api_guide_layout .board_view_body.table_wrap { min-width: 0; max-width: 100%; overflow-x: auto; }
.api_guide_layout .board_view_body.table_wrap .apispec-doc > .apispec-overview { margin-bottom: 24px; }
.api_guide_layout .board_view_body.table_wrap .apispec-doc > table.apispec-meta,
.api_guide_layout .board_view_body.table_wrap .apispec-doc > table.apispec { margin-bottom: clamp(28px, 3vw, 40px); }
.api_guide_layout .board_view_body.table_wrap table { border-color: var(--alpha-g15); }
.api_guide_layout .board_view_body.table_wrap thead th { padding-block: 14px; background: var(--primary-5); color: var(--gray-90); }
.api_guide_layout .board_view_body.table_wrap tbody td { line-height: 1.65; }
.api_guide_layout .apispec-try-param-list { gap: 12px; margin-bottom: 16px; }
.api_guide_layout .apispec-try-param { padding: 16px; background: var(--gray-5); }
.api_guide_layout .apispec-try-param.is-locked { background: var(--gray-5); }
.api_guide_layout .apispec-try-param-head { flex-wrap: wrap; }
.api_guide_layout .apispec-try-param-head label { overflow-wrap: anywhere; }
.api_guide_layout .apispec-try-url,
.api_guide_layout .apispec-example-url {
    min-width: 0;
    padding: 12px 14px;
    border: 1px solid var(--alpha-g15);
    background: var(--gray-5);
    line-height: 1.6;
    white-space: normal;
    overflow-wrap: anywhere;
}
.api_guide_layout .apispec-try-btn { min-height: 44px; }
.api_guide_layout .apispec-try-validation:empty { display: none; }
.api_guide_layout .apispec-try-result { margin-top: 20px; padding-top: 16px; }
.api_guide_layout .apispec-try-result > summary { padding-block: 6px; font-size: var(--text-15); }
.api_guide_layout .apispec-example-header { line-height: 1.6; color: var(--gray-70); font-size: var(--text-14); }
.api_guide_layout .board_view_body.table_wrap .apispec-doc > p.apispec-note { margin: 0; padding: 14px 16px; line-height: 1.7; }
.api_guide_layout :is(#apispecTryTitle, #apiSpecOverview, #apiSpecRequest, #apiSpecResponse):target {
    animation: api-guide-target-focus 1s cubic-bezier(.4, 0, .2, 1);
    border-radius: var(--radius-06);
}
@keyframes api-guide-target-focus {
    0% {
        background: transparent;
    }
    22% {
        background: var(--primary-5);
    }
    45% {
        background: var(--primary-5);
    }
    100% {
        background: transparent;
    }
}
@media (prefers-reduced-motion: reduce) {
    .api_guide_layout :is(#apispecTryTitle, #apiSpecOverview, #apiSpecRequest, #apiSpecResponse):target {
        animation: none;
        background: var(--primary-5);
    }
}
@media (max-width: 900px) {
    .api_guide_layout .apispec-try-param-list { grid-template-columns: minmax(0, 1fr); }
    .api_guide_layout .apispec-try-url-row { flex-direction: column; align-items: stretch; }
    .api_guide_layout .apispec-try-result-head { flex-wrap: wrap; }
}
@media (max-width: 600px) {
    .api_guide_layout .apispec-try,
    .api_guide_layout .board_view_body.table_wrap .apispec-doc > .apispec-overview { padding: 16px; }
    .api_guide_layout .apispec-try-param { padding: 12px; }
    .api_guide_layout .apispec-example { flex-direction: column; align-items: stretch; }
    .api_guide_layout .apispec-example-url { flex: auto; }
    .api_guide_layout .apispec-try-row { gap: 10px; }
    .api_guide_layout .apispec-try-row .apispec-try-resp { flex-basis: 100%; }
    .api_guide_layout .board_view_body.table_wrap table.apispec-meta th { width: auto; white-space: normal; }
}

/* 활용가이드 목록 — 최근 본 API, 검색 및 서비스 필터 */
.api-guide-recent { margin-bottom: 20px; padding: 16px 18px; border: 1px solid var(--primary-20); border-radius: var(--radius-08); background: var(--primary-5); }
.api-guide-recent h4 { margin: 0 0 10px; color: var(--gray-90); font-size: var(--text-16); }
.api-guide-recent-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.api-guide-recent-list a { min-width: 0; padding: 10px 12px; border-radius: var(--radius-06); background: var(--gray-0); color: var(--gray-90); text-decoration: none; }
.api-guide-recent-list a:hover { box-shadow: 0 0 0 1px var(--primary-40) inset; }
.api-guide-recent-list strong,
.api-guide-recent-list span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.api-guide-recent-list strong { color: var(--primary-70); font-size: var(--text-14); }
.api-guide-recent-list span { margin-top: 3px; color: var(--gray-60); font-size: 12px; }
.api-guide-filter { margin-bottom: 16px; padding: 14px 16px; border: 1px solid var(--alpha-g15); border-radius: var(--radius-08); background: var(--gray-5); }
.api-guide-filter-fields { display: grid; grid-template-columns: auto minmax(220px, 1fr) auto minmax(160px, .45fr) auto; align-items: center; gap: 8px 10px; }
.api-guide-filter-fields label { color: var(--gray-70); font-size: var(--text-14); font-weight: 700; }
.api-guide-filter-fields :is(input,select) { height: 42px; padding: 0 11px; border: 1px solid var(--gray-40); border-radius: var(--radius-06); background: var(--gray-0); color: var(--gray-90); font-size: var(--text-14); }
.api-guide-filter-fields button { height: 42px; padding: 0 15px; border: 1px solid var(--gray-50); border-radius: var(--radius-06); background: var(--gray-0); color: var(--gray-70); font-weight: 700; cursor: pointer; }
.api-guide-filter-result { margin: 9px 0 0; color: var(--gray-60); font-size: var(--text-13, 13px); text-align: right; }
.api-guide-no-result { padding: 50px 0; color: var(--gray-60); text-align: center; }

/* 서비스키 발급 현황 — 마스킹, 상태, 복사 */
.svcky-status { display: inline-flex; align-items: center; justify-content: center; min-width: 68px; padding: 4px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.svcky-status.is-active { background: #eaf8f0; color: #237548; }
.svcky-status.is-expired { background: var(--gray-10); color: var(--gray-60); }
.svcky-key-wrap { display: flex; align-items: center; justify-content: space-between; gap: 10px; text-align: left; }
.svcky-key-value { min-width: 0; font-family: Consolas, monospace; font-size: var(--text-14); color: var(--gray-90); overflow-wrap: anywhere; }
.svcky-key-actions { display: inline-flex; flex-shrink: 0; gap: 5px; }
.svcky-key-btn { padding: 5px 9px; border: 1px solid var(--gray-40); border-radius: var(--radius-06); background: var(--gray-0); color: var(--gray-70); font-size: 12px; cursor: pointer; }
.svcky-key-btn.is-copy { border-color: var(--primary-40); color: var(--primary-70); }
.svcky-key-btn:disabled { opacity: .42; cursor: not-allowed; }
.svcky-help { display: inline-block; margin: 0 12px 0 0; color: var(--gray-60); font-size: var(--text-13, 13px); vertical-align: middle; }

/* CSO 공통 복사 완료 토스트 */
.cso-toast { position: fixed; right: 24px; bottom: 24px; z-index: 10000; max-width: min(360px, calc(100vw - 32px)); padding: 11px 16px; border-radius: var(--radius-08); background: rgba(20,28,38,.94); color: #fff; font-size: var(--text-14); box-shadow: 0 8px 24px rgba(0,0,0,.2); opacity: 0; transform: translateY(8px); pointer-events: none; transition: opacity .18s ease, transform .18s ease; }
.cso-toast.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 900px) {
    .apispec-try-param-list,
    .api-guide-recent-list { grid-template-columns: 1fr; }
    .api-guide-filter-fields { grid-template-columns: 1fr; }
    .api-guide-filter-fields label { margin-top: 4px; }
    .apispec-try-url-row,
    .svcky-key-wrap { align-items: stretch; flex-direction: column; }
    .svcky-key-actions { justify-content: flex-end; }
}

/*───────────────────────────────────────────────────────────
  공지사항 팝업 (th/fragments/noticePopup.html)
  ───────────────────────────────────────────────────────────
  · 2026-09-03 : CSA 내부공지 팝업 디자인 개편을 CSO 에도 반영.
    - 종전엔 템플릿 안 인라인 <style> 이 구 CSP 룩(#005baa 파란 제목줄·2px #002563 테두리·각진 모서리)을
      강제하고 있었다. 그 인라인이 .pop_content_box 의 flex 레이아웃까지 덮어써서
      아래 본문 오버플로 처리도 전부 무력화된 상태였다 → 인라인 블록 삭제.
    - CSA 는 관리자 디자인 시스템(css/form.css·content.css)의 .modal-* 를 쓰지만,
      CSO 는 포털 퍼블리싱(PUB/api)의 .ly_pop/.pop_layer 가 정본이다.
      마크업은 CSO 것을 그대로 두고, 구조(닫기 버튼은 제목줄에만 · 하단은
      '오늘 하루 보지 않기' 만)와 시각값을 CSA 팝업에 맞춘다.

      ⚠️ 색을 포털 토큰(--primary-*)이 아니라 CSA 값(#1a3a6b·#eef5fe·#b8cce8)으로 직접 쓴다.
        같은 공지가 CSA 미리보기와 CSO 실제 노출에서 다르게 보이지 않게 하려는 것이며
        (2026-09-03 결정), 그 대가로 CSO 다크모드에서 이 팝업만 라이트 색으로 남는다.
        포털 톤으로 되돌릴 때는 --primary-60/-5/-10 과 --radius-24 로 바꾸면 된다.
  · custom.css 는 퍼블리싱 납품물이라 재전달 시 덮어써진다 → 여기(우리 소유)로 옮겨 둔다.
    csoCom.css 가 custom.css 보다 뒤에 로드되므로 잔재가 남아 있어도 이 값이 이긴다.

  ⚠️ 본문의 글꼴·글자색·배경을 덮어쓰지 않는다.
     공지 본문 서식은 등록자가 CSA 라온K 에디터에서 맞춘 인라인 style 이고,
     포털은 그것을 그대로 노출하는 것이 원칙이다(noticeDetail.html 과 같은 기준).
     CSA 가 .ntc-body * 로 글꼴을 강제하던 것도 퍼블리싱 회신(2026-09-03)으로 해제됐다.

     단 본문을 감싸는 '바깥 박스'(여백·테두리·연한 배경)는 서식 덮어쓰기가 아니라 레이아웃이라
     허용한다 — CSA 내부공지 팝업(.modal-dialog-notice .ntc-body)과 같은 모양으로 맞춘 것이다.
     같은 공지가 CSA 미리보기와 CSO 실제 노출에서 다르게 보이지 않게 하는 것이 목적이다.
     본문 요소 자체(span·p·td 등)의 color·background-color·font-* 는 여전히 건드리지 않는다.
───────────────────────────────────────────────────────────*/
.notice_popup .pop_layer { width: min(100%, 720px); max-width: 720px; max-height: min(92vh, 52rem); border-radius: 6px; background: #fff; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2); }
.notice_popup .pop_content_box { display: flex; flex: 1; flex-direction: column; min-width: 0; padding: 10px; padding-bottom: 0; overflow: hidden; }

/* 제목줄 — CSA .modal-header / .modal-title */
.notice_popup .pop_layer .pop_title { min-height: 44px; padding: 10px 16px; background: #1a3a6b; }
.notice_popup .pop_layer .pop_title h3 { font-size: 18px; font-weight: 700; color: #fff; line-height: normal; }
.notice_popup .pop_layer .pop_title .btn_close { width: 28px; min-width: 28px; height: 28px; min-height: 28px; }

/* 본문 박스 — CSA .modal-dialog-notice .modal-body .ntc-body */
.notice_popup .notice_popup_cont { flex: 1; min-width: 0; max-height: 60vh; padding: 15px 25px; overflow: auto; overflow-wrap: anywhere; word-break: break-word; border: 1px solid #b8cce8; border-radius: 6px; background: #eef5fe; line-height: 1.7; }
.notice_popup .notice_popup_cont :is(img, video, canvas, svg, iframe) { box-sizing: border-box; max-width: 100% !important; }
/* 라온K 에디터가 이미지에 width·height 를 px 인라인으로 박아 저장한다. 폭만 줄이면
   인라인 height 가 남아 세로로 늘어지므로 !important 로 해제한다(CSA .ntc-body img 와 같은 이유). */
.notice_popup .notice_popup_cont img { height: auto !important; }
.notice_popup .notice_popup_cont table { display: block; max-width: 100% !important; overflow-x: auto; }
.notice_popup .notice_popup_cont pre { max-width: 100%; white-space: pre-wrap; overflow-wrap: anywhere; }

/* 하단 — '오늘 하루 보지 않기' 만 둔다(닫기는 제목줄 X 버튼). CSA .modal-footer 와 같은 값 */
.notice_popup .notice_popup_btnbox { display: flex; flex-shrink: 0; align-items: center; justify-content: flex-end; gap: 12px; padding: 10px; margin-top: 0; }
.notice_popup .notice_popup_hide { display: inline-flex; align-items: center; gap: 6px; color: #1e2124; font-size: 14px; cursor: pointer; }
.notice_popup .notice_popup_hide_chk { width: 16px; height: 16px; accent-color: #1a3a6b; cursor: pointer; }
