@charset "utf-8";

/* =============================================================================
   v3_news.css — 언론보도(notice) 게시판 목록·상세 새 디자인 (신규 테마 ver 3.0)
   261113 김동현 클로드활용 수정: 새로 만듦
   - skin/board/tl_basic/list.skin.php, view.skin.php 가 불러옴
   - 카드 모양은 메인 뉴스 카드(css/v3_main.css 의 .news_*)와 같은 톤: 뱃지 → 제목 → 날짜 → 사진(294:208), 호버 확대
   - 색·여백 변수(--color-*, --grid-gap 등)는 css/v3_common.css 의 :root 값을 씀
   - 예전 style.css 는 글쓰기·댓글 스킨이 계속 쓰므로 건드리지 않음
   ============================================================================= */

/* 페이지 배경을 메인·서브 상단과 같은 색(#FCFBFA)으로. 이 CSS 는 언론보도 스킨에서만 불러오므로 이 게시판에만 적용됨
   (default.css 의 body 규칙과 우선순위가 같아 이 파일이 뒤에 오는 순서로 이김) */
body {
    background: var(--color-white);
}

/* ===== 목록 ===== */

/* 본문 틀(.content_wrap .txtCon)은 폭 1200px 로 제한되어 있음 → 이 영역만 틀 밖으로 넓혀 메인과 같은 폭(최대 1440px)으로 맞춤.
   left:50% + translateX(-50%) 로 화면 가운데 정렬. 위쪽 음수 여백은 서브 상단 아래 틀의 위쪽 여백(60px)이 너무 커서 줄이는 것 (제품 목록과 동일) */
.v3_news {
    position: relative;
    left: 50%;
    width: min(100vw - var(--header-gap) * 2, var(--content-w));
    margin-top: -40px;
    padding-bottom: clamp(72px, 7vw, 120px);
    transform: translateX(-50%);
    color: var(--color-text);
}

/* ----- 분류 (게시판에 분류를 쓰는 경우만) ----- */
.nw_cate ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 24px;
    padding: 0;
    list-style: none;
}

.nw_cate a {
    display: block;
    padding: 8px 16px;
    border: 1px solid #d9d9d9;
    border-radius: 999px;
    font-size: 14px;
    color: var(--color-text-sub);
    transition: color 0.2s, border-color 0.2s;
}

.nw_cate a:hover {
    border-color: var(--color-point);
    color: var(--color-point);
}

.nw_cate #bo_cate_on {
    border-color: var(--color-point);
    background: var(--color-point);
    color: #fff;
}

/* ----- 총 개수 + 관리자 도구 ----- */
.nw_bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 16px;
    border-bottom: 1px solid #E5E7EB;
    margin-bottom: 32px;
}

.nw_total {
    font-size: 15px;
    color: var(--color-text-sub);
}

.nw_total strong {
    font-weight: 700;
    color: var(--color-deep);
}

.nw_tools {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.nw_chkall {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-right: 4px;
    font-size: 14px;
    color: var(--color-text-sub);
    cursor: pointer;
}

.nw_tools button,
.nw_tool_link {
    display: inline-block;
    height: 36px;
    padding: 0 14px;
    border: 1px solid #d5d5d5;
    border-radius: 6px;
    background: #fff;
    font-size: 14px;
    line-height: 34px;
    color: var(--color-text);
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
}

.nw_tools button:hover,
.nw_tool_link:hover {
    border-color: var(--color-point);
    color: var(--color-point);
}

.nw_tool_main {
    border-color: var(--color-point);
    background: var(--color-point);
    color: #fff;
}

.nw_tool_main:hover {
    background: var(--color-point-hover);
    color: #fff;
}

/* ----- 카드 그리드: 4열 → 1280px 이하 3열 → 768px 이하 2열 ----- */
.nw_grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--grid-gap);
    margin: 0;
    padding: 0;
    list-style: none;
}

/* 261113 김동현 클로드활용 수정: 카드끼리 구분이 잘 안 돼서 카드마다 흰 배경 + 얇은 테두리 + 둥근 모서리 + 안쪽 여백을 줌.
   페이지 배경이 #FCFBFA 라서 흰 카드가 자연스럽게 떠 보임. 카드 사이 간격은 틀이 구분해 주므로 24px 로 줄임 */
.nw_card {
    position: relative;
    border: 1px solid #E5E7EB;
    border-radius: 16px;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.3s, transform 0.3s;
}

