@charset "utf-8";

/* ========================================================
   ONCAP 공통 게시판 UI/UX 전면 개선 CSS (2026)
   - 네이버/당근마켓 스타일 최신 UI
   - 반응형 및 모바일 최적화
======================================================== */

/* 1. 공통 컨테이너 (.board-wrap) */
.board-wrap {
    position: relative;
    width: 100% !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 32px 24px;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.06);
    box-sizing: border-box;
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.board-wrap *, .board-wrap *::before, .board-wrap *::after {
    box-sizing: border-box;
}

/* 2. 게시판 상단 헤더 (.board-header) */
.board-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 2px solid #F1F5F9;
}

.board-title-area {
    display: flex;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
}

.board-title {
    font-size: 26px;
    font-weight: 800;
    color: #0F172A;
    margin: 0;
    letter-spacing: -0.5px;
}

.board-total {
    font-size: 14px;
    color: #64748B;
    font-weight: 600;
}

.board-tools {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* 3. 검색 영역 (.board-search) */
.board-search {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.board-search-select {
    height: 42px;
    border-radius: 8px;
    border: 1px solid #E5E7EB;
    padding: 0 12px;
    font-size: 14px;
    color: #334155;
    background: #fff;
    outline: none;
    transition: border-color 0.2s;
}

.board-search-select:focus {
    border-color: #2563EB;
}

.board-search-input {
    width: 200px;
    height: 42px;
    border-radius: 8px;
    border: 1px solid #E5E7EB;
    padding: 0 14px;
    font-size: 14px;
    color: #1E293B;
    background: #fff;
    outline: none;
    transition: all 0.2s;
}

.board-search-input:focus {
    border-color: #2563EB;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    width: 230px;
}

.board-search-btn {
    height: 42px;
    padding: 0 16px;
    border-radius: 8px;
    background: #F8FAFC;
    border: 1px solid #E5E7EB;
    color: #374151;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
    white-space: nowrap;
}

.board-search-btn:hover {
    background: #F1F5F9;
    color: #0F172A;
    border-color: #CBD5E1;
}

/* 4. 공통 버튼 (.board-btn) */
.board-btns {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.board-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 42px;
    padding: 10px 18px !important;
    border-radius: 8px !important;
    font-size: 14px;
    font-weight: 600 !important;
    text-decoration: none !important;
    cursor: pointer;
    transition: all 0.2s ease !important;
    border: 0;
    gap: 6px;
    white-space: nowrap;
    line-height: 1;
    box-shadow: none !important;
    float: none !important;
    width: auto !important;
}

.board-btn-primary {
    background: #2563EB !important;
    color: #ffffff !important;
}

.board-btn-primary:hover {
    background: #1D4ED8 !important;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25) !important;
}

.board-btn-ghost {
    background: #F8FAFC !important;
    color: #475569 !important;
    border: 1px solid #E5E7EB !important;
}

.board-btn-ghost:hover {
    background: #F1F5F9 !important;
    color: #0F172A !important;
    border-color: #CBD5E1 !important;
}

.board-btn-danger {
    background: #FEF2F2 !important;
    color: #DC2626 !important;
    border: 1px solid #FECACA !important;
}

.board-btn-danger:hover {
    background: #FEE2E2 !important;
    color: #B91C1C !important;
}

/* 관리자 옵션 메뉴 */
.board-btn-more-wrap {
    position: relative;
    display: inline-block;
}

.more_opt {
    display: none;
    position: absolute;
    top: 48px;
    right: 0;
    background: #fff;
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    z-index: 999;
    min-width: 130px;
    padding: 6px 0;
    list-style: none;
    margin: 0;
}

.more_opt li {
    margin: 0;
    padding: 0;
    width: 100%;
}

.more_opt li button, .more_opt li a {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 10px 16px;
    border: 0;
    background: transparent;
    color: #475569;
    font-size: 13px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    text-decoration: none;
}

.more_opt li:hover button, .more_opt li:hover a {
    background: #F8FAFC;
    color: #0F172A;
}

/* 5. 게시판 테이블 (.board-table) */
.board-table {
    width: 100%;
    overflow-x: auto;
    margin-bottom: 24px;
}

.board-table table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    table-layout: fixed;
}

.board-table thead th {
    background: #F8FAFC;
    color: #334155;
    font-size: 14px;
    font-weight: 700;
    padding: 14px 12px;
    height: 56px;
    border-top: 1px solid #E5E7EB;
    border-bottom: 1px solid #E5E7EB;
    text-align: center;
    white-space: nowrap;
}

.board-table tbody td {
    padding: 14px 12px;
    height: 56px;
    border-bottom: 1px solid #E5E7EB;
    color: #1E293B;
    font-size: 15px;
    text-align: center;
    vertical-align: middle;
    transition: background-color 0.15s;
}

.board-table tbody tr:hover td {
    background: #F9FBFF;
}

/* 공지사항 행 하이라이트 */
.board-table tbody tr.bo_notice td {
    background: #FFFBF5;
    border-bottom-color: #FEEBD0;
}

.board-table tbody tr.bo_notice:hover td {
    background: #FFF7ED;
}

.notice_icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    border-radius: 6px;
    background: #F97316;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}

/* 테이블 각 열 너비 기본값 */
.board-table .td_chk_th { width: 44px; }
.board-table .td_num_th { width: 70px; }
.board-table .td_img_th { width: 90px; }
.board-table .td_name_th { width: 120px; }
.board-table .td_hit_th { width: 80px; }
.board-table .td_good_th { width: 70px; }
.board-table .td_nogood_th { width: 70px; }
.board-table .td_datetime_th { width: 110px; }

.board-table .td_subject {
    text-align: left !important;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.board-table .bo_tit {
    display: flex;
    align-items: center;
    gap: 6px;
    overflow: hidden;
}

.board-table .bo_tit a {
    color: #0F172A;
    font-weight: 600;
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color 0.15s;
}

.board-table .bo_tit a:hover {
    color: #2563EB;
}

.board-table .bo_cate_link {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    background: #EFF6FF;
    color: #2563EB;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    margin-right: 4px;
}

.board-table .new_icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 4px;
    background: #22C55E;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
}

.board-table .cnt_cmt {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 7px;
    border-radius: 10px;
    background: #F1F5F9;
    color: #2563EB;
    font-size: 12px;
    font-weight: 700;
}

/* 썸네일 열 지원 */
.board-list-thumb {
    display: block;
    width: 64px;
    height: 48px;
    border-radius: 6px;
    overflow: hidden;
    background: #F1F5F9;
    margin: 0 auto;
}

.board-list-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.board-list-thumb .no-thumb {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #94A3B8;
    font-size: 18px;
}

/* 6. 게시글 없음 (.board-empty) */
.board-empty {
    padding: 80px 20px !important;
    text-align: center !important;
    background: #ffffff !important;
}

.empty-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.empty-icon {
    font-size: 46px;
    line-height: 1;
    margin-bottom: 4px;
}

.empty-title {
    font-size: 18px;
    font-weight: 700;
    color: #1E293B;
    margin: 0;
}

.empty-sub {
    font-size: 14px;
    color: #64748B;
    margin: 0;
}

/* 7. 페이지네이션 및 푸터 (.board-footer) */
.board-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-top: 24px;
}

