@charset "utf-8";
/* SIR 지운아빠 */

/* ### 기본 스타일 커스터마이징 시작 ### */

/* 버튼 */
.mbskin a.btn01 {}
.mbskin a.btn01:focus, .mbskin .btn01:hover {}
.mbskin a.btn02 {}
.mbskin a.btn02:focus, .mbskin .btn02:hover {}
.mbskin .btn_confirm {} /* 서식단계 진행 */
.mbskin .btn_submit {}
.mbskin button.btn_submit {}
.mbskin fieldset .btn_submit {}
.mbskin .btn_cancel {}
.mbskin button.btn_cancel {}
.mbskin .btn_cancel:focus, .mbskin .btn_cancel:hover {}
.mbskin a.btn_frmline, .mbskin button.btn_frmline {} /* 우편번호검색버튼 등 */
.mbskin button.btn_frmline {}
.mbskin .win_btn {} /* 새창용 */
.mbskin .win_btn button {}
.mbskin .win_btn input {}
.mbskin .win_btn a {}
.mbskin .win_btn a:focus, .mbskin .win_btn a:hover {}
/* 게시판용 버튼 */
.mbskin a.btn_b01 {}
.mbskin a.btn_b01:focus, .mbskin .btn_b01:hover {}
.mbskin a.btn_b02 {}
.mbskin a.btn_b02:focus, .mbskin .btn_b02:hover {}
.mbskin a.btn_admin {} /* 관리자 전용 버튼 */
.mbskin a.btn_admin:focus, .mbskin a.btn_admin:hover {}

/* 기본테이블 */
.mbskin .tbl_head01 {}
.mbskin .tbl_head01 caption {}
.mbskin .tbl_head01 thead th {}
.mbskin .tbl_head01 thead a {}
.mbskin .tbl_head01 thead th input {} /* middle 로 하면 게시판 읽기에서 목록 사용시 체크박스 라인 깨짐 */
.mbskin .tbl_head01 tfoot th {}
.mbskin .tbl_head01 tfoot td {}
.mbskin .tbl_head01 tbody th {}
.mbskin .tbl_head01 td {}
.mbskin .tbl_head01 a {}
.mbskin td.empty_table {}

/* 폼 테이블 */
.mbskin table {}
.mbskin caption {}
.mbskin .frm_info {}
.mbskin .frm_file {}

.mbskin .tbl_frm01 {}
.mbskin .tbl_frm01 th {width:85px;}
.mbskin .tbl_frm01 td {}
.mbskin .tbl_frm01 textarea, .mb_skin tbl_frm01 .frm_input {}
.mbskin .tbl_frm01 textarea {}
/*
.mbskin .tbl_frm01 #captcha {}
.mbskin .tbl_frm01 #captcha input {}
*/
.mbskin .tbl_frm01 a {}

/* 필수입력 */
.mbskin .required, .mbskin textarea.required {}

/* 테이블 항목별 정의 */
.mbskin .td_board {}
.mbskin .td_chk {}
.mbskin .td_date {}
.mbskin .td_datetime {}
.mbskin .td_group {}
.mbskin .td_mb_id {}
.mbskin .td_mng {}
.mbskin .td_name {}
.mbskin .td_nick {}
.mbskin .td_num {}
.mbskin .td_numbig {}

.mbskin .txt_active {}
.mbskin .txt_expired {}

/* ### 기본 스타일 커스터마이징 끝 ### */

/* 회원가입 약관 */
#fregister section {margin:0 0 20px;padding:20px 0}
#fregister h2 {margin:0 0 20px;text-align:center}
#fregister textarea {display:block;margin-bottom:10px;padding:5px;width:98%;height:150px;border:1px solid #e9e9e9;background:#f7f7f7}
#fregister .fregister_agree {padding:10px 0 0;text-align:right}
#fregister .fregister_agree label {display:inline-block;margin-right:5px}
#fregister p {color:#e8180c;text-align:center}
#fregister .btn_confirm {margin-bottom:20px}

/* 회원가입 입력 */
#fregisterform textarea {height:50px}

#fregisterform #msg_certify {margin:5px 0 0;padding:5px;border:1px solid #dbecff;background:#eaf4ff;text-align:center}