/* 마우스를 올리거나(키보드로 이동해도) 테두리가 초록으로 바뀌고 그림자가 살짝 생김 */
.nw_card:hover,
.nw_card:focus-within {
    border-color: var(--color-point);
    box-shadow: 0 10px 28px rgba(31, 77, 63, 0.09);
}

/* 살짝 위로 뜸: 마우스가 있는 기기 + 모션 줄이기 설정이 아닐 때만 */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
    .nw_card:hover {
        transform: translateY(-2px);
    }
}

/* 지금 보고 있는 글(상세에서 목록으로 돌아온 경우 등) 표시 */
.nw_card.is_now {
    border-color: var(--color-point);
}

.nw_link {
    display: flex;
    height: 100%;
    flex-direction: column;
    padding: 20px;
}

.nw_link:focus-visible {
    outline-offset: 4px;
}

/* 매체명 뱃지 (메인 뉴스 카드의 .news_badge 와 같은 모양) */
.nw_badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.nw_badge {
    padding: 4px 8px;
    border-radius: 999px;
    background: var(--color-deep);
    color: var(--color-white);
    font-size: 12px;
    line-height: 16px;
}

/* 공지 글은 뱃지를 하나 더: 색을 달리해서 구분 */
.nw_badge_notice {
    background: var(--color-point);
}

/* 제목이 1줄이든 2줄이든 제목+날짜가 아래쪽(사진 바로 위)에 붙도록 */
.nw_body {
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 96px;
    padding-top: 20px;
}

.nw_title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.65;
    letter-spacing: -0.02em;
    color: var(--color-text);
    transition: color 0.2s;
}

.nw_link:hover .nw_title {
    color: var(--color-point);
}

.nw_new {
    display: inline-block;
    min-width: 16px;
    margin-left: 4px;
    padding: 0 4px;
    border-radius: 3px;
    background: var(--color-point);
    font-size: 11px;
    font-weight: 700;
    line-height: 16px;
    text-align: center;
    vertical-align: middle;
    color: #fff;
}

.nw_date {
    margin-top: 16px;
    font-size: 14px;
    color: var(--color-text-sub);
}

/* 사진 상자: 294:208, 가운데 기준 잘라 채움 (카드 안쪽이라 모서리를 카드보다 작게) */
.nw_img {
    margin-top: 16px;
    aspect-ratio: 294 / 208;
    overflow: hidden;
    border-radius: 8px;
    background: #e9e7e3;
}

.nw_img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* 마우스를 올리면 사진이 천천히 조금 커짐. 마우스가 있는 기기 + 모션 줄이기 설정이 아닐 때만 (메인과 동일) */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
    .nw_link:hover .nw_img img {
        transform: scale(1.06);
    }
}

/* 이미지가 없는(또는 불러오지 못한) 기사: 에코바이오 로고를 가운데에 작게.
   로고는 검정 글자의 img/ecobio.png (img/v3/logo.png 는 어두운 헤더용 흰 글자라 밝은 칸에서는 안 보임). 칸은 페이지 배경색(#FCFBFA)으로 채우고 얇은 테두리를 둠 */
.nw_img .nw_noimg {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    background: var(--color-white);
    box-shadow: inset 0 0 0 1px #ece9e4;
}

.nw_img .nw_noimg img {
    width: 46%;
    height: auto;
    object-fit: contain;
}

.nw_link:hover .nw_img .nw_noimg img {
    transform: none;
}

/* 관리자 선택 체크박스 (카드 오른쪽 위, 카드 안쪽 여백 20px 에 맞춤) */
.nw_chk {
    position: absolute;
    top: 21px;
    right: 20px;
    z-index: 2;
    display: block;
    width: 22px;
    height: 22px;
    cursor: pointer;
}

.nw_chk input {
    width: 20px;
    height: 20px;
    margin: 0;
    cursor: pointer;
}

.nw_empty {
    padding: 80px 0;
    text-align: center;
    color: var(--color-text-sub);
}

/* ----- 페이지 번호 (그누보드 기본 출력의 모양만 덮어씀) ----- */
.nw_paging {
    margin-top: 56px;
    text-align: center;
}

.v3_news .pg_wrap {
    display: inline-block;
}

.v3_news .pg_page,
.v3_news .pg_current {
    min-width: 36px;
    height: 36px;
    padding: 0 8px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    font-size: 15px;
    line-height: 36px;
    color: var(--color-text-sub);
}

