@charset "utf-8";
/* ═══════════════════════════════════════════════════════════════
   한솔디자인 — 게시판 공통 표준
   기준: 고객관리(원장) 화면. 모든 게시판이 같은 결을 갖도록 맞춘다.

     · 표 머리 = 짙은 남색 / 본문 = 투명 + 옅은 구분선
     · 버튼 = 높이 42px · 좌우 20px · 모서리 10px
     · 입력칸 = 높이 44px · 모서리 10px
     · 노란 바탕에는 반드시 검은 글씨
     · PC 표 / 모바일 카드
   ═══════════════════════════════════════════════════════════════ */

/* ── 본문 폭·여백 ─────────────────────────────────────────── */
#bo_list, #bo_v, #bo_w, #bo_gall { padding: 26px 0 60px; }
#bo_list > h2, #bo_v > h2, #bo_gall > h2 { display: none; }

/* ── 상단 줄: 건수 + 도구 ─────────────────────────────────── */
#bo_list .bo_fx, #bo_gall .bo_fx {
    display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
    margin: 0 0 16px; padding: 0;
}
#bo_list .bo_fx > ul, #bo_gall .bo_fx > ul {
    list-style: none; display: flex; align-items: center; gap: 8px;
    margin: 0 0 0 auto; padding: 0;
}
#bo_list .bo_fx li, #bo_gall .bo_fx li { margin: 0; }
.bo_fx .btn_bo_user > li > a,
.bo_fx .btn_bo_adm > li > a,
.bo_fx .btn_bo_user > li > button {
    display: inline-flex !important; align-items: center; justify-content: center;
    box-sizing: border-box; min-width: 42px; height: 42px; padding: 0 14px;
    border-radius: 10px; font-size: 13.5px; font-weight: 700; line-height: 1;
    color: rgba(255,255,255,.82) !important;
    background: #16233f !important;
    border: 1px solid rgba(255,255,255,.12) !important;
}
.bo_fx .btn_bo_user > li > a:hover,
.bo_fx .btn_bo_adm > li > a:hover { background: #1d2d4f !important; color: #fff !important; }
/* 글쓰기 = 강조 */
.bo_fx a.btn_b02, .bo_fx .btn_b02 {
    background: #ffb020 !important; color: #0c1424 !important;
    border-color: #ffb020 !important; font-weight: 800 !important;
}
.bo_fx a.btn_b02:hover { background: #ffd648 !important; }
/* 총 건수 */
#bo_list .td_num, .bo_fx .pg_wrap { color: rgba(255,255,255,.6); }

/* ── 표 ───────────────────────────────────────────────────── */
.tbl_head01 { overflow-x: auto; }
.tbl_head01 > table, .tbl_wrap > table {
    width: 100%; border-collapse: collapse; font-size: 14px;
    background: transparent !important;
}
.tbl_head01 caption, .tbl_wrap caption { display: none; }
.tbl_head01 thead th, .tbl_wrap thead th {
    background: #0c1424 !important; color: #fff !important;
    padding: 13px 12px; font-size: 13px; font-weight: 700;
    text-align: center; white-space: nowrap;
    border: 0 !important; border-bottom: 1px solid rgba(255,255,255,.12) !important;
}
.tbl_head01 tbody td, .tbl_wrap tbody td {
    padding: 13px 12px; vertical-align: middle;
    color: rgba(255,255,255,.82) !important;
    background: transparent !important;
    border: 0 !important; border-bottom: 1px solid rgba(255,255,255,.07) !important;
}
.tbl_head01 tbody tr:hover td, .tbl_wrap tbody tr:hover td {
    background: rgba(255,176,32,.06) !important;
}
.tbl_head01 tbody td a, .tbl_wrap tbody td a { color: rgba(255,255,255,.9) !important; }
.tbl_head01 tbody td a:hover, .tbl_wrap tbody td a:hover { color: #ffb020 !important; }
/* 번호·글쓴이·조회·날짜는 가운데, 제목만 왼쪽 */
.tbl_head01 td.td_num, .tbl_head01 td.td_num2,
.tbl_head01 td.td_name, .tbl_head01 td.td_nick,
.tbl_head01 td.td_date, .tbl_head01 td.td_datetime,
.tbl_head01 td.td_num_hit, .tbl_head01 td.td_chk { text-align: center; }
.tbl_head01 td.td_subject, .tbl_head01 td.td_tit { text-align: left; }
.tbl_head01 .td_num, .tbl_head01 .td_date, .tbl_head01 .td_num_hit {
    color: rgba(255,255,255,.5) !important; font-size: 13px;
    font-variant-numeric: tabular-nums; white-space: nowrap;
}
.bo_tit { font-weight: 700; }
.bo_tit a, a.bo_tit { color: #fff !important; }
/* 공지 행 */
.tbl_head01 tr.bo_notice td { background: rgba(255,176,32,.05) !important; }
.tbl_head01 tr.bo_notice .notice_icon,
.tbl_head01 tr.bo_notice td.td_num {
    color: #ffb020 !important; font-weight: 800;
}
/* 새 글·댓글 수 표시 */
.bo_tit .cnt_cmt {
    display: inline-block; margin-left: 5px; padding: 2px 7px; border-radius: 999px;
    background: rgba(255,176,32,.16); color: #ffb020 !important;
    font-size: 11.5px; font-weight: 800;
}
.tbl_head01 tbody tr td.empty_table,
.tbl_wrap tbody tr td.empty_table {
    text-align: center; padding: 56px 0 !important; color: rgba(255,255,255,.45) !important;
}
/* 체크박스 */
.tbl_head01 input[type=checkbox], .tbl_wrap input[type=checkbox] {
    width: 17px; height: 17px; accent-color: #ffb020; cursor: pointer;
}

/* ── 검색 ─────────────────────────────────────────────────── */
.bo_sch_wrap { z-index: 200; }
#bo_list .bo_sch, .bo_sch_wrap .bo_sch {
    background: #16233f !important; border: 1px solid rgba(255,255,255,.12) !important;
    border-radius: 14px; padding: 20px;
}
.bo_sch legend { color: #ffb020 !important; font-weight: 800; }
.bo_sch select, .bo_sch input[type=text] {
    box-sizing: border-box; height: 44px; padding: 0 13px; border-radius: 10px;
    background: #0c1424 !important; color: #fff !important;
    border: 1px solid rgba(255,255,255,.14) !important; font-size: 14px;
}
.bo_sch .btn_submit, .bo_sch button[type=submit] {
    height: 44px; padding: 0 20px; border: 0; border-radius: 10px; cursor: pointer;
    background: #ffb020 !important; color: #0c1424 !important; font-weight: 800;
}

/* ── 페이지 번호 ──────────────────────────────────────────── */
.pg_wrap { display: flex; justify-content: center; margin-top: 26px; }
.pg { display: inline-flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 5px; }
.pg_page, .pg_current {
    display: inline-flex !important; align-items: center; justify-content: center;
    box-sizing: border-box; min-width: 38px; height: 38px; padding: 0 12px;
    border-radius: 9px; font-size: 13.5px; font-weight: 700; text-decoration: none;
}
.pg_page {
    color: rgba(255,255,255,.75) !important; background: #16233f !important;
    border: 1px solid rgba(255,255,255,.12) !important;
}
.pg_page:hover { background: #1d2d4f !important; color: #fff !important; }
.pg_current, strong.pg_current {
    background: #ffb020 !important; color: #0c1424 !important;
    border: 1px solid #ffb020 !important; font-weight: 800 !important;
}

/* ── 글 보기 ──────────────────────────────────────────────── */
#bo_v_title { font-size: 24px; font-weight: 900; color: #fff !important; letter-spacing: -.02em; }
#bo_v_info { color: rgba(255,255,255,.5) !important; font-size: 13px; margin-top: 8px; }
#bo_v_atc { padding: 24px 0; line-height: 1.8; }
#bo_v_con { color: rgba(255,255,255,.85) !important; }
/* 버튼 줄만 가로 배치. 더보기 메뉴(.more_opt)는 제외해야 숨김이 산다 */
#bo_v_top > ul:not(.more_opt), #bo_v_bot > ul:not(.more_opt),
#bo_v_top ul:not(.more_opt), #bo_v_bot ul:not(.more_opt) {
    list-style: none; display: flex; gap: 8px; flex-wrap: wrap; margin: 0; padding: 0; }
/* 더보기 메뉴는 열릴 때만 세로 목록 */
#bo_v_top .more_opt, #bo_v_bot .more_opt { display: none; flex-direction: column; gap: 2px; }
#bo_v_top .more_opt[style*="block"], #bo_v_top .more_opt[style*="flex"],
#bo_v_bot .more_opt[style*="block"], #bo_v_bot .more_opt[style*="flex"] { display: flex !important; }
#bo_v_top, #bo_v_bot { padding: 16px 0; }
#bo_v_bot { border-top: 1px solid rgba(255,255,255,.1); margin-top: 20px; }
#bo_v_top a, #bo_v_bot a, #bo_v_top button, #bo_v_bot button {
    display: inline-flex !important; align-items: center; justify-content: center;
    box-sizing: border-box; height: 42px; padding: 0 20px; border-radius: 10px;
    font-size: 13.5px; font-weight: 700; line-height: 1; white-space: nowrap;
    color: rgba(255,255,255,.82) !important; background: #16233f !important;
    border: 1px solid rgba(255,255,255,.12) !important;
}
#bo_v_top a:hover, #bo_v_bot a:hover { background: #1d2d4f !important; color: #fff !important; }
#bo_v_top .btn_b02, #bo_v_bot .btn_b02, #bo_v_bot .btn_admin {
    background: #ffb020 !important; color: #0c1424 !important;
    border-color: #ffb020 !important; font-weight: 800 !important;
}
#bo_v_file ul, #bo_v_link ul { list-style: none; margin: 0; padding: 0; }
#bo_v_file li, #bo_v_link li { margin-bottom: 8px; }
#bo_v_file a, #bo_v_link a {
    display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px;
    border-radius: 10px; background: #16233f !important;
    border: 1px solid rgba(255,255,255,.1) !important;
    color: rgba(255,255,255,.8) !important; font-size: 13.5px;
}

/* ── 댓글 ─────────────────────────────────────────────────── */
#bo_vc { margin-top: 26px; }
#bo_vc article { padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,.07); }
#bo_vc_w { background: #16233f; border: 1px solid rgba(255,255,255,.1);
    border-radius: 14px; padding: 18px; margin-top: 18px; }