.board-footer-btns {
    display: flex;
    justify-content: flex-end;
    width: 100%;
    gap: 8px;
}

/* 그누보드 페이지네이션 스타일 오버라이드 */
.pg_wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 10px 0;
}

.pg {
    display: flex;
    align-items: center;
    gap: 6px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.pg_page, .pg_current {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    border-radius: 8px;
    border: 1px solid #E5E7EB;
    background: #ffffff;
    color: #475569;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.2s;
}

.pg_page:hover {
    background: #F8FAFC;
    color: #0F172A;
    border-color: #CBD5E1;
}

.pg_current {
    background: #2563EB !important;
    color: #ffffff !important;
    border-color: #2563EB !important;
}

/* 8. 게시글 보기 (#bo_v) */
.board-view-header {
    padding-bottom: 20px;
    border-bottom: 1px solid #E2E8F0;
    margin-bottom: 24px;
}

.board-view-title {
    font-size: 28px !important;
    font-weight: 700 !important;
    color: #0F172A;
    margin: 0 0 16px;
    line-height: 1.35;
    word-break: break-all;
}

.board-view-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    color: #64748B;
    font-size: 14px;
}

.board-view-meta .meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.board-view-meta strong {
    color: #334155;
    font-weight: 600;
}

.board-view-content {
    line-height: 1.8 !important;
    color: #1E293B;
    font-size: 16px;
    padding: 20px 0 40px;
    min-height: 250px;
    word-break: break-all;
}