.v3_news .pg_page:hover {
    background: #efeeeb;
}

.v3_news .pg_current {
    background: var(--color-point);
    font-weight: 700;
    color: #fff;
}

/* ----- 검색 ----- */
.nw_search {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
}

.nw_search input[type="text"] {
    width: min(100%, 320px);
    height: 44px;
    padding: 0 14px;
    border: 1px solid #d5d5d5;
    border-radius: 6px;
    background: #fff;
    font-size: 15px;
}

.nw_search input[type="text"]:focus {
    border-color: var(--color-point);
    outline: 0;
}

.nw_search button {
    height: 44px;
    padding: 0 22px;
    border-radius: 6px;
    background: var(--color-deep);
    font-size: 15px;
    color: #fff;
    cursor: pointer;
}

.nw_search button:hover {
    background: var(--color-point);
}

/* ===== 상세 ===== */

/* 상세는 읽기 좋게 폭 860px, 본문 틀(1200px) 안에서 가운데. 목록과 같은 위쪽 음수 여백 */
.v3_newsview {
    width: min(100%, 860px);
    margin: -40px auto 0;
    padding-bottom: clamp(72px, 7vw, 120px);
    color: var(--color-text);
}

/* 관리자 전용 도구 줄 (수정/삭제/복사/이동/글쓰기) */
.nv_admin {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
    margin-bottom: 24px;
}

.nv_admin a {
    display: inline-block;
    height: 36px;
    padding: 0 14px;
    border: 1px solid #d5d5d5;
    border-radius: 6px;
    background: #fff;
    font-size: 14px;
    line-height: 34px;
    color: var(--color-text);
    transition: border-color 0.2s, color 0.2s;
}

.nv_admin a:hover {
    border-color: var(--color-point);
    color: var(--color-point);
}

.nv_admin .nv_admin_main {
    border-color: var(--color-point);
    background: var(--color-point);
    color: #fff;
}

.nv_admin .nv_admin_main:hover {
    background: var(--color-point-hover);
    color: #fff;
}

/* 머리: 매체명 뱃지 + 날짜 / 제목 */
.nv_head {
    padding-bottom: 28px;
    margin-bottom: 40px;
    border-bottom: 1px solid #E5E7EB;
}

.nv_meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.nv_date {
    font-size: 14px;
    color: var(--color-text-sub);
}

.nv_title {
    font-size: clamp(24px, 20px + 0.8vw, 32px);
    font-weight: 700;
    line-height: 1.45;
    letter-spacing: -0.02em;
    word-break: keep-all;
    color: var(--color-deep);
}

/* 본문 ---------------------------------------------------------------------
   기사 사이트에서 드래그해 붙여 넣은 글은 글마다 폭·여백·글꼴·이미지 크기가 제각각이다.
   예전에는 글쓴이가 매번 <div style="max-width:860px;margin:auto"> 로 감싸야 했는데, 이제는 스킨이 대신 한다.
   - 본문 영역 자체가 폭 860px + 가운데 정렬
   - 이미지를 뺀 안의 모든 요소는 이 영역 폭을 넘지 못함 (기사에 width:1200px, max-width:760px 등이 박혀 있어도 !important 로 눌러 줌)
   - 이미지도 영역 폭을 넘지 못하고 비율을 지킴 (기사에 height:340px 처럼 높이가 박혀 있어도 찌그러지지 않게 auto).
     단 글쓴이가 일부러 작게 지정한 이미지 크기(max-width:280px 등)는 존중
   - 글꼴 크기·색·배경·굵기는 기사 원문 그대로 둠 (기사마다 의도한 모양을 깨지 않기 위해)
   --------------------------------------------------------------------------- */
.nv_body {
    width: 100%;
    max-width: 860px;
    margin: 0 auto;
    overflow-x: auto;
    /* 그래도 넘치는 요소가 있으면 화면 전체가 옆으로 밀리지 않고 본문 안에서만 스크롤 */
    font-size: 17px;
    line-height: 1.85;
    letter-spacing: -0.015em;
    overflow-wrap: break-word;
}

.nv_body *:not(img) {
    max-width: 100% !important;
    box-sizing: border-box;
}

/* 이미지는 "본문 폭을 넘지 않게"만 막고 !important 는 쓰지 않음:
   기사에 width:1200px 처럼 큰 크기가 박혀 있으면 폭에 맞춰 줄어들고,
   글쓴이가 일부러 작게 지정한 크기(max-width:280px 등)는 그대로 따른다 */