#bo_vc_w textarea, #wr_content {
    box-sizing: border-box; width: 100%; padding: 13px; border-radius: 10px;
    background: #0c1424 !important; color: #fff !important;
    border: 1px solid rgba(255,255,255,.14) !important; line-height: 1.7;
}

/* ── 글쓰기 (원장 외 일반 게시판) ─────────────────────────── */
#bo_w .write_div { margin-bottom: 14px; }
/* 한 줄 입력칸 — textarea 는 뺀다.
   textarea 도 .frm_input 을 달고 있어 높이 44px 에 눌려
   일곱 줄짜리 상자가 두 줄로 찌그러졌다. */
#bo_w .frm_input:not(textarea), #bo_w input[type=text],
#bo_w input[type=password], #bo_w select {
    box-sizing: border-box; height: 44px; padding: 11px 13px; border-radius: 10px;
    background: #16233f !important; color: #fff !important;
    border: 1px solid rgba(255,255,255,.14) !important; font-size: 14.5px;
    line-height: 1.5;
}
/* 여러 줄 입력칸 — 높이는 rows 가 정하게 두고 최소 높이만 준다 */
#bo_w textarea, #bo_w textarea.frm_input {
    box-sizing: border-box; min-height: 150px; height: auto;
    padding: 13px 14px; border-radius: 10px; line-height: 1.7;
    background: #16233f !important; color: #fff !important;
    border: 1px solid rgba(255,255,255,.14) !important; font-size: 14.5px;
    resize: vertical;
}
/* 저장·취소 — 두 버튼을 같은 크기로. 취소가 좁아 글자가 세로로 쪼개지던 문제 */
#bo_w .btn_confirm { display: flex; gap: 10px; justify-content: flex-end;
    align-items: center; margin-top: 22px; }