.board-view-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

.board-view-file {
    margin: 20px 0;
    padding: 16px 20px;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
}

.board-view-file ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.board-view-file li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.board-view-file a {
    color: #2563EB;
    font-weight: 600;
    text-decoration: none;
}

.board-view-file a:hover {
    text-decoration: underline;
}

/* 9. 글쓰기 (#bo_w) */
#bo_w .write_div {
    margin-bottom: 18px;
}

#bo_w .frm_input {
    height: 44px;
    border-radius: 8px;
    border: 1px solid #CBD5E1;
    padding: 0 14px;
    font-size: 15px;
    color: #1E293B;
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

#bo_w .frm_input:focus {
    border-color: #2563EB;
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

#bo_w .wr_content {
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #CBD5E1;
}

#bo_w .btn_confirm {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #E2E8F0;
}

/* 카테고리 탭 */
#bo_cate {
    margin-bottom: 20px;
}

#bo_cate ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

#bo_cate a {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid #E2E8F0;
    background: #fff;
    color: #64748B;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

#bo_cate a:hover, #bo_cate #bo_cate_on {
    background: #2563EB;
    color: #ffffff;
    border-color: #2563EB;
}

/* 체크박스 커스텀 */
.selec_chk {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.chk_box label {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

.chk_box label span {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 1px solid #CBD5E1;
    border-radius: 4px;
    background: #fff;
    margin-right: 6px;
    position: relative;
    transition: all 0.2s;
}

.chk_box input[type="checkbox"]:checked + label span {
    background: #2563EB;
    border-color: #2563EB;
}

.chk_box input[type="checkbox"]:checked + label span::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 2px;
    width: 5px;
    height: 9px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* ========================================================
   11. 모바일 최적화 (768px 이하)
======================================================== */
@media (max-width: 768px) {
    .board-wrap {
        padding: 20px 14px !important;
        border-radius: 14px !important;
    }

    /* 번호, 조회, 작성자 숨김 */
    .board-table th.td_num_th, .board-table td.td_num2,
    .board-table th.td_hit_th, .board-table td.td_hit,
    .board-table th.td_name_th, .board-table td.td_name,
    .board-table th.td_good_th, .board-table td.td_good,
    .board-table th.td_nogood_th, .board-table td.td_nogood {
        display: none !important;
    }

    /* 상단 헤더 반응형 */
    .board-header {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
    }

    .board-title-area {
        justify-content: space-between;
    }

    .board-tools {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        gap: 10px;
    }

    /* 검색창 100% */
    .board-search {
        width: 100%;
        display: flex;
    }

    .board-search-select {
        width: 100px;
    }

    .board-search-input {
        flex: 1;
        width: auto !important;
    }

    /* 버튼 100% */
    .board-btns {
        width: 100%;
        display: flex;
    }

    .board-btn {
        flex: 1;
        text-align: center;
        justify-content: center !important;
    }

    .board-table thead th {
        padding: 10px 8px;
        font-size: 13px;
    }

    .board-table tbody td {
        padding: 12px 8px;
        font-size: 14px;
        height: 50px;
    }

    .board-view-title {
        font-size: 22px !important;
    }

    .board-view-meta {
        gap: 10px;
        font-size: 13px;
    }
}

/* ONCAP custom board header hardening: prevent vertical button/search collapse. */
.board-wrap,
.board-wrap .board-header,
.board-wrap .board-tools,
.board-wrap .board-search,
.board-wrap .board-btns,
.board-wrap .bo_fx {
    height: auto !important;
    min-height: 0 !important;
    writing-mode: horizontal-tb !important;
    text-orientation: mixed !important;
}

.board-wrap .board-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 16px !important;
    flex-wrap: wrap !important;
}

.board-wrap .board-tools {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 12px !important;
    flex-wrap: wrap !important;
    width: auto !important;
    max-width: 100% !important;
}

.board-wrap .board-search {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    flex-wrap: nowrap !important;
    width: auto !important;
    max-width: 100% !important;
}

.board-wrap .board-search-select,
.board-wrap .board-search-input,
.board-wrap .board-search-btn,
.board-wrap .board-btn {
    writing-mode: horizontal-tb !important;
    text-orientation: mixed !important;
    white-space: nowrap !important;
    line-height: 1 !important;
    box-sizing: border-box !important;
}

.board-wrap .board-search-input {
    width: 220px !important;
    min-width: 160px !important;
    max-width: 100% !important;
}

.board-wrap .board-search-btn,
.board-wrap .board-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    width: auto !important;
    min-width: max-content !important;
    min-height: 40px !important;
    padding: 10px 18px !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
}