.nv_body img {
    max-width: 100%;
    box-sizing: border-box;
}

/* 본문 바로 아래 첫 단계 요소(기사 전체를 감싼 틀 등)는 가운데에 놓음. 기사 안에 margin 이 직접 박혀 있으면 그 값이 우선 */
.nv_body > * {
    margin-right: auto;
    margin-left: auto;
}

.nv_body img {
    height: auto !important;
}

.nv_body table {
    width: auto;
    max-width: 100% !important;
}

/* 영상(유튜브 등): 폭에 맞추고 16:9 비율 */
.nv_body iframe,
.nv_body video {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 9;
}

.nv_body pre {
    white-space: pre-wrap;
}

/* 원문 보기 버튼 (게시글 링크 칸) */
.nv_source {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 48px;
    padding-top: 28px;
    border-top: 1px solid #E5E7EB;
}

.nv_source_btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 48px;
    padding: 0 26px;
    border-radius: 8px;
    background: var(--color-deep);
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    transition: background 0.2s;
}

.nv_source_btn:hover {
    background: var(--color-point);
    color: #fff;
}

/* 일반 첨부파일 (있는 글만) */
.nv_files {
    margin: 32px 0 0;
    padding: 0;
    list-style: none;
}

.nv_files li + li {
    margin-top: 8px;
}

.nv_files a {
    font-size: 15px;
    color: var(--color-text);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.nv_files a:hover {
    color: var(--color-point);
}

/* ----- 이전 / 목록 / 다음 ----- */
.nv_nav {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    margin-top: clamp(56px, 6vw, 96px);
    padding-top: 28px;
    border-top: 1px solid #E5E7EB;
}

.nv_nav_prev a,
.nv_nav_next a {
    display: block;
    overflow: hidden;
    font-size: 15px;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--color-text);
    transition: color 0.2s;
}

.nv_nav_prev a:hover,
.nv_nav_next a:hover {
    color: var(--color-point);
}

.nv_nav_next {
    text-align: right;
}

.nv_nav a span {
    display: block;
    margin-bottom: 4px;
    font-size: 13px;
    color: #8a8a8a;
}

.nv_nav_list {
    display: inline-block;
    padding: 12px 28px;
    border: 1px solid #d5d5d5;
    border-radius: 8px;
    font-size: 15px;
    color: var(--color-text);
    transition: border-color 0.2s, color 0.2s;
}

.nv_nav_list:hover {
    border-color: var(--color-point);
    color: var(--color-point);
}

/* ===== 반응형 ===== */
@media (max-width: 1280px) {
    .nw_grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .v3_news {
        margin-top: -24px;
    }

    .nw_grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .nw_link {
        padding: 14px;
    }

    .nw_chk {
        top: 15px;
        right: 14px;
    }

    .nw_body {
        min-height: 0;
        padding-top: 14px;
    }

    .v3_newsview {
        margin-top: -24px;
    }

    .nv_body {
        font-size: 16px;
    }

    .nv_nav {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }

    .nv_nav_list {
        grid-column: 1 / -1;
        grid-row: 1;
        justify-self: center;
    }
}

/* =============================================================================
   언론보도 글쓰기 화면 (skin/board/tl_basic/write.skin.php)
   261113 김동현 클로드활용 수정: 새로 추가 — 제품 글쓰기 화면(v3_product.css)의 같은 블록을 가져와 이름만 .v3_newswrite 로 바꿈
   옛 style.css 의 "#bo_w ..." 규칙(우선순위가 높음)을 이기려고 버튼 쪽은 #bo_w 를 붙여 씀
   ============================================================================= */
.v3_newswrite {
    max-width: 960px;
    margin: -24px auto 0;
    padding-bottom: clamp(72px, 7vw, 120px);
    color: var(--color-text);
}

/* 관리자 "필드설정" 버튼이 있으면 그 아래로 자연스럽게 이어지게 */
.pw_admin ~ .v3_newswrite {
    margin-top: 0;
}

.pw_admin {
    position: relative;
    z-index: 1;
    width: min(100%, 960px);
    margin: -24px auto 16px;
    text-align: right;
}

.pw_fconfig_btn {
    height: 34px;
    padding: 0 14px;
    border: 1px solid #d5d5d5;
    border-radius: 6px;
    background: #fff;
    font-size: 13px;
    color: var(--color-text-sub);
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
}