#fregisterform .frm_address {margin:5px 0 0}
#fregisterform #mb_addr3 {display:inline-block;margin:5px 0 0;vertical-align:middle}
#fregisterform #mb_addr_jibeon {display:block;margin:5px 0 0}

/* 회원가입 완료 */
#reg_result {padding:50px 0 0}
#reg_result #result_email {margin:20px 0;padding:10px 50px;border-top:1px solid #e9e9e9;border-bottom:1px solid #dde4e9;background:#fff;line-height:2em}
#reg_result #result_email span {display:inline-block;width:150px}
#reg_result #result_email strong {color:#e8180c;font-size:1.2em}
#reg_result p {line-height:1.8em}
#reg_result .btn_confirm {margin:50px 0}

/* 아이디/비밀번호 찾기 */
#find_info #mb_hp_label {display:inline-block;margin-left:10px}
#find_info #info_fs {margin:0 20px 20px;padding:0;background:#fff}
#find_info #info_fs .frm_input {width:70%}
#find_info p {margin:0 0 10px;line-height:1.8em}
#find_info #captcha {margin:0 20px}

/* 로그인 */
#mb_login {margin:0 auto;padding:100px 0;width:500px}
#mb_login h1 {margin:0 0 20px;font-size:1.3em}
#mb_login h2 {margin:0}
#mb_login p {padding:10px 0;line-height:1.5em}
#mb_login #login_fs {position:relative;margin:0;padding:20px 20px 20px 95px;border:1px solid #cfded8;border-bottom:0;background:#fff}
#mb_login #login_fs legend {position:absolute;margin:0;padding:0;font-size:0;line-height:0;text-indent:-9999em;overflow:hidden}
#mb_login #login_fs label {letter-spacing:-0.1em}
#mb_login #login_fs .login_id {position:absolute;top:26px;left:95px}
#mb_login #login_fs .login_pw {position:absolute;top:52px;left:95px}
#mb_login #login_fs .frm_input {display:block;margin:0 0 5px 80px;width:162px}
#mb_login #login_fs .btn_submit {position:absolute;top:20px;right:95px;width:60px;height:53px}
#mb_login #login_info {margin:0 0 30px;padding:20px;border:1px solid #cfded8;background:#f5f6fa}
#mb_login #login_info div {text-align:right}

/* 쪽지 */
#memo_view_contents {margin:0 auto 20px;width:90%}
#memo_view_contents h1 {position:absolute;font-size:0;line-height:0;overflow:hidden}
#memo_view_ul {margin:0;padding:0 0 10px;border-bottom:1px solid #eee;list-style:none}
.memo_view_li {position:relative;padding:5px 0}
.memo_view_subj {display:inline-block;width:65px}
#memo_view p {padding:10px 0;min-height:150px;height:auto !important;height:150px;background:#fff;line-height:1.8em}

#memo_write textarea {height:100px}

/* 스크랩 */
#scrap_do table {margin:0 0 10px;width:100%}
#scrap_do textarea {height:100px}

/* 회원 비밀번호 확인 */
#mb_confirm {margin:0 auto;padding:100px 0;width:500px}
#mb_confirm h1 {margin:0 0 20px;font-size:1.3em}
#mb_confirm p {padding:20px;border:1px solid #dde4e9;border-bottom:0;background:#fff}
#mb_confirm p strong {display:block}
#mb_confirm fieldset {margin:0 0 30px;padding:30px 0;border:1px solid #e9e9e9;background:#f5f6fa;text-align:center}
#mb_confirm fieldset .frm_input {background-color:#fff !important}
#mb_confirm label {letter-spacing:-0.1em}
#mb_confirm_id {display:inline-block;margin-right:20px;font-weight:bold}

/* 비밀글 비밀번호 확인 */
#pw_confirm {margin:0 auto;padding:100px 0;width:500px}
#pw_confirm h1 {margin:0 0 20px;font-size:1.3em}
#pw_confirm p {padding:20px;border:1px solid #dde4e9;border-bottom:0;background:#fff}
#pw_confirm p strong {display:block}
#pw_confirm fieldset {margin:0 0 30px;padding:30px 0;border:1px solid #e9e9e9;background:#f5f6fa;text-align:center}
#pw_confirm fieldset .frm_input {background-color:#fff !important}
#pw_confirm label {letter-spacing:-0.1em}
#pw_confirm_id {display:inline-block;margin-right:20px;font-weight:bold}