.board-wrap .board-btn-primary {
    background: #2563eb !important;
    border-color: #2563eb !important;
    color: #fff !important;
    box-shadow: 0 8px 18px rgba(37, 99, 235, .18) !important;
}

.board-wrap .board-btn-primary:hover {
    background: #1d4ed8 !important;
    border-color: #1d4ed8 !important;
    color: #fff !important;
}

.board-wrap .board-table-wrap,
.board-wrap .tbl_head01.tbl_wrap {
    height: auto !important;
    min-height: 0 !important;
    overflow-x: auto !important;
}

.board-wrap .empty_table,
.board-wrap .board-empty {
    height: auto !important;
    min-height: 0 !important;
}

@media (max-width: 768px) {
    .board-wrap .board-header,
    .board-wrap .board-tools,
    .board-wrap .board-search,
    .board-wrap .board-btns {
        width: 100% !important;
        align-items: stretch !important;
        justify-content: flex-start !important;
    }

    .board-wrap .board-search {
        flex-wrap: wrap !important;
    }

    .board-wrap .board-search-select,
    .board-wrap .board-search-input,
    .board-wrap .board-search-btn,
    .board-wrap .board-btn {
        flex: 1 1 auto !important;
    }

    .board-wrap .board-search-input {
        width: 100% !important;
    }
}

/* ONCAP board full UI normalization: list, view, write, pagination. */
.board-wrap,
#bo_v,
#bo_w {
    box-sizing: border-box;
    width: 100% !important;
    max-width: 1200px;
    margin: 0 auto;
    height: auto !important;
    min-height: 0 !important;
}

.board-table-wrap,
.tbl_head01.tbl_wrap {
    height: auto !important;
    min-height: 0 !important;
    overflow-x: auto;
    border-radius: 12px;
}

.board-table,
.tbl_head01 table {
    width: 100%;
    border-collapse: collapse;
    table-layout: auto;
}

.board-table thead th,
.tbl_head01 thead th {
    height: 56px;
    padding: 14px 12px;
    background: #f8fafc !important;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb !important;
    color: #334155;
    font-weight: 800;
    vertical-align: middle;
    white-space: nowrap;
}

.board-table tbody td,
.tbl_head01 tbody td {
    height: 56px;
    padding: 14px 12px;
    border-bottom: 1px solid #e5e7eb !important;
    color: #334155;
    vertical-align: middle;
}

.board-table tbody tr:hover td,
.tbl_head01 tbody tr:hover td {
    background: #f9fbff !important;
}

.board-empty,
.empty_table {
    height: auto !important;
    min-height: 0 !important;
    padding: 44px 20px !important;
    color: #64748b;
    text-align: center;
    line-height: 1.6;
}

.board-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.board-empty::before {
    content: "\1F4C4";
    display: block;
    font-size: 30px;
    line-height: 1;
}

.board-empty strong {
    color: #0f172a;
    font-size: 18px;
    font-weight: 800;
}

.board-btn,
.btn_submit,
.btn_cancel,
.btn_b01,
.btn_b02,
#bo_v_top a,
#bo_w .btn_confirm .btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 40px;
    padding: 10px 18px !important;
    border-radius: 8px !important;
    box-sizing: border-box;
    font-size: 14px;
    font-weight: 700;
    line-height: 1 !important;
    text-align: center;
    text-decoration: none !important;
    white-space: nowrap !important;
    writing-mode: horizontal-tb !important;
    text-orientation: mixed !important;
}

.board-btn-primary,
.btn_submit,
.btn_b02,
.btn_write {
    background: #2563eb !important;
    border-color: #2563eb !important;
    color: #fff !important;
    box-shadow: 0 8px 18px rgba(37, 99, 235, .18);
}

.board-btn-primary:hover,
.btn_submit:hover,
.btn_b02:hover,
.btn_write:hover {
    background: #1d4ed8 !important;
    border-color: #1d4ed8 !important;
    color: #fff !important;
}

