/* 기본 notice list */
.empty {
  background: var(--color-gray-01);
}

.s_board_basic #bo_list_total {
  display: flex;
  justify-content: space-between;
  width: 100%;
  color: var(--color-gray-03);
}

.s_board_basic .bo_list {
  padding: 20px 0;
}

.s_board_basic .bo_list ul li {
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  color: var(--color-gray-03);
  border-bottom: 1px solid var(--color-gray-02);
  gap: 5px;
}

.s_board_basic .bo_list ul li .s-name a {
  color: #121212;
  font-size: 1.125rem;
  font-weight: 700;
}

.s_board_basic .k_new_btn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 10px;
}

.s_board_basic .k_new_btn > div {
  display: flex;
  align-items: center;
  gap: 8px;
}

.s_board_basic .write_button {
  background: var(--color-primary);
  color: #fff;
  padding: 10px 20px;
  font-weight: 700;
  border-radius: 5px;
  font-size: 0.875rem;
}

.delete_all_button {
  color: var(--color-gray-03);
}

.s_board_basic .choice_button {
  padding: 10px;
  border: 1px solid var(--color-gray-02);
  border-radius: 5px;
  font-size: 0.875rem;
}

.s_board_basic .bo_list tr {
  position: relative;
}

.s_board_basic .bo_list th.checkbox,
.s_board_basic .bo_list td.checkbox {
  position: absolute;
  left: 0;
  top: 0;
  border: none;
  background: none;
}

.pg_wrap .pg_page,
.pg_wrap .pg_current {
  height: 30px;
  line-height: 30px;
  border-radius: 50%;
}

.pg_wrap .pg_page.pg_prev {
  background: url(../img/btn_prev.gif) no-repeat 50% 50% #eee;
}

.pg_wrap .pg_page.pg_next {
  background: url(../img/btn_next.gif) no-repeat 50% 50% #eee;
}

.pg_wrap .pg_current {
  background: var(--color-primary);
}

.s_board_basic .k_bo_v_tit {
  display: flex;
  justify-content: space-between;
  padding: 0px 0 20px;
  border-bottom: 1px solid var(--color-gray-02);
}

.s_board_basic #bo_v_con {
  padding-top: 10px;
}

.s_board_basic .k_w_table {
  width: 100%;
}

.s_board_basic input[type="text"],
.s_board_basic textarea {
  border: 1px solid var(--color-gray-02);
  letter-spacing: -0.04em;
  outline: 0;
  font-family: "pretendard";
  margin-right: 7px;
}

.s_board_basic textarea {
  padding: 10px;
}

.s_board_basic .k_w_table {
  border-top: 1px solid #121212;
}

.s_board_basic .k_w_table td {
  padding: 20px 10px;
  border-bottom: 1px solid #eaeaea;
}

.s_board_basic .write_btn {
  margin-top: 20px;
}

.s_board_basic .write_btn input {
  background: var(--color-primary);
  color: #fff;
  padding: 10px 20px;
  font-weight: 700;
  border-radius: 5px;
  font-size: 0.875rem;
  outline: 0;
  border: 0;
}

.s_board_basic .write_btn a {
  padding: 10px;
  border: 1px solid var(--color-gray-02);
  border-radius: 5px;
  font-size: 0.875rem;
}

/* =========================================================
   BID (입찰 게시판) 스타일 수정됨
   ========================================================= */

.s_board_basic.s_board_bid .bo_list ul li {
  padding: 0;
  border: none;
}

/* 하단 flex 영역 유지 */
.s_board_basic.s_board_bid .bo_list ul li .flex {
  gap: 20px;
  flex-wrap: wrap;
  width: 95%;
}

.s_board_bid #bo_sch.k_bo_sch {
  margin: 0 auto 40px;
  border: none;
}

.s_board_bid #bo_sch .sch_input {
  background: var(--color-gray-01);
  color: #121212;
  height: 46px;
  padding: 10px;
  border-radius: 10px 0 0 10px;
  width: 100%;
  max-width: 240px;
}

.s_board_bid #bo_sch .sch_btn {
  background: var(--color-gray-01);
  height: 46px;
  border-radius: 0 10px 10px 0;
}

.s_board_bid #bo_sch select {
  border: 1px solid #eaeaea;
  border-radius: 10px;
  padding: 10px;
  margin: 0;
  height: auto;
  margin-right: 12px;
  color: var(--color-gray-03);
}

.s_board_bid .k_bo_sch form {
  display: flex;
}

