@charset "utf-8";

/* ========================================
   그누보드 5.6 - 코어 호환 CSS
   Bootstrap과 무관한 그누보드 필수 스타일
   ======================================== */

/* ----------------------------------------
   접근성 (Accessibility)
   ---------------------------------------- */

.sound_only,
.msg_sound_only {
    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;
}

#skip_to_container a {
    position: absolute;
    top: -9999px;
    left: 0;
    z-index: 100000;
    padding: 12px 20px;
    background: #212529;
    color: #fff;
    text-decoration: none;
    font-weight: 500;
}

#skip_to_container a:focus,
#skip_to_container a:active {
    top: 0;
    width: 100%;
    height: auto;
    text-align: center;
}

#hd_login_msg {
    position: absolute;
    top: -9999px;
    left: -9999px;
}

#hd_pop h2,
#hd_h1,
legend {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ----------------------------------------
   유틸리티 클래스
   ---------------------------------------- */

.is-hidden { display: none !important; }
.is-visible { display: block !important; }

.pc-only { display: none; }
@media (min-width: 769px) { .pc-only { display: block !important; } }

.mobile-only { display: block; }
@media (min-width: 769px) { .mobile-only { display: none !important; } }

/* ----------------------------------------
   캡챠 (자동등록방지)
   ---------------------------------------- */

#captcha {
    display: inline-block;
    position: relative;
}

#captcha #captcha_img {
    height: 40px;
    border: 1px solid #898989;
    vertical-align: top;
}

#captcha #captcha_mp3 {
    width: 40px;
    height: 40px;
    border: 0;
    background: url('../img/captcha2.png') no-repeat;
    text-indent: -999px;
    overflow: hidden;
    cursor: pointer;
    vertical-align: middle;
}

#captcha #captcha_reload {
    width: 40px;
    height: 40px;
    border: 0;
    background: url('../img/captcha2.png') no-repeat 0 -40px;
    text-indent: -999px;
    overflow: hidden;
    cursor: pointer;
    vertical-align: middle;
}

#captcha #captcha_key {
    margin-left: 3px;
    padding: 0 5px;
    width: 90px;
    height: 40px;
    border: 1px solid #ced4da;
    background: #fff;
    font-size: 1.1em;
    font-weight: bold;
    text-align: center;
    border-radius: 4px;
    vertical-align: top;
}

#captcha #captcha_info {
    display: block;
    margin-top: 5px;
    font-size: 0.95em;
}

/* 모바일 캡챠 */
#captcha.m_captcha audio {
    display: block;
    margin-bottom: 5px;
    width: 187px;
}

#captcha.m_captcha #captcha_img {
    display: block;
    width: 160px;
    height: 60px;
    margin: 5px 0 3px;
}

/* ----------------------------------------
   사이드뷰 (회원정보 팝업) — Clean Portal
   ---------------------------------------- */

.sv_wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    font-weight: var(--gb-font-normal, 400);
}

