@charset "utf-8";

.new_icon { margin-right: 5px; }

/* ====== 민원 작성 / 내 민원 보기 탭 (sinlim_020103 글쓰기 전용) ====== */
.sl020103-tab-nav {
    display: flex;
    list-style: none;
    margin: 0 0 -1px 0;
    padding: 0;
    border-bottom: 2px solid #3a76be;
}

.sl020103-tab-item > a {
    display: block;
    padding: 10px 24px;
    font-size: 15px;
    font-weight: bold;
    color: #555;
    text-decoration: none;
    border: 1px solid transparent;
    border-bottom: none;
    border-radius: 4px 4px 0 0;
    background: #f4f4f4;
    margin-right: 4px;
    transition: background 0.15s;
}

.sl020103-tab-item.active > a {
    color: #fff;
    background: #3a76be;
    border-color: #3a76be;
}

.sl020103-tab-item > a:hover:not(.sl020103-tab-item.active > a) {
    background: #e0ebf8;
    color: #3a76be;
}

.sl020103-tab-panel {
    padding-top: 16px;
}

.sl020103-mylist-loading {
    padding: 30px 0;
    text-align: center;
    color: #888;
    font-size: 14px;
}

.sl020103-mylist-notice {
    padding: 30px 0;
    text-align: center;
    color: #555;
    font-size: 14px;
}

@media (max-width: 640px) {
    .sl020103-tab-item > a { padding: 9px 14px; font-size: 14px; }
}

/* ====== FAQ 모달 (sinlim_020103 전용) ====== */
.sl020103-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.75);
    z-index: 9998;
}

.sl020103-modal {
    display: none;
    position: fixed;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 85%;
    max-width: 860px;
    max-height: 85vh;
    background: #fff;
    z-index: 9999;
    border-radius: 4px;
    overflow: hidden;
    flex-direction: column;
}

.sl020103-modal-header {
    display: flex;
    align-items: center;
    background: #3a76be;
    padding: 0 20px;
    height: 52px;
    flex-shrink: 0;
}

.sl020103-modal-title {
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    flex: 1;
}

.sl020103-modal-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
}

.sl020103-modal-body {
    overflow-y: auto;
    flex: 1;
    padding: 20px;
}

.sl020103-modal-footer {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 14px 20px;
    border-top: 1px solid #e0e0e0;
    flex-shrink: 0;
    background: #fafafa;
}

/* ── FAQ 아코디언 (모달 내부) ──────────────────────────────────────────
   board.css 는 .board_faq .ico 를 position:absolute 로 정의함.
   Q 아이콘(.title): flex 레이아웃으로 아이콘을 static 처리
   A 아이콘(.pt)   : .pt 에 position:relative 를 주어 기존 absolute 유지
   ─────────────────────────────────────────────────────────────────── */

/* ① 질문 행 (Q) */
.sl020103-modal-body .board_faq .title {
    position: static;        /* board.css의 position:relative 초기화 */
    background: #f8f8f8;
    border-bottom: none;
}
.sl020103-modal-body .board_faq .title .ti {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    color: #333;
    font-size: 15px;
    text-decoration: none;
    float: none;             /* board.css의 float:left 초기화 */
    width: auto;
}
.sl020103-modal-body .board_faq .title .ti::after { display: none; }
.sl020103-modal-body .board_faq .title .ti.on { color: #3a76be; }

/* Q 아이콘: flex item 으로 static 처리 */
.sl020103-modal-body .board_faq .title .ico {
    position: static;
    top: auto; left: auto;
    flex-shrink: 0;
}

/* ② 답변 행 (A) */
.sl020103-modal-body .board_faq .pt {
    display: none;
    position: relative;      /* A 아이콘의 absolute 기준점 */
    padding: 14px 16px 14px 50px;  /* 아이콘 너비(30px) + 여백 확보 */
    background: #fff;
    font-size: 14px;
    line-height: 1.7;
    color: #555;
    border-top: 1px dashed #ddd;
    margin-top: 0;
}
/* A 아이콘: .pt 기준으로 absolute 위치 재지정 */
.sl020103-modal-body .board_faq .pt .ico {
    position: absolute;
    top: 14px;
    left: 14px;
}

/* ③ 아이콘 색상 */
.sl020103-modal-body .board_faq .q_ico { color: #3a76be; border-color: #3a76be; }
.sl020103-modal-body .board_faq .pt .a_ico { color: #fff; background-color: #515d75; border-color: #515d75; }

.sl020103-modal-body .board_faq .item { border-bottom: 1px solid #e5e5e5; }

.sl020103-modal-notice {
    text-align: center;
    padding: 30px 0;
    color: #777;
    font-size: 14px;
}

@media (max-width: 640px) {
    .sl020103-modal             { width: 95%; max-height: 90vh; }
    .sl020103-modal-footer      { flex-direction: column; }
    .sl020103-modal-footer .btn { width: 100%; }
}

/* ====== 상세보기 답변 영역 ====== */
.sl020103-answer {
    margin-top: 1.5rem;
    padding: 0 1.25rem .5rem;
    border-left: 4px solid #3a76be;
    background: #f7f9fc;
}
/* 답변 수정/삭제 버튼 영역이 흰 박스로 뜨지 않도록
   ( pcms/common/css/program.css 의 .box-footer 배경/여백 무력화 ) */
.sl020103-answer .box-footer {
    margin-top: 0;
    padding: 1rem 0 .75rem;
    border-top: 0;
    background-color: transparent;
}
.sl020103-answer .bbs--view--tit {
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-wrap: wrap;
}
.sl020103-answer-badge {
    display: inline-block;
    padding: .15em .7em;
    font-size: .75em;
    font-weight: 700;
    line-height: 1.6;
    color: #fff;
    background-color: #3a76be;
    border-radius: 3px;
    vertical-align: middle;
}
@media (max-width: 640px) {
    .sl020103-answer { padding-left: .75rem; padding-right: .75rem; }
}
.sl020103-answer--sub {
    margin-left: 1.5rem;
    border-left-color: #8aa8cd;
}
.sl020103-answer--sub .sl020103-answer-badge { background-color: #8aa8cd; }
@media (max-width: 640px) {
    .sl020103-answer--sub { margin-left: .75rem; }
}