.board-btn-ghost,
.btn_cancel,
.btn_b01 {
    background: #fff !important;
    border: 1px solid #cbd5e1 !important;
    color: #334155 !important;
}

.board-btn-ghost:hover,
.btn_cancel:hover,
.btn_b01:hover {
    background: #f8fafc !important;
    color: #0f172a !important;
}

.pg_wrap,
.pg {
    float: none !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 24px auto 0 !important;
    text-align: center;
}

.pg a,
.pg strong,
.pg_page,
.pg_current {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    background: #fff;
    color: #475569;
    font-weight: 700;
    text-decoration: none;
    transition: all .18s ease;
}

.pg a:hover,
.pg_page:hover {
    border-color: #2563eb;
    color: #2563eb;
    background: #eff6ff;
}

.pg strong,
.pg_current {
    border-color: #2563eb !important;
    background: #2563eb !important;
    color: #fff !important;
}

#bo_v {
    padding: 28px 24px;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, .08);
    border-radius: 18px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, .06);
}

#bo_v_title,
.board-view-title {
    margin: 0 0 14px !important;
    color: #0f172a !important;
    font-size: 28px !important;
    font-weight: 800 !important;
    line-height: 1.35 !important;
    letter-spacing: -.03em;
}

#bo_v_info,
.board-view-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin: 0 0 20px;
    padding: 0 0 18px;
    border-bottom: 1px solid #e5e7eb;
    color: #64748b;
    font-size: 14px;
}

#bo_v_atc {
    min-height: 0 !important;
    height: auto !important;
}

#bo_v_con,
.board-view-content {
    min-height: 0 !important;
    padding: 24px 0;
    color: #1f2937;
    font-size: 16px;
    line-height: 1.8;
    word-break: keep-all;
}

#bo_v_top,
.bo_v_simple_btn,
.bo_v_simple_btn_bottom,
#bo_v .bo_v_nb {
    height: auto !important;
    min-height: 0 !important;
}

#bo_w {
    padding: 28px 24px;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, .08);
    border-radius: 18px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, .06);
}

#bo_w .write_div {
    margin-bottom: 14px;
}

#bo_w .frm_input,
#bo_w input[type="text"],
#bo_w input[type="password"],
#bo_w input[type="email"],
#bo_w input[type="file"],
#bo_w select {
    min-height: 44px;
    border: 1px solid #cbd5e1 !important;
    border-radius: 8px !important;
    box-sizing: border-box;
    color: #0f172a;
    outline: none;
}

#bo_w textarea,
#bo_w .cke,
#bo_w .smarteditor2,
#bo_w iframe {
    border-radius: 10px !important;
}

#bo_w .frm_input:focus,
#bo_w input:focus,
#bo_w select:focus,
#bo_w textarea:focus {
    border-color: #2563eb !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}

#bo_w .btn_confirm,
#bo_w .btn_confirm.write_div {
    display: flex !important;
    align-items: center;
    justify-content: flex-end !important;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 22px;
    text-align: right;
}

@media (max-width: 768px) {
    .board-wrap,
    #bo_v,
    #bo_w {
        padding: 18px 12px !important;
        border-radius: 14px;
    }

    .board-table th.td_num_th,
    .board-table td.td_num2,
    .board-table th.td_hit_th,
    .board-table td.td_hit,
    .board-table th.td_name_th,
    .board-table td.td_name,
    .tbl_head01 thead th:nth-child(1),
    .tbl_head01 tbody .td_num2,
    .tbl_head01 thead th:nth-child(3),
    .tbl_head01 tbody .td_name,
    .tbl_head01 thead th:nth-child(4),
    .tbl_head01 tbody .td_num {
        display: none !important;
    }

    #bo_v_title,
    .board-view-title {
        font-size: 22px !important;
    }

    #bo_v_info,
    .board-view-meta {
        gap: 8px;
        font-size: 13px;
    }

    #bo_w .btn_confirm,
    #bo_w .btn_confirm.write_div {
        justify-content: stretch !important;
    }

    #bo_w .btn_confirm .btn,
    #bo_w .btn_confirm button,
    #bo_w .btn_confirm a,
    .board-btn,
    .btn_submit,
    .btn_cancel {
        flex: 1 1 auto;
        width: 100%;
    }
}