#bo_w .btn_confirm .btn_submit,
#bo_w .btn_confirm .btn_cancel {
    display: inline-flex !important; align-items: center; justify-content: center;
    box-sizing: border-box; flex: 0 0 auto !important;
    min-width: 150px; height: 50px !important; padding: 0 32px !important;
    border-radius: 11px !important; cursor: pointer;
    font-family: inherit; font-size: 15px; line-height: 1;
    white-space: nowrap !important;   /* 「취 소」로 쪼개지지 않게 */
}
#bo_w .btn_confirm .btn_submit {
    border: 0 !important; font-weight: 800;
    background: #ffb020 !important; color: #0c1424 !important;
}
#bo_w .btn_confirm .btn_submit:hover { background: #ffd648 !important; }
#bo_w .btn_confirm .btn_cancel {
    font-weight: 700;
    color: rgba(255,255,255,.75) !important; background: #16233f !important;
    border: 1px solid rgba(255,255,255,.12) !important;
}
#bo_w .btn_confirm .btn_cancel:hover { background: #1d2d4f !important; color: #fff !important; }

/* ── 갤러리 ───────────────────────────────────────────────── */
#bo_gall .gall_con li, .gall_row .gall_li {
    background: #16233f; border: 1px solid rgba(255,255,255,.1);
    border-radius: 14px; overflow: hidden;
}
#bo_gall .gall_text_href a { color: #fff !important; font-weight: 700; }

/* ═══ 모바일 — 표를 카드로 ═══════════════════════════════════ */
@media (max-width: 768px) {
    #bo_list, #bo_v, #bo_w, #bo_gall { padding: 16px 0 70px; }

    .tbl_head01 { overflow-x: visible; }
    .tbl_head01 > table, .tbl_head01 > table > tbody { display: block; width: 100%; }
    .tbl_head01 > table > thead { display: none; }
    .tbl_head01 > table > tbody > tr {
        display: grid; grid-template-columns: 1fr auto; gap: 3px 10px;
        padding: 14px 16px; margin-bottom: 10px;
        background: #16233f; border: 1px solid rgba(255,255,255,.1);
        border-radius: 13px;
    }
    .tbl_head01 > table > tbody > tr:hover td { background: transparent !important; }
    .tbl_head01 > table > tbody > td,
    .tbl_head01 > table > tbody > tr > td {
        display: block; border: 0 !important; padding: 0 !important; text-align: left !important;
    }
    /* 제목을 크게 맨 위 */
    .tbl_head01 td.td_subject { grid-column: 1 / -1; grid-row: 1; font-size: 15px; }
    .tbl_head01 td.td_subject a { font-weight: 800; }
    /* 나머지는 아래 두 줄.
       ※ 이 스킨에서 td_num2 = 글번호, td_num = 조회수 다.
          둘 다 같은 칸에 두면 글자가 포개진다. 자리를 나눈다. */
    .tbl_head01 td.td_num2 { grid-column: 1; grid-row: 2; font-size: 12px; }
    .tbl_head01 td.td_num, .tbl_head01 td.td_num_hit {
        grid-column: 2; grid-row: 2; text-align: right !important; font-size: 12px; }
    .tbl_head01 td.td_name, .tbl_head01 td.td_nick { grid-column: 1; grid-row: 3; font-size: 12.5px; }
    .tbl_head01 td.td_date, .tbl_head01 td.td_datetime {
        grid-column: 2; grid-row: 3; text-align: right !important; font-size: 12.5px; }
    /* 라벨을 붙여 무슨 숫자인지 알 수 있게 */
    .tbl_head01 td.td_num::before { content: '조회 '; color: rgba(255,255,255,.4); }
    .tbl_head01 td.td_num2::before { content: '#'; color: rgba(255,255,255,.4); }
    .tbl_head01 td.td_chk { display: none; }
    .tbl_head01 td.empty_table { grid-column: 1 / -1; }

    .bo_fx .btn_bo_user > li > a, .bo_fx .btn_bo_adm > li > a { height: 44px; }
    #bo_v_top a, #bo_v_bot a { height: 46px; flex: 1; }
    #bo_v_top ul, #bo_v_bot ul { width: 100%; }
    #bo_w .btn_confirm { flex-direction: column-reverse; }
    #bo_w .btn_confirm .btn_submit, #bo_w .btn_confirm .btn_cancel {
        width: 100%; justify-content: center; }
}