/* 폼메일 */
#formmail #subject {width:386px}
#formmail textarea {height:100px}

/* 자기소개 */
#profile table {margin-bottom:0}
#profile section {margin:0 auto 20px;padding:20px;width:86%}
#profile h2 {margin:0}

/* 전체 배경 및 폰트 설정 */
body,
html,
#memo_list {
  margin: 0;
  padding: 0;
  width: 100%;
  background-color: #fff0f5;
  font-family: 'Noto Sans KR', sans-serif;
  color: #444;
  overflow-x: hidden;
}

/* 쪽지 전체 컨테이너 강제 확장 */
#memo_list {
  width: 100%;
  max-width: none;
  box-sizing: border-box;
}

/* 부모 팝업 창 여백 제거 */
.new_win.mbskin {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* 탭 메뉴 스타일 */
.mbskin .win_ul {
  display: flex;
  padding: 0;
  margin: 0;
  list-style: none;
  background-color: #fce4ec;
  border-bottom: 2px solid #f8bbd0;
}

.mbskin .win_ul li {
  flex: 1;
  text-align: center;
}

.mbskin .win_ul li a {
  display: block;
  padding: 12px;
  text-decoration: none;
  color: #c2185b;
  font-weight: bold;
  border-right: 1px solid #f8bbd0;
}
.mbskin .win_ul li:last-child a {
  border-right: none;
}
.mbskin .win_ul li a:hover,
.mbskin .win_ul li a:focus {
  background-color: #f8bbd0;
  color: #880e4f;
}

/* 테이블 컨테이너 확장 */
.tbl_wrap {
  width: 100%;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  overflow-x: auto;
}
.tbl_wrap table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  margin: 0;
}

/* 테이블 헤더 */
#memo_list thead {
  background-color: #f8bbd0;
}
#memo_list th {
  background-color: #f48fb1;
  color: white;
  font-weight: bold;
  padding: 10px;
  white-space: nowrap;
  text-align: center;
}

/* 셀 스타일 */
#memo_list td {
  background-color: #fff;
  border-bottom: 1px solid #f8bbd0;
  padding: 10px;
  text-align: center;
  vertical-align: middle;
  word-break: break-word;
}

/* 열 너비 비율 */
#memo_list th:nth-child(1),
#memo_list td:nth-child(1) {
  width: 35%;
  text-align: left;
}
#memo_list th:nth-child(2),
#memo_list td:nth-child(2) {
  width: 20%;
}
#memo_list th:nth-child(3),
#memo_list td:nth-child(3) {
  width: 25%;
}
#memo_list th:nth-child(4),
#memo_list td:nth-child(4) {
  width: 20%;
}

/* 닉네임 + 아이콘 정렬 */
.nickname-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.nickname-wrap img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
}
.nickname {
  font-size: 14px;
  white-space: nowrap;
}

/* 삭제 버튼 */
#memo_list .td_mng a {
  color: #e91e63;
  font-weight: bold;
  text-decoration: none;
}
#memo_list .td_mng a:hover {
  color: #880e4f;
}

/* 창닫기 버튼 */
.win_btn {
  text-align: center;
  margin: 20px 0;
}
.win_btn button {
  background-color: #f48fb1;
  color: white;
  border: none;
  padding: 10px 24px;
  border-radius: 6px;
  font-weight: bold;
  font-size: 15px;
  cursor: pointer;
}
.win_btn button:hover {
  background-color: #ec407a;
}

/* 모바일 대응 */
@media (max-width: 768px) {
  #memo_list th,
  #memo_list td {
    font-size: 14px;
    padding: 8px 6px;
  }
}

/* 모바일 CSS에서 주입된 좌우 마진 제거 */
.new_win .tbl_wrap {
    margin: 0 !important;
  }
  

  div#memo_list .win_btn button {
    background-color: #f48fb1 !important;
    color: white !important;
    border: none !important;
   
    border-radius: 6px !important;
    font-weight: bold !important;
    font-size: 15px !important;
    cursor: pointer;
    display: inline-block;
  }
  
  div#memo_list .win_btn button:hover {
    background-color: #ec407a !important;
  }
  

  /* 쪽지 보기 하단 버튼 */