.bid_list .bid_item {
  padding: 24px;
  width: 100%;
  transition: 0.3s all;
  border-bottom: 1px solid #eaeaea;
  position: relative; /* 모바일 절대배치 기준점 */
}

.bid_list .bid_item:hover {
  background: var(--color-gray-01);
}

/* ---------------------------------------------------------
   [신규] 헤더 레이아웃
   --------------------------------------------------------- */
.bid_header_flex {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
  width: 100%;
  gap: 20px; /* 좌우 간격 넉넉히 */
}

/* 좌측 공고번호 */
.bid_no_info .no {
  font-size: 0.938rem;
  color: #888;
  font-family: 'Pretendard', sans-serif;
  font-weight: 500;
  white-space: nowrap; /* PC에서는 한 줄 유지 */
}

/* 우측 상태 박스 */
.bid_status_box {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex-shrink: 0; /* PC에서 줄어들지 않음 */
}

/* 상태 배지 */
.badge, .badge2 {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  text-align: center;
  line-height: 1;
}
.badge.delivery { background: #e8f5e9; color: #2e7d32; }
.badge2.before { background: #f5f5f5; color: #666; border: 1px solid #ddd; }
.badge2.after { background: #fff3e0; color: #ef6c00; border: 1px solid #ffe0b2; }

/* 배지 사이즈 고정 */
.bid_list .bid_item .badge,
.bid_list .bid_item .badge2 {
  width: 80px;
  height: 28px;
  line-height: 28px; /* 수직 중앙 정렬 */
  padding: 0;
}

/* [디자인] 투찰마감 미니 태그 */
.bid_deadline_mini {
  background-color: #f3e5f5;      /* 연한 보라 배경 */
  border: 1px solid #e1bee7;      /* 연한 보라 테두리 */
  border-left: 3px solid #9c27b0; /* 왼쪽 포인트 선 */
  
  color: #7b1fa2;
  font-size: 0.813rem;
  font-weight: 600;
  
  padding: 4px 10px;
  border-radius: 3px;
  
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  line-height: 1.2;
}

.bid_deadline_mini i {
  margin-right: 5px;
  font-size: 11px;
  color: #9c27b0;
}

/* 제목 스타일 */
.bid_list .bid_item h3 {
  margin-top: 0;
  margin-bottom: 20px;
  font-size: 1.25rem;
  font-weight: 700;
  color: #121212;
  line-height: 1.4;
  word-break: keep-all;
}

/* --------------------------------------------------------- */

.detail_caution {
  padding: 10px 0;
  display: flex;
  gap: 10px;
  align-items: center;
  color: #9a9a9a;
}

.bid_title_wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0 24px;
}

.bid_title_wrap a {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.875rem;
  color: var(--color-primary);
}

.bid_title_wrap a span {
  font-size: 0.875rem;
}

.bid_infomation {
  width: 100%;
  text-align: left;
  border-top: 1px solid #121212;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.bid_infomation th {
  background: var(--color-gray-01);
}

.bid_infomation th,
.bid_infomation td {
  padding: 16px 12px;
  border-bottom: 1px solid #eaeaea;
}

.bid_infomation td .file_wrap {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.bid_infomation td .file_wrap a {
  display: flex;
  align-items: center;
  gap: 5px;
}

.bo_list a {
  display: block;
  width: 100%;
}

.s_board_bid #bo_v_con {
  background: var(--color-gray-01);
  border-radius: 10px;
  color: #ff1b2b;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 0.875rem;
}

.s_board_bid .k_add_ul {
  font-size: 0.875rem;
}

.s_board_bid .k_add_ul li {
  display: flex;
  gap: 10px;
  padding: 10px 0;
}

.s_board_bid .k_add_ul h4,
.s_board_bid .k_add_ul div {
  font-weight: 400;
}

.s_board_bid .k_add_ul span {
  font-size: 0.875rem;
}

.bid_member_info {
  display: grid;
  grid-template-columns: 50% 1fr;
  gap: 20px;
}

.info_left {
  border: 1px solid #eaeaea;
  border-radius: 10px;
  padding: 40px 22px;
}

.bid_member_info h3 {
  margin: 0 0 20px;
  font-size: 18px;
  font-weight: 700;
  color: #333;
}

.info_right h3 {
  padding-bottom: 15px;
  border-bottom: 2px solid #333;
}

.bid_member_info ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.bid_member_info li {
  display: flex;
  padding: 12px 0;
}

.info_left .label {
  color: #666;
  font-size: 14px;
  flex: 0.6;
}

.info_left .label input {
  margin-right: 8px;
}

.bid_member_info .value {
  flex: 1;
  color: #333;
  font-size: 14px;
}

.info_right table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}

.info_right th {
  width: 150px;
  padding: 15px 10px;
  text-align: center;
  color: #666;
  font-weight: 400;
  font-size: 14px;
  background: #fafafa;
}

.info_right td {
  padding: 15px 10px;
  background: #fff;
}

.info_right .frm_input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #ddd;
  font-size: 14px;
}