/* ═══ 날짜 입력칸 달력 아이콘 — 사이트 전역 흰색 ═══════════════
   브라우저 기본 아이콘은 어두운 회색이라 다크 배경에서 안 보인다.
   invert 계열은 오히려 검게 나오므로 흰 달력 그림을 직접 얹는다. */
input[type=date]{ color-scheme:dark }
input[type=date]::-webkit-calendar-picker-indicator{
    opacity:1; cursor:pointer; width:20px; height:20px;
    padding:0; margin-left:6px; border-radius:5px;
    background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E");
    background-repeat:no-repeat; background-position:center; background-size:19px 19px;
}
input[type=date]::-webkit-calendar-picker-indicator:hover{ background-color:rgba(255,176,32,.3) }
input[type=date]::-webkit-datetime-edit{ color:#fff }

/* ═══ 열 폭 — 체크박스 칸이 넓게 벌어져 번호가 밀리던 문제 ═══ */
.tbl_head01 th.th_chk, .tbl_head01 td.td_chk { width: 44px; padding-left: 14px; padding-right: 0; }
.tbl_head01 th.th_num, .tbl_head01 td.td_num,
.tbl_head01 th.th_num2, .tbl_head01 td.td_num2 { width: 76px; }
.tbl_head01 th.th_name, .tbl_head01 td.td_name,
.tbl_head01 th.th_nick, .tbl_head01 td.td_nick { width: 130px; }
.tbl_head01 th.th_date, .tbl_head01 td.td_date,
.tbl_head01 th.th_datetime, .tbl_head01 td.td_datetime { width: 104px; }
.tbl_head01 th.th_hit, .tbl_head01 td.td_num_hit { width: 74px; }
/* 제목이 남는 폭을 전부 가져간다 */
.tbl_head01 th.th_subject, .tbl_head01 td.td_subject { width: auto; }

/* ═══ 댓글 영역 ═══
   ※ 제목(h2)·작성자 라벨을 버튼처럼 만들면 글자가 떠다닌다.
      글자는 글자로 두고, 실제 버튼만 버튼으로 다룬다. */
#bo_vc { border-top: 1px solid rgba(255,255,255,.1); padding-top: 20px; margin-top: 24px; }
#bo_vc h2 {
    display: block !important; background: transparent !important; border: 0 !important;
    padding: 0 !important; margin: 0 0 14px !important;
    font-size: 16px; font-weight: 800; color: #fff !important;
}
#bo_vc h2 .cnt_cmt { margin-left: 6px; }
#bo_vc article { position: relative; padding: 16px 0;
    border-bottom: 1px solid rgba(255,255,255,.07); }
#bo_vc header { display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
    background: transparent !important; padding: 0 !important; }
#bo_vc .sound_only { position: absolute !important; width: 1px !important; height: 1px !important;
    overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; }
#bo_vc .cmt_contents { padding: 10px 0 0; line-height: 1.7;
    color: rgba(255,255,255,.85) !important; }
#bo_vc time, #bo_vc .cmt_time { color: rgba(255,255,255,.45) !important; font-size: 12.5px; }

/* ═══ 파일 선택칸 — 흰 배경으로 뜨던 문제 ═══ */
#bo_w .bo_w_flie, #bo_w .file_wr, #bo_w .bo_w_link {
    background: transparent !important; border: 0 !important;
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px;
}
#bo_w input[type=file] {
    box-sizing: border-box; flex: 1; min-width: 200px; padding: 0;
    background: transparent !important; border: 0 !important;
    color: rgba(255,255,255,.65) !important; font-size: 13.5px;
}
#bo_w input[type=file]::file-selector-button {
    margin-right: 10px; padding: 11px 17px; border: 0; border-radius: 10px; cursor: pointer;
    background: #243352 !important; color: rgba(255,255,255,.88) !important;
    font-family: inherit; font-size: 13.5px; font-weight: 700;
}
#bo_w input[type=file]::file-selector-button:hover { background: #2e4066 !important; }
/* 파일 설명칸·삭제 체크 */
#bo_w .bo_w_flie input[type=text] { flex: 1; min-width: 180px; }
#bo_w .file_del { display: inline-flex; align-items: center; gap: 6px;
    font-size: 12.5px; color: rgba(255,255,255,.6); }