#memo_view .win_btn {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 30px 0;
    flex-wrap: wrap;
  }
  
  #memo_view .win_btn a,
  #memo_view .win_btn button {
    background-color: #f48fb1;
    color: #fff;
    border: none;
   
    border-radius: 6px;
    font-weight: bold;
    font-size: 15px;
    text-decoration: none;
    cursor: pointer;
    display: inline-block;
    min-width: 90px;
    text-align: center;
  }
  
  #memo_view .win_btn a:hover,
  #memo_view .win_btn button:hover {
    background-color: #ec407a;
  }
  

  /* 쪽지보내기 수정코드 */

  #memo_form_wrap {
    width: 100vw;
    max-width: 100vw;
    margin: 0;
    padding: 0;
    background: #fff0f5; /* 핑크 배경 */
    box-sizing: border-box;
  }
  
  form {
    width: 100%;
    padding: 0 10px;
    box-sizing: border-box;
  }
  
  
  .memo-header {
    margin-bottom: 10px;
    font-size: 16px;
    font-weight: bold;
    color: #333;
  }
  
  .user-info {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  
  .user-icon {
    width: 36px;
    height: 36px;
    background: #f8bbd0;
    border-radius: 50%;
  }
  
  .win_ul {
    display: flex;
    margin: 20px 0;
    padding: 0;
    list-style: none;
    background: #fde4ef;
    border-bottom: 2px solid #f48fb1;
  }
  
  .win_ul li {
    flex: 1;
    text-align: center;
  }
  
  .win_ul li a {
    display: block;
    padding: 12px;
    font-weight: bold;
    text-decoration: none;
    color: #c2185b;
    border-right: 1px solid #f8bbd0;
  }
  
  .win_ul li.active a {
    background: #f8bbd0;
    color: #fff;
  }
  
  .form-row {
    margin-bottom: 16px;
  }
  
  .form-row label {
    display: block;
    margin-bottom: 6px;
    font-weight: bold;
    color: #d81b60;
  }
  
  .form-row .recipient {
    padding: 10px;
    background: #ffeef5;
    border: 1px solid #f8bbd0;
  }
  
  textarea {
    width: 100%;
    height: 120px;
    padding: 10px;
    border: 1px solid #f8bbd0;
    resize: vertical;
    font-size: 14px;
  }
  
  .form-btns {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
  }
  
  .btn-submit {
    background: #f06292;
    color: #fff;
    border: none;
    padding: 10px 24px;
    font-weight: bold;
    border-radius: 6px;
  }
  
  form .btn-cancel {
    background-color: #f48fb1 !important; /* 연핑크 */
    color: #fff !important;
    border: none !important;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    display: inline-block;
}

form .btn-cancel:hover {
    background-color: #ec407a !important; /* 진한 핑크 */
}

  
  
    /* 쪽지보내기 수정코드끝!!! */

/* sideview 메뉴를 세로 정렬로 강제 덮어쓰기 */
.sv_on {
    display: flex !important;
    flex-direction: column !important;

    background-color: #333 !important;
   
    border-radius: 6px !important;
    position: absolute !important;
    z-index: 1000 !important;
    width: max-content !important;
   
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2) !important;
    white-space: normal !important;  /* 핵심 포인트 */
  }
  
  .sv_on a {
    display: block !important;
    color: #fff !important;
    background-color: #444 !important;
    padding: 6px 10px !important;
    border-radius: 4px !important;
    font-size: 13px !important;
    text-align: left !important;
    white-space: normal !important;  /* 링크마다도 강제 */
  }
  
  .sv_on a:hover {
    background-color: #e91e63 !important;
    color: #fff !important;
  }
  

  /* 테이블 래퍼의 overflow 숨김 해제 (사이드뷰 메뉴 보이도록) */
.tbl_wrap {
    overflow: visible !important;
    position: relative !important; /* 자식 요소 포지셔닝 기준 */
    z-index: auto !important;
  }
  
  /* 보통은 모바일용에서 강제로 overflow: auto나 hidden이 설정돼 있음 */
  @media (max-width: 768px) {
    .tbl_wrap {
      overflow-x: visible !important;
      overflow-y: visible !important;
    }
  }
  