.payment_amount {
  padding: 20px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #eaeaea;
  margin-top: 20px;
  border-radius: 10px;
  gap: 10px;
}

.payment_amount .value {
  font-size: 20px;
  color: var(--color-primary);
  font-weight: bold;
  flex: unset;
}

.info_right h3 {
  margin-bottom: 0;
}

.submit_button {
  display: flex;
  margin-top: 40px;
  justify-content: center;
}

.submit_button button {
  background: var(--color-primary);
  padding: 12px 32px;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
}

.s_mbskin {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  height: 92vh;
}

.s_mbskin .si_inner {
  max-width: 560px;
  background: #fff;
  border-radius: 40px;
  padding: 40px;
  width: 100%;
}

.s_mbskin figure {
  padding-bottom: 20px;
}

.s_mbskin#mb_confirm h1 {
  margin: 0;
}

.s_mbskin#mb_confirm p strong {
  color: var(--color-primary);
}

.s_mbskin.mbskin .btn_submit {
  background: var(--color-primary);
  transition: 0.3s all;
}

.s_mbskin.mbskin .btn_submit:hover {
  background: #407ff0;
}

.s_login_skin .chk_box {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.s_login_skin {
  max-width: 430px;
}

.s_login_skin .chk_box input[type="checkbox"] + label span {
  top: 12px;
}

.s_login_skin .form_01 textarea,
.s_login_skin .frm_input {
  border-color: #eaeaea;
  padding: 10px;
  height: 48px;
  border-radius: 5px;
}

.s_login_skin .btn_submit {
  background: #407ff0;
}

.s_login_skin#mb_login .mb_login_join {
  padding: 20px;
  border: 1px solid #121212;
  color: #121212;
  margin: 0 20px;
  border-radius: 10px;
}

#mb_login.s_login_skin .btn_submit {
  height: 56px;
  font-size: 1rem;
  border-radius: 10px;
}

#mb_login.s_login_skin #login_frm {
  padding: 0 20px 10px;
}

.s_register_skin #fregister p {
  margin: 0 0 20px;
  background: #fff;
  color: #121212;
  padding: 0 0 0 12px;
  font-size: 0.875rem;
  border: none;
  color: var(--color-gray-03);
}

.s_register_skin #fregister p:before {
  display: none;
}

.s_register_skin .fregister_agree input[type="checkbox"]:checked + label span {
  background: url(/img/chk.png) no-repeat 50% 50% #121212;
  border-color: #121212;
}

.s_register_skin #fregister_chkall {
  border: none;
  background: var(--color-gray-01);
  padding: 25px 20px;
}

.s_register_skin .fregister_agree input[type="checkbox"] + label {
  font-weight: 500;
  color: #121212;
}

.s_register_skin .fregister_agree.chk_all input[type="checkbox"] + label span {
  top: 26px;
}

.s_register_skin #fregister h2 {
  font-size: 1rem;
  border-bottom: 1px solid #121212;
}

.s_register_skin #fregister section {
  border: #121212;
}

.s_register_skin #fregister textarea {
  margin-top: 20px;
}

.s_register_skin .tbl_head01 td {
  border: none;
  font-size: 0.875rem;
  padding: 16px 0;
  border-bottom: 1px solid #ddd;
}

.s_register_skin .tbl_head01 td[colspan="2"] {
  background: var(--color-gray-01);
}

.s_register_skin.mbskin .btn_submit {
  height: 60px;
  line-height: 60px;
  background: var(--color-primary);
  border-radius: 10px;
}

.s_register_skin #fregisterform .form_01 h2 {
  font-size: 1rem;
  border-bottom: 1px solid #121212;
  padding-bottom: 16px;
}

.s_register_skin .form_01 li label {
  display: flex;
  padding-top: 20px;
  padding-bottom: 10px;
  font-size: 0.875rem;
  gap: 5px;
}

.s_register_skin .form_01 li label span {
  color: #ff1b2b;
}