/* 링크칸 아이콘 라벨 */
#bo_w .bo_w_link label { flex: none; min-width: 34px; color: rgba(255,255,255,.55); }
#bo_w .bo_w_link input[type=text] { flex: 1; min-width: 200px; }

/* ═══ 옵션 체크(공지·html·비밀글) ═══ */
#bo_w .bo_v_option { list-style: none; display: flex; gap: 16px; flex-wrap: wrap;
    margin: 0 0 14px; padding: 0; }
#bo_w .bo_v_option li { display: inline-flex; align-items: center; gap: 7px; }
#bo_w .bo_v_option label { font-size: 13px; font-weight: 700;
    color: rgba(255,255,255,.72) !important; cursor: pointer; }
#bo_w .bo_v_option input[type=checkbox] { width: 17px; height: 17px; accent-color: #ffb020; }

@media (max-width: 768px) {
    /* 모바일 카드에서는 폭 지정을 풀어야 한다 */
    .tbl_head01 th.th_chk, .tbl_head01 td.td_chk,
    .tbl_head01 th.th_num, .tbl_head01 td.td_num,
    .tbl_head01 th.th_name, .tbl_head01 td.td_name,
    .tbl_head01 th.th_date, .tbl_head01 td.td_date,
    .tbl_head01 th.th_hit, .tbl_head01 td.td_num_hit { width: auto; padding-left: 0; }
}

/* ═══ 열 폭 확정 ═══════════════════════════════════════════════
   table-layout:fixed 에서는 첫 행(머리 th)이 폭을 정하고 td 지정은 무시된다.
   머리에 클래스가 없으므로 순번(nth-child)으로 잡는다.
   기본 스킨 열 차례 = 체크 · 번호 · 제목 · 글쓴이 · 조회 · 날짜 */
.tbl_head01 > table { table-layout: fixed; }
.tbl_head01 > table > thead th:nth-child(1) { width: 46px; }   /* 체크 */
.tbl_head01 > table > thead th:nth-child(2) { width: 82px; }   /* 번호 */
.tbl_head01 > table > thead th:nth-child(3) { width: auto; }   /* 제목 */
.tbl_head01 > table > thead th:nth-child(4) { width: 132px; }  /* 글쓴이 */
.tbl_head01 > table > thead th:nth-child(5) { width: 78px; }   /* 조회 */
.tbl_head01 > table > thead th:nth-child(6) { width: 108px; }  /* 날짜 */
/* 제목은 길면 말줄임 */
.tbl_head01 td.td_subject { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tbl_head01 td.td_subject .bo_tit { display: block; overflow: hidden;
    text-overflow: ellipsis; white-space: nowrap; }

/* ═══ 임시 저장된 글 버튼 — 흰 배경으로 뜨던 문제 ═══ */
.btn_frmline, button.btn_frmline, #btn_autosave {
    display: inline-flex !important; align-items: center; justify-content: center;
    box-sizing: border-box; height: 44px; padding: 0 16px; border-radius: 10px; cursor: pointer;
    background: #16233f !important; color: rgba(255,255,255,.82) !important;
    border: 1px solid rgba(255,255,255,.14) !important;
    font-family: inherit; font-size: 13.5px; font-weight: 700; white-space: nowrap;
}
.btn_frmline:hover, #btn_autosave:hover { background: #1d2d4f !important; color: #fff !important; }
#autosave_wrapper { display: flex; gap: 8px; align-items: center; }
#autosave_wrapper .frm_input { flex: 1; min-width: 0; }
/* 임시 저장된 글 목록 — 평소 숨김. 버튼을 눌러야 열린다 */
#autosave_pop {
    display: none;                     /* ← 숨김이 기본 */
    position: absolute !important; top: 52px; right: 0; z-index: 20;
    width: min(92vw, 360px); max-height: 240px; overflow-y: auto; padding: 10px;
    background: #16233f !important; border: 1px solid rgba(255,255,255,.14) !important;
    border-radius: 12px; color: rgba(255,255,255,.85) !important;
    box-shadow: 0 16px 40px rgba(0,0,0,.5); }
#autosave_pop:before, #autosave_pop:after { display: none !important; }
#autosave_pop strong { display: block; margin-bottom: 8px; color: #fff !important; font-size: 13.5px; }
#autosave_pop ul { list-style: none; margin: 0; padding: 0; }
#autosave_pop li { padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,.07); font-size: 13px; }
#autosave_wrapper { position: relative; }
#autosave_pop a { color: rgba(255,255,255,.85) !important; }

@media (max-width: 768px) {
    /* 카드 배치에서는 고정폭을 모두 해제 */
    .tbl_head01 > table { table-layout: auto; }
    .tbl_head01 td.td_chk, .tbl_head01 td.chk_box,
    .tbl_head01 td.td_num, .tbl_head01 td.td_num2,
    .tbl_head01 td.td_name, .tbl_head01 td.td_nick,
    .tbl_head01 td.td_datetime, .tbl_head01 td.td_date,
    .tbl_head01 td.td_num_hit, .tbl_head01 td.td_subject { width: auto !important; }
    #autosave_wrapper { flex-direction: column; align-items: stretch; }
    .btn_frmline, #btn_autosave { width: 100%; }
}