.pw_fconfig_btn:hover {
    border-color: var(--color-point);
    color: var(--color-point);
}

/* ----- 구역(카드) ----- */
.v3_newswrite fieldset.pw_card {
    min-width: 0;
    margin: 0 0 20px;
    padding: clamp(20px, 3vw, 32px);
    border: 1px solid #E5E7EB;
    border-radius: 16px;
    background: #fff;
}

/* legend 는 기본적으로 테두리 위에 걸쳐 그려지므로, 카드 안쪽 제목처럼 보이게 한 줄 차지시킴 */
/* 261113 김동현 클로드활용 수정: 서버에서 카드 제목이 안 보이는 문제 수정.
   사이트 공통 css/default.css 가 legend 를 화면 밖으로 숨기는 규칙(position:absolute; text-indent:-9999em; line-height:0; overflow:hidden)을
   갖고 있어서, position·text-indent·line-height·overflow 를 되돌려 줘야 제목이 보임 */
.v3_newswrite .pw_card_title {
    position: static;
    float: left;
    width: 100%;
    margin: 0 0 20px;
    padding: 0;
    overflow: visible;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.4;
    text-indent: 0;
    color: var(--color-deep);
}

.v3_newswrite .pw_card_title + * {
    clear: both;
}

.v3_newswrite .pw_row {
    margin-bottom: 20px;
}

.v3_newswrite .pw_row:last-child {
    margin-bottom: 0;
}

.pw_grid2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 24px;
    margin-bottom: 20px;
}

.pw_grid2:last-child {
    margin-bottom: 0;
}

.pw_grid2 .pw_row {
    margin-bottom: 0;
}

.pw_grid2 .pw_wide {
    grid-column: 1 / -1;
}

.v3_newswrite .pw_label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text);
}

.pw_req {
    margin-left: 4px;
    font-size: 12px;
    font-style: normal;
    font-weight: 500;
    color: #d6454a;
}

.pw_hint {
    margin: 6px 0 0;
    font-size: 13px;
    line-height: 1.5;
    color: #8a8a8a;
}

.pw_card > .pw_hint {
    margin: 0 0 12px;
}

.pw_note {
    margin: 0 0 16px;
    padding: 12px 14px;
    border-radius: 8px;
    background: #f2f7f5;
    font-size: 13px;
    line-height: 1.6;
    color: #2f6b58;
}

/* ----- 입력칸 ----- */
.v3_newswrite .pw_input {
    display: block;
    width: 100%;
    height: 46px;
    padding: 0 14px;
    border: 1px solid #d5d5d5;
    border-radius: 8px;
    background: #fff;
    font-size: 15px;
    color: var(--color-text);
    transition: border-color 0.2s;
}

.v3_newswrite .pw_input:focus {
    border-color: var(--color-point);
    outline: 0;
}

/* 제품명 + 임시 저장된 글 버튼 */
.pw_title_wrap {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pw_title_wrap .pw_input {
    flex: 1;
}

.pw_btn_sub {
    flex: none;
    height: 46px;
    padding: 0 16px;
    border: 1px solid #d5d5d5;
    border-radius: 8px;
    background: #fff;
    font-size: 14px;
    color: var(--color-text);
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
}

.pw_btn_sub:hover {
    border-color: var(--color-point);
    color: var(--color-point);
}

/* 임시 저장 목록 팝업: 제목 칸 바로 아래 오른쪽에 뜸 */
.v3_newswrite #autosave_pop {
    top: calc(100% + 6px);
    z-index: 30;
}

/* ----- 첨부파일 칸 ----- */
.v3_newswrite .pw_file {
    padding: 16px;
    border: 1px dashed #cfd8d4;
    border-radius: 10px;
    background: #fbfdfc;
}

.pw_file_input {
    display: block;
    width: 100%;
    margin-bottom: 10px;
    font-size: 14px;
}

.pw_file .file_del {
    display: block;
    margin-top: 10px;
    font-size: 13px;
    color: var(--color-text-sub);
}

/* ----- 편집기 ----- */
.v3_newswrite .wr_content {
    margin-top: 4px;
}

/* ----- 옵션(공지 등) ----- */
.pw_options {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 0 0 20px;
    padding: 0 4px;
}

.pw_options .pw_label {
    margin: 0;
}