.s_register_skin .form_01 .frm_info {
  color: #666;
  font-size: 0.875rem;
  padding-top: 10px;
  margin: 0;
}

.s_register_skin .frm_input {
  font-size: 0.875rem;
  padding: 16px;
  height: 56px;
}

.s_register_skin li .captcha label {
  display: none;
}

.date_filter {
  display: flex;
  align-items: center;
  gap: 20px;
}

.date_filter button {
  border: 1px solid var(--color-primary);
  color: var(--color-primary);
  padding: 5px;
  border-radius: 5px;
}

.date_filter .date_wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.date_filter .date_wrap .filter_label {
  color: #666;
}

.date_filter .date_wrap input[type="date"] {
  border: none;
  background: var(--color-gray-01);
  padding: 10px;
  border-radius: 5px;
}

.date_filter .date_confirm {
  background: var(--color-primary);
  color: #fff;
  padding: 5px 10px;
}

@media screen and (max-width: 768px) {
  .date_filter {
    flex-wrap: wrap;
  }
}

.bid_share_table table {
  width: 100%;
  text-align: center;
  border-collapse: collapse;
}

.bid_share_table th {
  border-top: 1px solid #121212;
  border-bottom: 1px solid var(--color-gray-02);
  background: var(--color-gray-01);
}

.bid_share_table tr {
  transition: 0.3s all;
}

.bid_share_table tr:hover {
  background: var(--color-gray-01);
}

.bid_share_table td {
  border-bottom: 1px solid var(--color-gray-02);
}

.bid_share_table th,
.bid_share_table td {
  text-align: center;
  padding: 10px;
  font-size: 0.875rem;
  line-height: 1.5em;
}

.s_board_bid #bo_v_con.share_content {
  background: #fff;
  color: #121212;
  justify-content: flex-start;
}

.s_board_bid_share h3 {
  padding-bottom: 15px;
}

.bid_share_content {
  margin-bottom: 40px;
}

.s_board_bid_share .cmt_btn {
  color: var(--color-primary);
  font-size: 1rem;
}

.s_board_bid_share .bo_vc_w textarea {
  box-shadow: none;
  padding: 20px;
}

.s_board_bid_share .bid_no {
  color: var(--color-primary);
}

/* =================================================================
   [모바일 반응형] 고유번호 찌그러짐 방지 & 마감일 태그 절대배치
   ================================================================= */
@media screen and (max-width: 768px) {
  
  /* 헤더 컨테이너: 마감일 태그 공간 확보를 위해 padding-bottom 추가 */
  .bid_header_flex {
    height: 70px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative; /* 자식 absolute 기준점 */
    padding-bottom: 45px; /* 투찰마감 태그 들어갈 공간 확보 */
    margin-bottom: 10px;
    align-content: center;
  }

  /* 좌측 공고번호: 우측 배지 영역(약 90px) 제외하고 넓게 사용 */
  .bid_no_info {
    width: calc(100% - 90px); 
  }
  
  .bid_no_info .no {
    white-space: normal; /* 긴 번호 줄바꿈 허용 */
    word-break: break-all;
    font-size: 0.9rem;
    line-height: 1.4;
  }

  /* 우측 상태 박스: 정적 위치(static)로 변경하여 자식(deadline)이 header 기준 absolute 되게 함 */
  .bid_status_box {
    position: static; 
    width: auto;
  }
  
  /* 배지 위치: 우측 상단 고정 */
  .status_badge_wrap {
    position: absolute;
    top: 0;
    right: 0;
  }

  /* 마감일 태그: 공고번호 아래, 우측 하단에 절대 배치 */
  .bid_deadline_mini {
    position: absolute;
    bottom: 0;
    right: 0;
    width: auto;
    font-size: 0.8rem; /* 모바일에서 폰트 살짝 작게 */
    margin: 0 auto;
    width: 100%;
    /* top: 0; */
    /* padding: 14px; */
  }

  /* 상세정보 세로 배치 */
  .bid_infomation colgroup {
    display: none;
  }

  .bid_infomation tr {
    display: flex;
    flex-direction: column;
    width: 100%;
  }

  .bid_infomation tr th,
  .bid_infomation tr td {
    flex: 1;
    text-align: left;
    padding: 10px;
  }

  .bid_infomation tr th {
    background: #f9f9f9;
    border-bottom: none;
    padding-bottom: 0;
  }

  .bid_member_info {
    grid-template-columns: 1fr;
  }
}