/* ═══ 그누보드 기본 스킨 잔재 정리 ═════════════════════════════
   basic·quote 스킨이 공통으로 물고 있던 밝은 테마 값을
   여기서 한 번에 눌러 어디서든 같은 결이 되게 한다. */

/* 더보기(⋮) 드롭다운
   ※ 평소엔 숨어 있어야 한다. 기본 스킨의 display:none 을 반드시 이어받는다.
      (이걸 빠뜨려 페이지를 열자마자 메뉴가 펼쳐져 있던 문제) */
.more_opt {
    display: none;                     /* ← 숨김이 기본 */
    position: absolute; top: 45px; right: 0; z-index: 999;
    background: #16233f !important; border: 1px solid rgba(255,255,255,.14) !important;
    border-radius: 12px !important; overflow: hidden; padding: 6px !important;
    box-shadow: 0 16px 40px rgba(0,0,0,.5) !important; }
/* 화살표 꼬리도 다크 톤으로 */
.more_opt:before { border-color: transparent transparent rgba(255,255,255,.14) transparent !important; }
.more_opt:after { border-color: transparent transparent #16233f transparent !important; }
.more_opt li { background: transparent !important; width: auto !important;
    float: none !important; margin: 0 !important; text-align: left !important;
    list-style: none !important; }
.more_opt li button, .more_opt li a {
    display: flex; align-items: center; gap: 8px;   /* !important 를 빼야 부모 숨김이 산다 */
    box-sizing: border-box; width: 100% !important; height: 42px; padding: 0 14px !important;
    border: 0 !important; border-radius: 9px !important; cursor: pointer;
    background: transparent !important; color: rgba(255,255,255,.85) !important;
    font-family: inherit; font-size: 13.5px; font-weight: 700;
    text-align: left !important; white-space: nowrap;
}
.more_opt li button:hover, .more_opt li a:hover {
    background: #243352 !important; color: #ffb020 !important; }

/* 검색 팝업 — 평소엔 숨어 있다가 돋보기를 누르면 열린다.
   (기본 스킨의 display:none 규칙을 여기서 이어받는다) */
.bo_sch_wrap { display: none; position: fixed; inset: 0;
    width: 100%; height: 100%; z-index: 999;
    background: rgba(8,11,18,.72) !important; }
.bo_sch_wrap.show, .bo_sch_wrap[style*="block"] { display: block; }
.bo_sch {
    background: #16233f !important; border: 1px solid rgba(255,255,255,.14) !important;
    border-radius: 16px !important; box-shadow: 0 24px 60px rgba(0,0,0,.55) !important;
    width: min(92vw, 380px) !important; max-height: none !important;
    margin-left: 0 !important; margin-top: 0 !important;
    left: 50% !important; top: 50% !important; transform: translate(-50%,-50%) !important;
    padding: 22px !important;
}
.bo_sch h3, .bo_sch legend { color: #fff !important; font-size: 17px; font-weight: 800;
    margin-bottom: 14px !important; }
.bo_sch select, .bo_sch input[type=text] {
    box-sizing: border-box; width: 100% !important; height: 46px !important;
    padding: 0 14px !important; margin-bottom: 10px; border-radius: 10px !important;
    background: #0c1424 !important; color: #fff !important;
    border: 1px solid rgba(255,255,255,.14) !important; font-size: 14.5px;
}
.bo_sch .btn_submit, .bo_sch input[type=submit], .bo_sch button[type=submit] {
    box-sizing: border-box; width: 100% !important; height: 48px !important;
    border: 0 !important; border-radius: 10px !important; cursor: pointer;
    background: #ffb020 !important; color: #0c1424 !important;
    font-size: 15px; font-weight: 800;
}
.bo_sch_cls, .bo_sch .bo_sch_cls {
    display: inline-flex !important; align-items: center; justify-content: center;
    width: 38px !important; height: 38px !important; padding: 0 !important;
    border-radius: 10px !important; cursor: pointer;
    background: #243352 !important; color: rgba(255,255,255,.85) !important;
    border: 1px solid rgba(255,255,255,.14) !important;
    position: absolute; top: 14px; right: 14px;
}
.bo_sch_cls:hover { background: #ffb020 !important; color: #0c1424 !important; }

/* 체크박스 — 흰 네모로 뜨던 문제 */
.chk_box input[type=checkbox] + label span,
.write_div .chk_box input[type=checkbox] + label span,
.bo_vc_w .chk_box input[type=checkbox] + label span {
    background: #0c1424 !important; border: 1px solid rgba(255,255,255,.25) !important;
    border-radius: 4px !important;
}
.chk_box input[type=checkbox]:checked + label span {
    background: #ffb020 !important; border-color: #ffb020 !important; }
.btn_bo_user li { background: transparent !important; width: auto !important; }
.bo_notice td { background: rgba(255,176,32,.05) !important;
    border-bottom: 1px solid rgba(255,255,255,.07) !important; }

/* 서식 편집기 — 밝은 테마라 다크 화면에서 튄다. 단순 입력으로 통일 */
.smarteditor2, #smart_editor2, .se2_inputarea { border-radius: 10px; overflow: hidden; }

/* 댓글 접기/펼치기 버튼 — 흰 막대로 뜨던 문제 */
.cmt_btn, button.cmt_btn, .cmt_btn_op {
    display: inline-flex !important; align-items: center; gap: 7px;
    width: auto !important; height: 40px; padding: 0 15px !important; margin: 0 0 12px !important;
    border-radius: 10px !important; cursor: pointer;
    background: #16233f !important; color: rgba(255,255,255,.85) !important;
    border: 1px solid rgba(255,255,255,.12) !important;
    font-family: inherit; font-size: 13.5px; font-weight: 700; line-height: 1;
}
.cmt_btn:hover { background: #1d2d4f !important; color: #fff !important; }
.cmt_btn:after, .cmt_btn:before { background: transparent !important; }

/* ═══ 마무리 정리 ═══════════════════════════════════════════════ */

/* 「댓글 0」은 제목이지 버튼이 아니다. 앞서 버튼 모양이 붙어 떠 보이던 것 해제 */
#bo_vc h2, #bo_vc h2.cmt_btn, h2.cmt_btn {
    display: block !important; background: transparent !important;
    border: 0 !important; border-radius: 0 !important;
    padding: 0 !important; margin: 0 0 14px !important; height: auto !important;
    font-size: 16px; font-weight: 800; color: #fff !important; cursor: default;
}
#bo_vc h2 .total, #bo_vc h2 .cnt_cmt {
    margin-left: 5px; color: #ffb020 !important; font-weight: 800; }

/* 이전글·다음글 — 마우스를 올리면 흰 배경이 되어 글씨가 사라지던 문제 */
#bo_v_nb, .bo_v_nb { list-style: none; margin: 18px 0 0; padding: 0; }
#bo_v_nb li, .bo_v_nb li {
    background: transparent !important;
    border-bottom: 1px solid rgba(255,255,255,.07) !important; }
#bo_v_nb li:hover, .bo_v_nb li:hover,
#bo_v_nb a:hover, .bo_v_nb a:hover {
    background: rgba(255,176,32,.07) !important; }
#bo_v_nb a, .bo_v_nb a {
    display: flex; align-items: center; gap: 10px;
    padding: 13px 12px; border-radius: 9px;
    color: rgba(255,255,255,.82) !important; font-size: 14px; }
#bo_v_nb a:hover, .bo_v_nb a:hover { color: #ffb020 !important; }
#bo_v_nb .nb_date, .bo_v_nb .nb_date {
    margin-left: auto; color: rgba(255,255,255,.45) !important; font-size: 12.5px; }