.pw_options ul {
    margin: 0;
    padding: 0;
    overflow: hidden;
    list-style: none;
}

/* 261113 김동현 클로드활용 수정: 옵션 체크박스(공지 등) 다시 꾸밈.
   옛 style.css 는 진짜 체크박스를 숨기고(.selec_chk) 라벨 안의 span 네모를 대신 그리는데, 그 네모 위치 규칙이
   ".write_div" 안에서만 맞아서 옵션 줄에서는 어긋났음 → 옵션 줄 전용 규칙으로 위치·모양·체크 표시를 직접 지정.
   (옛 규칙보다 우선순위를 높이려고 선택자를 길게 씀) */
.pw_options .chk_box {
    position: relative;
}

.pw_options .chk_box input[type="checkbox"] + label {
    position: relative;
    display: inline-block;
    padding-left: 28px;
    font-size: 14px;
    line-height: 20px;
    color: var(--color-text);
    cursor: pointer;
}

.pw_options .chk_box input[type="checkbox"] + label span {
    position: absolute;
    top: 1px;
    left: 0;
    display: block;
    width: 18px;
    height: 18px;
    margin: 0;
    border: 1px solid #c4c9cc;
    border-radius: 4px;
    background: #fff;
    transition: background 0.2s, border-color 0.2s;
}

/* 체크되면 초록색 + 흰색 체크 표시 */
.pw_options .chk_box input[type="checkbox"]:checked + label span {
    border-color: var(--color-point);
    background: var(--color-point);
}

.pw_options .chk_box input[type="checkbox"]:checked + label span::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 6px;
    width: 4px;
    height: 9px;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(45deg);
}

/* 키보드로 이동했을 때 어디에 있는지 보이게 */
.pw_options .chk_box input[type="checkbox"]:focus-visible + label span {
    outline: 2px solid var(--color-point);
    outline-offset: 2px;
}

/* ----- 버튼 ----- */
.pw_actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 8px;
}

#bo_w .pw_btn_cancel,
#bo_w .pw_btn_submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    height: 52px;
    padding: 0 28px;
    border: 1px solid var(--color-point);
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

#bo_w .pw_btn_cancel {
    border-color: #d5d5d5;
    background: #fff;
    color: var(--color-text-sub);
}

#bo_w .pw_btn_cancel:hover {
    border-color: var(--color-text-sub);
    color: var(--color-text);
}

#bo_w .pw_btn_submit {
    background: var(--color-point);
    color: #fff;
}

#bo_w .pw_btn_submit:hover {
    border-color: var(--color-point-hover);
    background: var(--color-point-hover);
}

/* ----- 관리자 "필드설정" 팝업 (bPopup 이 가운데에 띄움) ----- */
.pw_fconfig {
    width: min(92vw, 520px);
    max-height: 86vh;
    padding: 28px;
    overflow-y: auto;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    color: var(--color-text);
}

.pw_fconfig h3 {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 700;
    color: var(--color-deep);
}

.pw_fconfig_note {
    margin: 0 0 16px;
    font-size: 13px;
    line-height: 1.6;
    color: var(--color-text-sub);
}

.pw_fconfig_row {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    margin: 10px 0;
}

.pw_fconfig_row label {
    font-size: 14px;
    color: var(--color-text);
}

.pw_fconfig .frm_input {
    width: 100%;
    height: 40px;
    padding: 0 12px;
    border: 1px solid #d5d5d5;
    border-radius: 8px;
    background: #fff;
    font-size: 14px;
}

.pw_fconfig .frm_input[readonly] {
    background: #f4f4f4;
    color: #999;
}

.pw_fconfig .action {
    margin-top: 20px;
    text-align: right;
}

.pw_fconfig .btn_submit {
    height: 44px;
    padding: 0 24px;
    border: 0;
    border-radius: 8px;
    background: var(--color-point);
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
}

@media (max-width: 768px) {
    .pw_grid2 {
        grid-template-columns: minmax(0, 1fr);
    }

    .pw_title_wrap {
        flex-wrap: wrap;
    }

    .pw_title_wrap .pw_input {
        flex: 1 1 100%;
    }

    .pw_actions {
        flex-direction: column-reverse;
    }

    #bo_w .pw_btn_cancel,
    #bo_w .pw_btn_submit {
        width: 100%;
    }

    .pw_fconfig_row {
        grid-template-columns: minmax(0, 1fr);
        gap: 6px;
    }
}