.sv_wrap > .sv_member,
.sv_wrap > .sv_guest {
    display: inline-flex;
    align-items: center;
    gap: 0.35em;
    color: var(--gb-gray-700, #374151);
    text-decoration: none;
    cursor: pointer;
    overflow: visible;
    white-space: normal;
    text-overflow: clip;
    font-weight: var(--gb-font-normal, 400);
    transition: color 150ms ease;
}

.sv_wrap > .sv_member:hover,
.sv_wrap > .sv_guest:hover {
    color: var(--gb-primary, #2563eb);
}

.sv_wrap > .sv_member .profile_img,
.sv_wrap > .sv_guest .profile_img {
    display: inline-flex;
    flex-shrink: 0;
}

.sv_wrap > .sv_member .profile_img img,
.sv_wrap > .sv_guest .profile_img img {
    border-radius: 50%;
    object-fit: cover;
    vertical-align: middle;
}

.sv_wrap .sv {
    z-index: 1000;
    display: none;
    white-space: normal;
    min-width: 170px;
    padding: var(--gb-space-1, 4px) 0;
    background: var(--gb-surface-card, #fff);
    border: 1px solid var(--gb-gray-200, #e5e7eb);
    border-radius: var(--gb-radius-lg, 8px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12), 0 1px 3px rgba(0, 0, 0, 0.08);
}

.sv_wrap .sv::before {
    content: "";
    position: absolute;
    top: -7px;
    left: var(--sv-arrow-left, 18px);
    border-width: 0 7px 7px 7px;
    border-style: solid;
    border-color: transparent transparent var(--gb-gray-200, #e5e7eb) transparent;
}

.sv_wrap .sv::after {
    content: "";
    position: absolute;
    top: -6px;
    left: calc(var(--sv-arrow-left, 18px) + 1px);
    border-width: 0 6px 6px 6px;
    border-style: solid;
    border-color: transparent transparent var(--gb-surface-card, #fff) transparent;
}

/* 위로 펼침 (뷰포트 하단 넘침 시) */
.sv_flip.sv_on::before {
    top: auto;
    bottom: -7px;
    border-width: 7px 7px 0 7px;
    border-color: var(--gb-gray-200, #e5e7eb) transparent transparent transparent;
}

.sv_flip.sv_on::after {
    top: auto;
    bottom: -6px;
    border-width: 6px 6px 0 6px;
    border-color: var(--gb-surface-card, #fff) transparent transparent transparent;
}

.sv_wrap .sv a {
    display: flex;
    align-items: center;
    gap: var(--gb-space-2, 8px);
    width: auto;
    padding: var(--gb-space-2, 8px) var(--gb-space-3, 12px);
    font-size: var(--gb-font-sm, 0.875rem);
    font-weight: var(--gb-font-normal, 400);
    line-height: var(--gb-leading-normal, 1.5);
    color: var(--gb-gray-600, #4b5563);
    text-decoration: none;
    overflow: visible;
    white-space: normal;
    text-overflow: clip;
    transition: background 150ms ease, color 150ms ease;
}

.sv_wrap .sv a:hover {
    background: var(--gb-primary-light, #eff6ff);
    color: var(--gb-primary, #2563eb);
}

.sv_wrap .sv a i {
    width: 1em;
    flex-shrink: 0;
    text-align: center;
    font-size: 0.9em;
    color: var(--gb-gray-400, #9ca3af);
    transition: color 150ms ease;
}

.sv_wrap .sv a:hover i {
    color: var(--gb-primary, #2563eb);
}

.sv_wrap .sv a.sv-admin {
    border-top: 1px solid var(--gb-gray-100, #f3f4f6);
}

.sv_wrap .sv a.sv-admin:first-of-type,
.sv_wrap .sv a.sv-admin:not(.sv-admin + .sv-admin) {
    margin-top: var(--gb-space-1, 4px);
}

.sv_wrap .sv a.sv-admin i {
    color: var(--gb-warning, #d97706);
}

.sv_wrap .sv a.sv-admin:hover {
    background: rgba(217, 119, 6, 0.08);
    color: var(--gb-warning, #d97706);
}

.sv_wrap .sv a.sv-admin:hover i {
    color: var(--gb-warning, #d97706);
}

.sv_on {
    display: block !important;
    position: fixed;
    z-index: 1050;
}

.sv_nojs .sv { display: block; }

/* 사이드뷰 다크 모드 */
[data-theme="dark"] .sv_wrap .sv {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), 0 1px 4px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .sv_wrap .sv::before {
    border-color: transparent transparent var(--gb-gray-300) transparent;
}

[data-theme="dark"] .sv_flip.sv_on::before {
    border-color: var(--gb-gray-300) transparent transparent transparent;
}

[data-theme="dark"] .sv_wrap .sv a.sv-admin:hover {
    background: rgba(210, 153, 34, 0.15);
}

/* ----------------------------------------
   에디터 콘텐츠
   ---------------------------------------- */

#bo_v_con ul {
    display: block;
    list-style-type: disc;
    margin: 1em 0;
    padding-left: 40px;
}

#bo_v_con ol {
    display: block;
    list-style-type: decimal;
    margin: 1em 0;
    padding-left: 40px;
}

#bo_v_con li {
    display: list-item;
}

/* ----------------------------------------
   팝업 레이어 — app/newwin.inc.php 인라인 스타일로 이전 (20260225)
   ---------------------------------------- */

/* ----------------------------------------
   검색결과 강조
   ---------------------------------------- */

.sch_word {
    color: #fff;
    background: #dc3545;
    padding: 2px 6px;
    border-radius: 3px;
    margin: 0 2px;
}

/* ----------------------------------------
   폼 요소
   ---------------------------------------- */

.required,
textarea.required {
    background-image: url('../img/require.png') !important;
    background-repeat: no-repeat !important;
    background-position: right top !important;
}

.frm_input {
    height: 40px;
    padding: 5px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    background: #fff;
    vertical-align: middle;
}

.frm_input:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
    outline: 0;
}

.full_input { width: 100%; }
.half_input { width: 49.5%; }

.frm_info {
    display: block;
    padding-bottom: 5px;
    line-height: 1.4em;
}

.frm_info.add_info {
    margin-top: 10px !important;
    padding: 8px 12px;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    line-height: 1.6;
}

.btn_info_toggle {
    display: block;
    margin: 5px 0 0 21px;
    font-size: 12px;
    color: #0d6efd;
    background: none;
    border: none;
    cursor: pointer;
    text-decoration: underline;
}

/* ----------------------------------------
   상태 메시지
   ---------------------------------------- */

.empty_table {
    padding: 50px 0 !important;
    text-align: center;
    color: #6c757d;
}

.empty_list {
    padding: 20px 0 !important;
    text-align: center;
    color: #6c757d;
}

/* ----------------------------------------
   버튼
   ---------------------------------------- */

/* 그누보드 기본 버튼 */
.btn_b01 {
    display: inline-block;
    color: #adb5bd;
    text-decoration: none;
    vertical-align: middle;
    border: 0;
    background: transparent;
}

.btn_b01:hover { color: #212529; }

.btn_b02 {
    display: inline-block;
    padding: 0 10px;
    background: #0d6efd;
    color: #fff;
    text-decoration: none;
    border: 0;
    vertical-align: middle;
}

.btn_b02:hover { background: #0b5ed7; }

.btn_b03 {
    display: inline-block;
    background: #fff;
    border: 1px solid #ced4da;
    color: #495057;
    text-decoration: none;
    vertical-align: middle;
}

.btn_b03:hover { background: #f8f9fa; }

.btn_b04 {
    display: inline-block;
    background: #fff;
    border: 1px solid #ced4da;
    color: #6c757d;
    text-decoration: none;
    vertical-align: middle;
}

.btn_b04:hover {
    color: #212529;
    background: #f8f9fa;
}

.btn_admin {
    display: inline-block;
    color: #dc3545;
    text-decoration: none;
    vertical-align: middle;
}

.btn_admin:hover { color: #b02a37; }

.btn_submit {
    border: 0;
    background: #0d6efd;
    color: #fff;
    cursor: pointer;
    border-radius: 4px;
}

.btn_submit:hover { background: #0b5ed7; }

.btn_close {
    border: 1px solid #ced4da;
    background: #fff;
    cursor: pointer;
    border-radius: 4px;
}

a.btn_close {
    text-align: center;
    line-height: 50px;
}

.btn_cancel {
    display: inline-block;
    background: #6c757d;
    color: #fff;
    text-decoration: none;
    vertical-align: middle;
}

.btn_cancel:hover { background: #5c636a; }

.btn_frmline {
    display: inline-block;
    width: 128px;
    height: 40px;
    padding: 0 5px;
    border: 0;
    background: #343a40;
    border-radius: 4px;
    color: #fff;
    text-decoration: none;
    vertical-align: top;
}

.btn_confirm { text-align: right; }

/* ----------------------------------------
   테이블
   ---------------------------------------- */

.tbl_wrap table {
    width: 100%;
    border-collapse: collapse;
}

.tbl_wrap caption {
    padding: 10px 0;
    font-weight: bold;
    text-align: left;
}

/* 기본 테이블 */
.tbl_head01 { margin-bottom: 10px; }

.tbl_head01 caption {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

.tbl_head01 thead th {
    padding: 15px 0;
    font-weight: 600;
    text-align: center;
    border-bottom: 2px solid #dee2e6;
    background: #f8f9fa;
}

.tbl_head01 tbody th {
    padding: 8px 0;
    border-bottom: 1px solid #dee2e6;
}

.tbl_head01 td {
    padding: 12px 5px;
    border-bottom: 1px solid #dee2e6;
    color: #495057;
    line-height: 1.4em;
    word-break: break-all;
}

.tbl_head01 tbody tr:hover td {
    background: #f8f9fa;
}

.tbl_head01 a:hover { text-decoration: underline; }

/* 폼 테이블 */
.tbl_frm01 { margin-bottom: 20px; }

.tbl_frm01 table {
    width: 100%;
    border-collapse: collapse;
}

.tbl_frm01 th {
    width: 120px;
    padding: 10px 15px;
    border: 1px solid #dee2e6;
    border-left: 0;
    background: #f8f9fa;
    text-align: left;
    font-weight: 600;
}

.tbl_frm01 td {
    padding: 10px;
    border-top: 1px solid #dee2e6;
    border-bottom: 1px solid #dee2e6;
}

.tbl_frm01 textarea {
    width: 100%;
    height: 100px;
    padding: 8px;
    border: 1px solid #ced4da;
    border-radius: 4px;
}

.tbl_frm01 .frm_file {
    display: block;
    margin-bottom: 5px;
}

/* 테이블 항목별 너비 */
.td_board { width: 80px; text-align: center; }
.td_category { width: 80px; text-align: center; }
.td_chk { width: 30px; text-align: center; }
.td_date { width: 60px; text-align: center; }
.td_datetime { width: 110px; text-align: center; }
.td_group { width: 80px; text-align: center; }
.td_mb_id { width: 100px; text-align: center; }
.td_mng { width: 80px; text-align: center; }
.td_name { width: 100px; text-align: left; }
.td_nick { width: 100px; text-align: center; }
.td_num { width: 50px; text-align: center; }
.td_numbig { width: 80px; text-align: center; }
.td_stat { width: 60px; text-align: center; }

/* ----------------------------------------
   리스트
   ---------------------------------------- */

.list_01 ul {
    border-top: 1px solid #dee2e6;
}

.list_01 li {
    padding: 10px 15px;
    border-bottom: 1px solid #dee2e6;
    background: #fff;
    list-style: none;
    position: relative;
}

.list_01 li:nth-child(odd) {
    background: #f8f9fa;
}

.list_01 li::after {
    display: block;
    clear: both;
    content: "";
}

.list_01 li:hover {
    background: #f1f3f5;
}

.list_01 li.empty_li {
    text-align: center;
    padding: 20px 0;
    color: #6c757d;
}

/* 폼 리스트 */
.form_01 h2 { font-size: 1.167em; }
.form_01 li { margin-bottom: 10px; }

.form_01 ul::after,
.form_01 li::after {
    display: block;
    clear: both;
    content: "";
}

.form_01 .left_input { float: left; }
.form_01 .margin_input { margin-right: 1%; }
.form_01 textarea { height: 100px; width: 100%; }
.form_01 .frm_label { display: inline-block; width: 130px; }

/* ----------------------------------------
   페이징
   ---------------------------------------- */

.pg_wrap {
    clear: both;
    display: inline-block;
}

.pg_wrap::after {
    display: block;
    clear: both;
    content: "";
}

.pg { text-align: center; }

.pg_page,
.pg_current {
    display: inline-block;
    min-width: 32px;
    height: 32px;
    line-height: 30px;
    padding: 0 8px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    vertical-align: middle;
    text-decoration: none;
}

.pg_page {
    color: #495057;
    background: #fff;
}

.pg_page:hover {
    background: #f8f9fa;
    text-decoration: none;
}

.pg_current {
    background: #0d6efd;
    border-color: #0d6efd;
    color: #fff;
    font-weight: bold;
}

.pg_start,
.pg_prev,
.pg_next,
.pg_end {
    text-indent: -9999px;
    overflow: hidden;
    background-color: #fff;
    background-repeat: no-repeat;
    background-position: 50% 50%;
}

.pg_start { background-image: url('../img/btn_first.gif'); }
.pg_prev { background-image: url('../img/btn_prev.gif'); }
.pg_next { background-image: url('../img/btn_next.gif'); }
.pg_end { background-image: url('../img/btn_end.gif'); }

.pg_start:hover,
.pg_prev:hover,
.pg_next:hover,
.pg_end:hover {
    background-color: #f8f9fa;
}

/* ----------------------------------------
   새창 스타일
   ---------------------------------------- */

.new_win { position: relative; }

.new_win .tbl_wrap { margin: 0 20px; }

.new_win #win_title {
    font-size: 1.25em;
    height: 50px;
    line-height: 30px;
    padding: 10px 20px;
    background: #fff;
    color: #212529;
    box-shadow: 0 1px 10px rgba(0, 0, 0, 0.1);
}

.new_win #win_title .sv {
    font-size: var(--gb-font-sm, 0.875rem);
    line-height: var(--gb-leading-normal, 1.5);
}

.new_win .win_ul {
    margin-bottom: 15px;
    padding: 0 20px;
}

.new_win .win_ul::after {
    display: block;
    clear: both;
    content: "";
}

.new_win .win_ul li {
    float: left;
    padding: 0 10px;
    margin-left: 5px;
    background: #fff;
    text-align: center;
    border: 1px solid #dee2e6;
    border-radius: 20px;
}

.new_win .win_ul li:first-child { margin-left: 0; }

.new_win .win_ul li a {
    display: block;
    padding: 8px 0;
    color: #6c757d;
}

.new_win .win_ul .selected {
    background: #0d6efd;
    border-color: #0d6efd;
}

.new_win .win_ul .selected a {
    color: #fff;
    font-weight: bold;
}

.new_win .win_desc {
    position: relative;
    margin: 10px;
    padding: 0 20px;
    border-radius: 5px;
    background: #dc3545;
    color: #fff;
    line-height: 50px;
    text-align: left;
}

.new_win .win_desc::after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 50px;
    background: #b02a37;
    border-radius: 5px 0 0 5px;
}

.new_win .frm_info {
    font-size: 0.92em;
    color: #6c757d;
}

.new_win .win_total {
    float: right;
    display: inline-block;
    line-height: 30px;
    font-weight: normal;
    font-size: 0.75em;
    color: #0d6efd;
    background: #f8f9fa;
    padding: 0 10px;
    border-radius: 5px;
}

.new_win .new_win_con {
    margin: 20px 0;
    padding: 20px;
}

.new_win .new_win_con::after {
    display: block;
    clear: both;
    content: "";
}

.new_win .new_win_con2 { margin: 20px 0; }

.new_win .btn_confirm::after {
    display: block;
    clear: both;
    content: "";
}

.new_win .win_btn { text-align: center; }
.new_win .cert_btn { margin-bottom: 30px; text-align: center; }

.new_win .btn_close {
    padding: 0 20px;
    height: 45px;
    overflow: hidden;
}

.new_win .btn_submit {
    padding: 0 20px;
    height: 45px;
    font-weight: bold;
    font-size: 1.083em;
}

/* ----------------------------------------
   게시물 복사/이동
   ---------------------------------------- */

#copymove .win_desc {
    text-align: center;
    display: block;
}

#copymove .tbl_wrap { margin: 20px; }
#copymove .win_btn { padding: 0 20px 20px; }

.copymove_current {
    float: right;
    padding: 5px;
    background: #dc3545;
    color: #fff;
    border-radius: 3px;
}

.copymove_currentbg { background: #f8f9fa; }

/* ----------------------------------------
   Alert 대안
   ---------------------------------------- */

#validation_check {
    margin: 100px auto;
    width: 500px;
}

#validation_check h1 {
    margin-bottom: 20px;
    font-size: 1.3em;
}

#validation_check p {
    margin-bottom: 20px;
    padding: 30px 20px;
    border: 1px solid #dee2e6;
    background: #fff;
}

/* ----------------------------------------
   상태 텍스트
   ---------------------------------------- */

.txt_active { color: #198754; }
.txt_done { color: #dc3545; }
.txt_expired { color: #adb5bd; }
.txt_rdy { color: #198754; }

/* ----------------------------------------
   모바일 전환 버튼
   ---------------------------------------- */

#device_change {
    display: block;
    margin: 0.3em;
    padding: 0.5em 0;
    border: 1px solid #dee2e6;
    border-radius: 2em;
    background: #fff;
    color: #212529;
    font-size: 1.5em;
    text-decoration: none;
    text-align: center;
}