@media (max-width: 640px) {
    #bo_w .btn_confirm { flex-direction: column-reverse; }
    #bo_w .btn_confirm .btn_submit,
    #bo_w .btn_confirm .btn_cancel { width: 100%; min-width: 0; }
}

/* 링크·파일 이름표 — 아이콘만 있어 무엇을 넣는 칸인지 몰랐던 문제 */
#bo_w .bo_w_link label, #bo_w .file_wr label.lb_icon {
    flex: none; display: inline-flex !important; align-items: center; gap: 7px;
    min-width: 78px; font-size: 12.5px; font-weight: 700;
    color: rgba(255,255,255,.6) !important; white-space: nowrap;
}
/* 작성완료 버튼이 화면을 다 차지하던 문제 — 취소와 같은 규격으로 */
#bo_w .btn_confirm .btn_submit { flex: 0 0 auto !important; width: auto !important; }
#bo_w .btn_confirm .btn_submit.btn { width: auto !important; }

/* ═══ 글쓴이 아이콘(아바타) — 흰 원이 다크 화면에서 튀던 문제 ═══ */
#bo_v_info .pf_img, #bo_v_info .profile_img,
#bo_vc .pf_img, .pf_img img, .profile_img img,
.member_img, .na_image {
    background: #16233f !important; border: 1px solid rgba(255,255,255,.12) !important;
    border-radius: 50% !important; overflow: hidden;
}
/* 기본 사람 그림은 회색조로 낮춰 배경에 묻히게 */
#bo_v_info .pf_img img, #bo_vc .pf_img img,
.pf_img img[src*="no_profile"], .pf_img img[src*="profile"] {
    opacity: .45; filter: grayscale(1) brightness(1.4);
}
#bo_v_info { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
#bo_v_info .sv_member, #bo_v_info .member { color: rgba(255,255,255,.85) !important; font-weight: 700; }

/* 「댓글 0」 아래 파란 밑줄 제거 */
#bo_vc h2:after, #bo_vc h2:before,
h2.cmt_btn:after, h2.cmt_btn:before { display: none !important; content: none !important; }
#bo_vc h2 { border-bottom: 0 !important; box-shadow: none !important; }

/* 이전글·다음글 — 제목과 날짜가 따로 떨어지던 문제 (한 줄로 모은다) */
#bo_v_nb li, .bo_v_nb li { display: block; }
#bo_v_nb li a, .bo_v_nb li a {
    display: flex !important; align-items: center; gap: 10px; width: 100%;
    padding: 13px 12px; box-sizing: border-box;
}
#bo_v_nb .nb_tit, .bo_v_nb .nb_tit { flex: none; color: rgba(255,255,255,.5) !important;
    font-size: 12.5px; min-width: 56px; }
