@charset "utf-8";

/* ============================================================
   new 스킨 - 테마 스타일 적용 (선 중심, 면 제거)
   ============================================================ */

/* ---------- 검색 영역 ---------- */
.new_search_wrap {
    margin-bottom: 40px;
    background: transparent;
    border-bottom: 1px solid var(--border, #e0e0e0);
    padding-bottom: 30px;
}
.new_search_container {
    max-width: 700px;
    margin: 0 auto;
}
.new_search_form {
    width: 100%;
}
.search_field_group {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    align-items: center;
    justify-content: center;
}
.select_wrapper {
    flex-shrink: 0;
}
.select_wrapper select,
.search_select {
    border: 1px solid var(--border, #e0e0e0);
    background: var(--white, #fff);
    height: 44px;
    padding: 0 28px 0 12px;
    border-radius: 8px;
    font-size: 14px;
    color: var(--txt, #222);
    cursor: pointer;
    transition: all 0.2s;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
}
.select_wrapper select:focus,
.search_select:focus {
    outline: none;
    border-color: var(--brand);
}
.search_input_wrap {
    position: relative;
    flex: 1;
    min-width: 200px;
}
.search_icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--txt-s, #666);
    font-size: 14px;
    pointer-events: none;
}
.search_input {
    width: 100%;
    height: 44px;
    border: 1px solid var(--border, #e0e0e0);
    border-radius: 8px;
    padding: 0 16px 0 40px;
    font-size: 14px;
    color: var(--txt, #222);
    background: var(--white, #fff);
    transition: all 0.2s;
}
.search_input:focus {
    outline: none;
    border-color: var(--brand);
}
.search_btn {
    height: 44px;
    padding: 0 28px;
    background: var(--brand);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.search_btn:hover {
    background: var(--brand-d);
}

/* ---------- 관리자 버튼 ---------- */
.admin_new_btn {
    text-align: right;
    margin-bottom: 16px;
}
.admin_new_btn_bottom {
    text-align: right;
    margin-top: 20px;
}
.btn_delete {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: transparent;
    border: 1px solid #e0e0e0;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 500;
    color: #888;
    cursor: pointer;
    transition: all 0.2s;
}
.btn_delete:hover {
    border-color: var(--brand);
    color: var(--brand);
    background: var(--brand-light, #e8f1f8);
}
.btn_delete i {
    font-size: 14px;
}

/* ---------- 테이블 ---------- */
.new_table_wrap {
    overflow-x: auto;
}
.new_table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.new_table th,
.new_table td {
    padding: 16px 12px;
    text-align: center;
    border-bottom: 1px solid #f0f0f0;
}
.new_table th {
    background: var(--bg, #f6f8fb);
    font-weight: 600;
    color: var(--txt, #222);
    font-size: 13px;
    letter-spacing: -0.2px;
}
.new_table tbody tr:hover {
    background: var(--bg, #f6f8fb);
}
.new_table .th_subject,
.new_table .td_subject {
    text-align: left;
}
.new_table .th_date,
.new_table .td_date {
    white-space: nowrap;
}

/* ---------- 게시물 제목 ---------- */
.new_tit {
    color: var(--txt, #222);
    text-decoration: none;
    transition: color 0.2s;
    font-weight: 500;
    display: inline-block;
    max-width: 500px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.new_tit:hover {
    color: var(--brand);
    text-decoration: underline;
}

/* ---------- 그룹/게시판 배지 ---------- */
.badge_group,
.badge_board {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
}
.badge_group {
    background: transparent;
    border: 1px solid #c8d6e5;
    color: var(--brand);
}
.badge_group:hover {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
}
.badge_board {
    background: transparent;
    border: 1px solid #e0e0e0;
    color: #666;
}
.badge_board:hover {
    border-color: var(--brand);
    color: var(--brand);
}

/* ---------- 작성자 (사이드뷰) ---------- */
.td_name {
    font-weight: 500;
    color: var(--txt, #222);
}
.td_name .sv_wrap {
    display: inline-block;
}
.td_name .sv_member,
.td_name .sv_guest {
    cursor: pointer;
    display: inline-block;
}
/* 활성화된 작성자 스타일 (클릭 시 강조) */
.td_name .sv_member.sv_on,
.td_name .sv_guest.sv_on {
    color: var(--brand);
    font-weight: 700;
}
.td_name .sv_wrap .sv {
    display: none;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    padding: 4px 0;
    min-width: 110px;
}
.td_name .sv_wrap .sv a {
    display: block;
    padding: 8px 14px;
    font-size: 12px;
    color: #555;
    text-decoration: none;
    text-align: left;
    white-space: nowrap;
    transition: all 0.2s;
}
.td_name .sv_wrap .sv a:hover {
    background: var(--brand-light, #e8f1f8);
    color: var(--brand);
}

/* ---------- 날짜 ---------- */
.td_date {
    font-size: 12px;
    color: #aaa;
    white-space: nowrap;
}

/* ---------- 체크박스 ---------- */
.selec_chk {
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    opacity: 0;
    outline: 0;
    z-index: -1;
    overflow: hidden;
}
.chk_box {
    position: relative;
    display: inline-block;
}
.chk_box input[type="checkbox"] + label {
    position: relative;
    padding-left: 24px;
    color: #666;
    cursor: pointer;
    font-size: 14px;
}
.chk_box input[type="checkbox"] + label span {
    position: absolute;
    top: 1px;
    left: 0;
    width: 18px;
    height: 18px;
    display: block;
    background: #fff;
    border: 1px solid #d0d4df;
    border-radius: 4px;
    transition: all 0.2s;
}
.chk_box input[type="checkbox"]:checked + label span {
    background: var(--brand);
    border-color: var(--brand);
}
.chk_box input[type="checkbox"]:checked + label span::after {
    content: '\f00c';
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 11px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
}
.th_chk {
    width: 50px;
}
.td_chk {
    text-align: center;
}

/* ---------- 페이징 ---------- */
.new_paging {
    text-align: center;
    margin-top: 30px;
}
.new_paging .pg {
    display: inline-block;
    margin: 0;
    padding: 0;
}
.new_paging .pg a,
.new_paging .pg strong {
    display: inline-block;
    min-width: 36px;
    height: 36px;
    padding: 0 8px;
    margin: 0 3px;
    font-size: 14px;
    line-height: 34px;
    text-decoration: none;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    background: #fff;
    color: #555;
    text-align: center;
    transition: all 0.2s;
}
.new_paging .pg strong {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
}
.new_paging .pg a:hover {
    background: #f5f5f5;
    border-color: var(--brand);
    color: var(--brand);
}

/* ---------- 빈 행 ---------- */
.empty_row td {
    padding: 60px 20px !important;
    text-align: center !important;
    color: #aaa;
    font-size: 14px;
    background: #fafafa;
}

/* ---------- 반응형 ---------- */
@media (max-width: 750px) {
    .search_field_group {
        flex-wrap: wrap;
    }
    .select_wrapper {
        flex: 1;
    }
    .select_wrapper select {
        width: 100%;
    }
    .search_select {
        flex: 1;
    }
    .search_input_wrap {
        min-width: 100%;
        flex-basis: 100%;
    }
    .search_btn {
        width: 100%;
        justify-content: center;
    }
}
@media (max-width: 768px) {
    .new_table th,
    .new_table td {
        padding: 12px 8px;
        font-size: 13px;
    }
    .badge_group,
    .badge_board {
        padding: 3px 8px;
        font-size: 11px;
    }
    .new_tit {
        max-width: 200px;
    }
    .new_table .td_group,
    .new_table .td_board {
        white-space: nowrap;
    }
    .new_table .td_date {
        font-size: 11px;
    }
}
@media (max-width: 480px) {
    .new_tit {
        max-width: 150px;
    }
    .badge_group,
    .badge_board {
        font-size: 10px;
        padding: 2px 6px;
    }
}