#bo_v_nb .nb_date, .bo_v_nb .nb_date { margin-left: auto !important; flex: none; }

/* ═══ 마지막 정리 ═══════════════════════════════════════════════ */

/* 아바타가 타원으로 늘어나던 문제 — 정사각으로 고정 */
#bo_v_info .pf_img, #bo_vc .pf_img, .pf_img {
    flex: 0 0 auto !important;
    width: 44px !important; height: 44px !important;
    min-width: 44px; max-width: 44px;
    display: inline-flex !important; align-items: center; justify-content: center;
    border-radius: 50% !important; overflow: hidden;
    background: #16233f !important; border: 1px solid rgba(255,255,255,.12) !important;
}
#bo_v_info .pf_img img, #bo_vc .pf_img img, .pf_img img {
    width: 100% !important; height: 100% !important; object-fit: cover;
    opacity: .45; filter: grayscale(1) brightness(1.4);
}

/* 「댓글목록」처럼 화면에 필요 없는 안내 제목이 파란 막대로 보이던 문제.
   화면에서 감추되 읽기 도구에는 남긴다. */
#bo_vc h2, #bo_vc_w h2, .bo_vc_w h2 {
    position: absolute !important; width: 1px !important; height: 1px !important;
    padding: 0 !important; margin: -1px !important; overflow: hidden !important;
    clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important;
}
/* 댓글 개수는 본문 위에 따로 보여준다 */
#bo_vc { border-top: 1px solid rgba(255,255,255,.1); padding-top: 22px; margin-top: 26px; }

/* ═══ 분류(카테고리) 칩 — 흰 배경에 흰 글씨로 안 보이던 문제 ═══ */
#bo_cate ul, .bo_cate ul { list-style:none; display:flex; gap:7px; flex-wrap:wrap; margin:0 0 16px; padding:0 }
#bo_cate li, .bo_cate li { margin:0 }
#bo_cate a, .bo_cate a, [class*=cate] > ul > li > a {
    display:inline-flex; align-items:center; box-sizing:border-box;
    height:38px; padding:0 16px; border-radius:999px;
    font-size:13px; font-weight:700; white-space:nowrap;
    color:rgba(255,255,255,.75) !important;
    background:#16233f !important;
    border:1px solid rgba(255,255,255,.12) !important;
}
#bo_cate a:hover, .bo_cate a:hover { background:#1d2d4f !important; color:#fff !important }
/* 현재 선택된 분류 = 노랑 + 검은 글씨 */
#bo_cate #bo_cate_on, #bo_cate a.bo_cate_on, .bo_cate a.bo_cate_on,
#bo_cate li.on > a, .bo_cate li.on > a {
    background:#ffb020 !important; color:#0c1424 !important;
    border-color:#ffb020 !important; font-weight:800 !important;
}
@media (max-width:640px){
    #bo_cate a, .bo_cate a { height:36px; padding:0 13px; font-size:12.5px }
}

/* ── 스크롤 막대 — 어두운 화면에 맞춘다 ──────────────────────
   기본 막대는 밝은 회색이라 검은 바탕에서 튀었다.
   글상자·표·긴 목록 등 스크롤이 생기는 모든 곳에 적용한다. */
#bo_w textarea, .lgw-f textarea, .lg-tablewrap, .mng-tabs,
.hsp-story, .pfv-content, #bo_v_con, .tbl_wrap {
    scrollbar-width: thin;                       /* 파이어폭스 */
    scrollbar-color: rgba(255,255,255,.22) transparent;
}
#bo_w textarea::-webkit-scrollbar,
.lgw-f textarea::-webkit-scrollbar,
.lg-tablewrap::-webkit-scrollbar,
.tbl_wrap::-webkit-scrollbar,
#bo_v_con::-webkit-scrollbar { width: 10px; height: 10px; }

#bo_w textarea::-webkit-scrollbar-track,
.lgw-f textarea::-webkit-scrollbar-track,
.lg-tablewrap::-webkit-scrollbar-track,
.tbl_wrap::-webkit-scrollbar-track,
#bo_v_con::-webkit-scrollbar-track { background: transparent; }

#bo_w textarea::-webkit-scrollbar-thumb,
.lgw-f textarea::-webkit-scrollbar-thumb,
.lg-tablewrap::-webkit-scrollbar-thumb,
.tbl_wrap::-webkit-scrollbar-thumb,
#bo_v_con::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,.20);
    border-radius: 999px;
    border: 2px solid transparent;
    background-clip: padding-box;
}
#bo_w textarea::-webkit-scrollbar-thumb:hover,
.lgw-f textarea::-webkit-scrollbar-thumb:hover,
.lg-tablewrap::-webkit-scrollbar-thumb:hover,
.tbl_wrap::-webkit-scrollbar-thumb:hover,
#bo_v_con::-webkit-scrollbar-thumb:hover { background: rgba(240,180,41,.55); background-clip: padding-box; }

/* 오른쪽 아래 크기조절 손잡이도 눈에 덜 띄게 */
#bo_w textarea::-webkit-resizer,
.lgw-f textarea::-webkit-resizer { background: transparent; }
