/* ============================================================================
   reg-write.css — 등기신청 글쓰기 폼(write.php) 통합 스타일 (2026-06-25 신설)
   ----------------------------------------------------------------------------
   대상: app/reg/write.php  (#bo_w 컨테이너 / layout.php reg_head·reg_foot chrome)
   범위: 데스크톱 + 모바일 통합. (구 reg-write-mobile.css 흡수·대체 → link 1개)
   원칙: CSS-only. HTML 구조·JS 훅·기능 100% 보존. 클래스/ID 셀렉터 불변 전제.
        display 를 !important 로 고정하지 않음(카테고리 토글·검색결과·주소 iframe
        등 JS 가 style.display 로 제어 → 시각 강조만, 표시제어는 JS 에 위임).
   로드: write.php 가 인라인 <link> 로 주입(layout.php 비건드림 = 멀티세션 안전).
        bootstrap5 → tokens.css → kdca-reg.css → (마지막) reg-write.css 순서로
        로드되어 kdca-reg.css 데스크톱 잔재(absolute label·padding-left:50px·
        regtitle width:400px 등)를 안전하게 오버라이드.
   디자인: 정부기관 차분 테마 — 흰 카드(radius 16)·은은한 shadow·네이비 섹션헤더+
          번호칩·클린 입력(radius 12·1.5보더·포커스 글로우)·세그먼트 라디오 칩·
          드롭존 카드·절제된 프라이머리 버튼. 그라데이션/네온 배제(솔리드 위주).
   팔레트: reg-change.css 정합 — primary #2e81ec / navy #1f3a5f / dark #202020 /
          red #f54646(검증 의미색). 보더 #d9e0ea·#e6ecf3, 서브배경 #f7f9fc.
   ============================================================================ */

/* ── 로컬 토큰 (#bo_w 스코프) ─────────────────────────────────────────────── */
#bo_w{
  --rw-primary:        #2e81ec;
  --rw-primary-dark:   #1f6fd6;
  --rw-primary-soft:   #eaf2ff;
  --rw-primary-soft2:  #f1f6fc;
  --rw-glow:           rgba(46,129,236,.16);
  --rw-navy:           #1f3a5f;
  --rw-navy-dark:      #16304e;
  --rw-dark:           #202020;
  --rw-red:            #f54646;
  --rw-ink:            #1f2937;
  --rw-ink-soft:       #475467;
  --rw-muted:          #667085;
  --rw-line:           #e6ecf3;
  --rw-line-strong:    #d9e0ea;
  --rw-bg-soft:        #f7f9fc;
  --rw-radius-card:    16px;
  --rw-radius-input:   12px;
  --rw-shadow-card:    0 1px 2px rgba(16,24,40,.04), 0 8px 28px rgba(16,24,40,.07);
}

/* ════════════════════════════════════════════════════════════════════════════
   [공통 / 전 뷰포트] 컨테이너
   ════════════════════════════════════════════════════════════════════════════ */
#bo_w{
  max-width: 960px;
  margin: 0 auto !important;
  -webkit-font-smoothing: antialiased;
  color: var(--rw-ink);
}
#bo_w *,#bo_w *::before,#bo_w *::after{ box-sizing: border-box; }

/* ════════════════════════════════════════════════════════════════════════════
   [데스크톱 기본 = 미디어쿼리 없음] — 아래 @media(max-width:980px) 가 재정의
   reg-change 디자인 언어를 write.php 실제 셀렉터에 매핑.
   ════════════════════════════════════════════════════════════════════════════ */

/* ── 상단 제목(.h2_title_center) + 룰(.line-5-red) ──────────────────────────── */
#bo_w .h2_title_center{
  font-size: 27px !important;
  font-weight: 900;
  letter-spacing: -.02em;
  color: var(--rw-dark);
  margin: 4px 0 12px !important;
  padding: 0 10px !important;
  line-height: 1.25;
}
#bo_w .h2_title_center .kp-cat-suffix{ color: var(--rw-primary); opacity: 1 !important; }
#bo_w .line-5-red.div-center{
  height: 4px !important; width: 54px !important; border-radius: 4px;
  background: var(--rw-red) !important; margin: 0 auto 18px !important;
}

/* ── 등기종류 안내 배너(.regtype) — 차분한 알약형 ──────────────────────────── */
#bo_w .regtype{
  border-radius: 14px !important;
  padding: 15px 20px !important;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  line-height: 1.65;
  border: 1px solid transparent !important;
  box-shadow: 0 4px 14px rgba(16,24,40,.06);
  margin: 0 0 4px;
}
/* wr_12 의미색 유지(일반=다크 / 확인=블루 / 검증=레드) — 채도만 절제 */
#bo_w .regtype.bg-dark{ background: var(--rw-navy) !important; color: #eaf0f8 !important; }
#bo_w .regtype.bg-blue{ background: #1f5fb0 !important;        color: #eaf2ff !important; }
#bo_w .regtype.bg-red { background: #c63a3a !important;        color: #fdeaea !important; }
#bo_w .regtype .text-yellow{ color: #ffe08a !important; }

/* ── 상단 메타(접수번호 / 등기종류 라벨) ───────────────────────────────────── */
#bo_w .frm_t.sm-fs-12,
#bo_w .frm_t{ font-size: 13.5px !important; color: var(--rw-ink-soft); margin: 18px 0 6px; }
#bo_w .frm_t .text-red,
#bo_w .frm_t .border-b2{ color: var(--rw-primary-dark) !important; border-bottom-color: var(--rw-primary) !important; font-weight: 800; }

#bo_w .fw-900.fs-14{ display: block; font-size: 14px !important; color: var(--rw-ink); margin: 6px 0 0; }
/* 등기종류 인라인 배지(.btn-14 + 의미색) — 알약 */
#bo_w .fw-900.fs-14 .btn-14{
  display: inline-block; border-radius: 999px; padding: 4px 14px !important;
  font-size: 12.5px !important; font-weight: 800; color: #fff; vertical-align: middle; margin-left: 4px;
}
#bo_w .fw-900.fs-14 .btn-14.bg-dark{ background: var(--rw-navy) !important; }
#bo_w .fw-900.fs-14 .btn-14.bg-blue{ background: var(--rw-primary) !important; }
#bo_w .fw-900.fs-14 .btn-14.bg-red { background: var(--rw-red) !important; }

/* 비로그인 안내(.cont_text_info.bg-gray1) — 부드러운 경고 카드 */
#bo_w .cont_text_info.bg-gray1{
  background: linear-gradient(135deg,#fff7ed 0%,#fffbf5 100%) !important;
  border: 1px solid #fde2c0 !important; border-radius: 14px !important;
  padding: 16px 18px !important;
}
#bo_w .cont_text_info .text-red{ color: #b45309 !important; }
#bo_w .cont_text_info .btn.bg-yellow2{ border-radius: 10px !important; }

/* ════════════════════════════════════════════════════════════════════════════
   섹션 카드화 (.border-b2 래퍼 = 흰 카드)
   write.php 의 3개 대섹션(01 물건 / 02 상세 / 03 소유·저작)은 모두
   `<div class="border-b2 (mt50)">` 직계 래퍼 → 카드로 승격.
   ════════════════════════════════════════════════════════════════════════════ */
#bo_w .border-b2{
  background: #fff;
  border: 1px solid var(--rw-line) !important;
  border-radius: var(--rw-radius-card);
  box-shadow: var(--rw-shadow-card);
  padding: 8px 20px 22px;
  margin: 18px 0 0 !important;
}
#bo_w .border-b2.mt50{ margin-top: 18px !important; }
/* 카드 내부에 중첩된 border-b2(소유자/저작권자 그룹)는 카드 효과 제거 → 평면 그룹 */
#bo_w .border-b2 .border-b2{
  background: transparent; border: 0 !important; box-shadow: none;
  border-radius: 0; padding: 0; margin: 0 !important;
}

/* ── 섹션 헤더바(.regtitle.btn.btn-dark) — 네이비 헤더 + 번호칩 느낌 ────────── */
#bo_w .regtitle{
  width: 100% !important;          /* kdca-reg width:400px!important 무력화 */
  max-width: 100% !important;
  text-align: left !important;
  padding: 15px 18px !important;
  margin: 14px 0 0 !important;
}
#bo_w .regtitle.btn.btn-dark{
  display: flex !important; align-items: center; gap: 10px;
  background: var(--rw-navy) !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: 13px !important;
  font-size: 15.5px !important; font-weight: 800 !important;
  box-shadow: 0 6px 18px rgba(31,58,95,.18);
  cursor: pointer;
}
#bo_w button.regtitle.btn.btn-dark{ width: 100% !important; }
#bo_w .regtitle.btn.btn-dark:hover{ background: var(--rw-navy-dark) !important; color:#fff !important; }
#bo_w .regtitle.btn.btn-dark > i.fa{
  flex: 0 0 auto; width: 30px; height: 30px; border-radius: 9px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.14); color: #fff; font-size: 14px; margin: 0 !important;
}
#bo_w .regtitle.btn.btn-dark > i.fa.fa-chevron-down{
  background: transparent; width: auto; height: auto; margin-left: auto !important; opacity: .8;
}

/* ── 섹션 본문(채워진 박스) — 카드 안쪽 패널 ───────────────────────────────── */
#bo_w .border-t2.bg-bluel.outline,
#bo_w .collapse.bg-bluel.outline,
#bo_w .collapse.bg-grayl.outline{
  background: var(--rw-bg-soft) !important;
  border: 1px solid var(--rw-line) !important;
  border-radius: 14px !important;
  padding: 18px !important;
  margin-top: 12px !important;
}

/* ── 소제목(.frm_tl.h7_tl / .h6_tl) — 좌측 강조 라벨 ────────────────────────── */
#bo_w .frm_tl{ margin-top: 20px !important; }
#bo_w .frm_tl.h7_tl,
#bo_w .h7_tl{
  border-left: 4px solid var(--rw-primary) !important;
  padding: 2px 0 2px 12px !important;
  margin: 20px 0 10px !important;
  font-size: 15px !important; font-weight: 800 !important;
  color: var(--rw-ink) !important; line-height: 1.4;
}
#bo_w .h6_tl,
#bo_w .frm_t1.h6_tl{
  border-left: 4px solid var(--rw-navy) !important;
  padding: 2px 0 2px 12px !important;
  margin: 24px 0 10px !important;
  font-size: 16.5px !important; font-weight: 800 !important;
  color: var(--rw-ink) !important; line-height: 1.4;
}
#bo_w .frm_tl.h7_tl .text-red,
#bo_w .frm_tl .text-yellow{ color: var(--rw-red) !important; }

/* 안내 보조문구 톤 정리 */
#bo_w .fs-11.fw-300,
#bo_w .fs-12.mt10.fw-300,
#bo_w .fs-12.fw-300{ color: var(--rw-muted) !important; line-height: 1.6; }

/* ── 하위 토글바(.btn.btn-gray.w200 = 소유자/저작권자 표시) ─────────────────── */
#bo_w .btn.btn-gray.w200{
  display: inline-flex !important; align-items: center; gap: 8px;
  width: auto !important; min-width: 200px;
  background: #fff !important; color: var(--rw-ink) !important;
  border: 1.5px solid var(--rw-line-strong) !important; border-radius: 11px !important;
  padding: 11px 16px !important; font-weight: 700 !important;
  margin: 22px 0 14px !important;
}
#bo_w .btn.btn-gray.w200 i.fa{ color: var(--rw-muted) !important; margin-left: 6px !important; }
#bo_w .well.mp-0{
  background: var(--rw-bg-soft) !important;
  border: 1px solid var(--rw-line) !important;
  border-radius: 13px !important;
  padding: 16px !important; margin: 0 0 6px !important;
}

/* ════════════════════════════════════════════════════════════════════════════
   입력 컨트롤 — 클린 라운드 + 포커스 글로우
   ════════════════════════════════════════════════════════════════════════════ */

/* 일반 input / select / textarea */
#bo_w input[type=text],
#bo_w input[type=email],
#bo_w input[type=number],
#bo_w input[type=tel],
#bo_w input[type=date],
#bo_w .frm_input,
#bo_w .full_input,
#bo_w select,
#bo_w select.frm_input,
#bo_w select.full_input,
#bo_w textarea,
#bo_w .form-control{
  width: 100%;
  height: auto;
  font-size: 15px !important;
  color: var(--rw-ink) !important;            /* kdca-reg .frm_input{color:#5183e0!important} 무력화 */
  background: #fff;
  border: 1.5px solid var(--rw-line-strong) !important;
  border-radius: var(--rw-radius-input) !important;
  padding: 12px 14px !important;
  margin: 0 0 12px !important;                 /* kdca-reg margin-left/right:10px 무력화 */
  line-height: 1.45;
  -webkit-appearance: none; appearance: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
#bo_w textarea,
#bo_w .form-control{ min-height: 110px !important; resize: vertical !important; font-weight: 400 !important; }
#bo_w .wr_content textarea{ height: auto !important; }   /* kdca-reg .wr_content textarea{height:150px!important} */

/* 포커스 */
#bo_w input:focus,
#bo_w .frm_input:focus,
#bo_w select:focus,
#bo_w textarea:focus,
#bo_w .form-control:focus{
  outline: none !important;
  border-color: var(--rw-primary) !important;
  box-shadow: 0 0 0 3px var(--rw-glow) !important;
}

/* placeholder 차분하게(kdca-reg 의 주황 placeholder 완화) */
#bo_w input::placeholder,
#bo_w textarea::placeholder{ color: #9aa4b2 !important; font-size: 13.5px !important; font-weight: 400 !important; }

/* select 화살표 */
#bo_w select,
#bo_w select.frm_input,
#bo_w select.full_input{
  padding-right: 40px !important; cursor: pointer;
  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='%238a93a3' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
/* 의미색 인풋 보존(연한 강조 톤) */
#bo_w .frm_input.bg-orange-b{ background: #fffaf3 !important; }
#bo_w .frm_input.text-blue{ color: var(--rw-primary-dark) !important; }

/* ── 아이콘 필드(.bo_w_ico.write_div) = input-group ────────────────────────────
   kdca-reg L64-65: absolute label + padding-left:50px 오버레이를 명시적 리셋하고
   아이콘+입력 통합 그룹으로 재구성. (입력이 있는 경우만) */
#bo_w .bo_w_ico.write_div:has(> .frm_input),
#bo_w .bo_w_ico.write_div:has(> select.frm_input){
  display: flex !important; align-items: stretch !important;
  position: relative;
  border: 1.5px solid var(--rw-line-strong) !important;
  border-radius: var(--rw-radius-input) !important;
  background: #fff !important; overflow: hidden;
  margin: 0 0 12px !important; padding: 0 !important;
  width: 100%; max-width: 100%;
}
#bo_w .bo_w_ico.write_div:has(> .frm_input) > .lb_icon,
#bo_w .bo_w_ico.write_div:has(> select.frm_input) > .lb_icon,
#bo_w .bo_w_ico.write_div:has(> .frm_input) > .lb_icon1,
#bo_w .bo_w_ico.write_div:has(> .frm_input) > label{
  position: static !important;                 /* absolute 해제 */
  flex: 0 0 auto !important;
  width: 46px !important; min-width: 46px; height: auto !important; line-height: normal !important;
  margin: 0 !important; padding: 0 !important;
  display: flex !important; align-items: center; justify-content: center;
  background: var(--rw-primary-soft2) !important;
  color: var(--rw-primary) !important;
  border: 0 !important; border-right: 1px solid var(--rw-line) !important;
  border-radius: 0 !important; font-size: 14px; text-align: center;
}
/* 주소검색처럼 라벨에 텍스트가 있는 경우(w60/lb_icon1) 폭 자동 */
#bo_w .bo_w_ico.write_div:has(> .frm_input) > .lb_icon1.w60{
  width: auto !important; min-width: 72px; padding: 0 12px !important;
  font-size: 12.5px; font-weight: 700; border-radius: 0 !important;
}
#bo_w .bo_w_ico.write_div:has(> .frm_input) > label i.fa{ color: var(--rw-primary) !important; margin: 0 !important; }
#bo_w .bo_w_ico.write_div:has(> .frm_input) > .frm_input,
#bo_w .bo_w_ico.write_div:has(> .frm_input) > .full_input,
#bo_w .bo_w_ico.write_div:has(> select.frm_input) > select{
  flex: 1 1 auto !important; min-width: 0 !important; width: auto !important;
  border: 0 !important; border-radius: 0 !important; margin: 0 !important;
  padding-left: 14px !important;               /* padding-left:50px 무력화 */
  box-shadow: none !important; background: transparent !important;
}
#bo_w .bo_w_ico.write_div:has(> select.frm_input) > select{ padding-right: 40px !important; }
#bo_w .bo_w_ico.write_div:has(> .frm_input):focus-within{
  border-color: var(--rw-primary) !important;
  box-shadow: 0 0 0 3px var(--rw-glow) !important;
}
/* 아이콘필드의 col-sm-6 패딩 정리(2열 간격) */
#bo_w .row > .col-sm-6.bo_w_ico.write_div{ padding-left: 6px; padding-right: 6px; }

/* ── 링크 입력(.bo_w_link.write_div) ──────────────────────────────────────── */
#bo_w .bo_w_link.write_div{
  display: flex !important; align-items: stretch !important; position: relative;
  border: 1.5px solid var(--rw-line-strong) !important; border-radius: var(--rw-radius-input) !important;
  background: #fff !important; overflow: hidden; margin: 0 0 12px !important;
}
#bo_w .bo_w_link.write_div > label{
  position: static !important; flex: 0 0 auto !important;
  width: 46px !important; height: auto !important; line-height: normal !important; margin: 0 !important;
  display: flex !important; align-items: center; justify-content: center;
  background: var(--rw-primary-soft2) !important; color: var(--rw-primary) !important;
  border: 0 !important; border-right: 1px solid var(--rw-line) !important; border-radius: 0 !important;
}
#bo_w .bo_w_link.write_div > label i.fa{ color: var(--rw-primary) !important; }
#bo_w .bo_w_link.write_div > .frm_input{
  flex: 1 1 auto !important; min-width: 0 !important; width: auto !important;
  border: 0 !important; border-radius: 0 !important; margin: 0 !important;
  padding-left: 14px !important; box-shadow: none !important; background: transparent !important;
}
#bo_w .bo_w_link.write_div:focus-within{ border-color: var(--rw-primary) !important; box-shadow: 0 0 0 3px var(--rw-glow) !important; }

/* ── 2열 그리드 행(.row > .col-sm-*) 정렬 ──────────────────────────────────── */
#bo_w .row{ margin-left: -6px; margin-right: -6px; }
#bo_w .row > [class*="col-sm-"]{ padding-left: 6px; padding-right: 6px; }
#bo_w .row > .write_div{ padding-left: 6px; padding-right: 6px; }
#bo_w .col-sm-12.pl0,
#bo_w .write_div.pl0{ padding-left: 6px !important; }

/* ── 시간기록(스포츠) 보조입력 ────────────────────────────────────────────── */
#bo_w #kdca_rec_time{ font-weight: 700 !important; color: var(--rw-primary-dark) !important; }
#bo_w #kdca_rec_h,#bo_w #kdca_rec_m,#bo_w #kdca_rec_s{
  width: 64px !important; text-align: center; margin-bottom: 0 !important; padding: 10px 6px !important;
}

/* ════════════════════════════════════════════════════════════════════════════
   라디오 — 세그먼트 칩 (카테고리 선택 / 보관방식 / 분할등기)
   :has(input:checked) 로 시각 강조만. display 토글 없음.
   ════════════════════════════════════════════════════════════════════════════ */
#bo_w .radio{
  display: flex !important; flex-wrap: wrap; gap: 10px;
  padding: 0 !important; background: transparent !important; max-width: 100%;
}
#bo_w .radio_f{
  display: inline-flex !important; align-items: center; gap: 9px;
  border: 1.5px solid var(--rw-line-strong); border-radius: 11px;
  background: #fff; padding: 11px 15px !important;
  margin: 0 10px 0 0 !important;
  font-size: 14px !important; font-weight: 600 !important; color: var(--rw-ink);
  cursor: pointer; transition: all .15s ease; line-height: 1.2;
}
#bo_w .radio_f input[type=radio],
#bo_w .radio_f input[type=checkbox]{
  width: 18px; height: 18px; accent-color: var(--rw-primary); margin: 0; flex: 0 0 auto;
}
#bo_w .radio_f:hover{ border-color: #b9cdf0; background: #fbfdff; }
#bo_w .radio_f:has(input:checked){
  border-color: var(--rw-primary); background: var(--rw-primary-soft); color: var(--rw-primary-dark);
  box-shadow: 0 0 0 3px var(--rw-glow); font-weight: 700 !important;
}
/* 카테고리 선택행: 4칩 균등하게 */
#bo_w .col-sm-12.pl0 > .radio_f.mr10{ flex: 1 1 168px; justify-content: flex-start; margin-bottom: 8px !important; }

/* 관리자 분할등기 라디오 그룹(.radio.outline-btn.bg-gray) */
#bo_w .radio.outline-btn.bg-gray{
  background: var(--rw-bg-soft) !important; border: 1px solid var(--rw-line) !important;
  border-radius: 12px; padding: 8px !important; gap: 8px;
}
#bo_w .radio.outline-btn.bg-gray .radio_f{ flex: 1 1 45%; }

/* ════════════════════════════════════════════════════════════════════════════
   파일 첨부 — 드롭존 카드
   ════════════════════════════════════════════════════════════════════════════ */
#bo_w .mt20.mb10{ font-size: 14px; font-weight: 700; color: var(--rw-ink); margin: 20px 0 10px !important; }
#bo_w .mt20.mb10 .fw-300,#bo_w .mt20.mb10 .fw-300.fs-12{ font-weight: 400 !important; color: var(--rw-muted); }

/* 대표이미지 행 컨테이너(.row.border-1.bg-white) */
#bo_w .row.border-1.bg-white{
  display: block !important;
  border: 0 !important; background: transparent !important; margin: 0 !important;
}
#bo_w .col-sm-6.bo_w_flie.write_div,
#bo_w .bo_w_flie.write_div{
  width: 100% !important; max-width: 100% !important; float: none !important;
  padding: 0 !important; margin: 0 0 12px !important; position: relative;
}
/* 드롭존 카드 본체(.file_wr.write_div) */
#bo_w .bo_w_flie .file_wr.write_div,
#bo_w .file_wr.write_div{
  display: flex !important; align-items: center; gap: 12px;
  border: 1.5px dashed #c2cdda !important; background: var(--rw-bg-soft) !important;
  border-radius: 13px !important; padding: 13px 15px !important;
  width: 100% !important; height: auto !important; margin: 0 !important;
}
#bo_w .file_wr.write_div:hover{ border-color: var(--rw-primary) !important; background: #fbfdff !important; }
/* 다운로드 아이콘 라벨 → 칩 */
#bo_w .bo_w_flie .file_wr .lb_icon,
#bo_w .file_wr .lb_icon{
  position: static !important; flex: 0 0 auto !important;
  width: 42px !important; height: 42px !important; line-height: normal !important;
  margin: 0 !important; display: inline-flex !important; align-items: center; justify-content: center;
  background: var(--rw-primary) !important; border-radius: 11px !important; color: #fff !important; font-size: 16px;
}
#bo_w .file_wr .lb_icon i.fa{ color: #fff !important; }
/* file input */
#bo_w .bo_w_flie .frm_file,
#bo_w .file_wr .frm_file,
#bo_w .frm_file{
  flex: 1 1 auto !important; min-width: 0 !important; width: auto !important;
  margin: 0 !important; padding: 0 !important; border: 0 !important; background: transparent !important;
  font-size: 13px !important; color: var(--rw-ink-soft) !important;
}
#bo_w .frm_file::file-selector-button,
#bo_w .frm_file::-webkit-file-upload-button{
  font-size: 13px !important; font-weight: 700 !important;
  padding: 9px 14px !important; margin-right: 12px !important;
  border: 0 !important; border-radius: 9px !important;
  background: var(--rw-primary-soft) !important; color: var(--rw-primary-dark) !important; cursor: pointer;
}
/* 미리보기 영역 */
#bo_w #image-holder{ width: 100% !important; padding: 8px 0 0 !important; }
#bo_w .file-preview{ margin-top: 10px !important; min-height: 30px; }
#bo_w .file-preview img,
#bo_w .thumb-image,
#bo_w .preview-image{ max-width: 100% !important; height: auto !important; border-radius: 10px !important; }
#bo_w .thumb-video,#bo_w .thumb-audio,
#bo_w .preview-video,#bo_w .preview-audio{ width: 100% !important; max-width: 100% !important; margin: 6px 0 !important; }

/* ════════════════════════════════════════════════════════════════════════════
   리치에디터(.kdca-rte) — 둘레만 카드톤(인라인 <style> 기능정의는 보존)
   ════════════════════════════════════════════════════════════════════════════ */
#bo_w .kdca-rte{
  border: 1.5px solid var(--rw-line-strong) !important;
  border-radius: var(--rw-radius-input) !important; overflow: hidden;
}
#bo_w .kdca-rte:focus-within{ border-color: var(--rw-primary) !important; box-shadow: 0 0 0 3px var(--rw-glow) !important; }
#bo_w .kdca-rte-toolbar{ background: var(--rw-bg-soft) !important; border-bottom-color: var(--rw-line) !important; }
#bo_w .kdca-rte-btn{ border-radius: 7px !important; }
#bo_w .kdca-rte-btn:hover{ background: var(--rw-primary-soft) !important; border-color: var(--rw-primary) !important; color: var(--rw-primary-dark) !important; }

/* ════════════════════════════════════════════════════════════════════════════
   담당 등기사 검색 — 통합 인풋바
   #search_type + #search_keyword + #searchBtn 을 한 줄 그룹으로.
   ════════════════════════════════════════════════════════════════════════════ */
#bo_w .flex-y-center .d-flex.align-items-center{
  display: flex !important; width: 100%; align-items: stretch !important;
  border: 1.5px solid var(--rw-line-strong); border-radius: var(--rw-radius-input);
  overflow: hidden; background: #fff;
}
#bo_w #search_type{
  flex: 0 0 auto !important; width: auto !important; min-width: 92px;
  font-size: 13px !important; padding: 11px 8px !important; margin: 0 !important;
  border: 0 !important; border-right: 1px solid var(--rw-line) !important; border-radius: 0 !important;
  background: var(--rw-primary-soft2) !important; height: auto !important; color: var(--rw-ink) !important;
}
#bo_w #search_keyword{
  flex: 1 1 auto !important; width: auto !important; min-width: 0 !important;
  font-size: 15px !important; padding: 11px 14px !important; margin: 0 !important;
  border: 0 !important; border-radius: 0 !important; background: #fff !important; height: auto !important;
}
#bo_w .d-flex.align-items-center:focus-within{ border-color: var(--rw-primary); box-shadow: 0 0 0 3px var(--rw-glow); }
#bo_w #searchBtn{
  flex: 0 0 auto !important; width: auto !important; white-space: nowrap;
  font-size: 13.5px !important; font-weight: 700 !important; padding: 0 18px !important; margin: 0 !important;
  border: 0 !important; border-radius: 0 !important;
  background: var(--rw-navy) !important; color: #fff !important;
}
#bo_w #searchBtn:hover{ background: var(--rw-navy-dark) !important; }
/* 검색결과 테이블 / 선택표시(표시제어는 JS — 시각만) */
#bo_w #search_results .table{ font-size: 13px; border-radius: 10px; overflow: hidden; }
#bo_w #search_results .table thead th{ background: var(--rw-bg-soft); color: var(--rw-ink-soft); font-weight: 700; border: 0; }
#bo_w #selected_validator .alert.alert-success{
  background: #e7f7ee !important; border: 1px solid #b8e6c8 !important; color: #15803d !important;
  border-radius: 12px !important; padding: 12px 14px !important;
}

/* ════════════════════════════════════════════════════════════════════════════
   서명패드 — canvas 크기는 인라인 유지(좌표 의존). 둘레 톤만.
   (캔버스 폭/높이를 CSS 로 바꾸지 않음)
   ════════════════════════════════════════════════════════════════════════════ */
#bo_w .sigpad-box{
  border: 1.5px solid var(--rw-line-strong) !important; border-radius: 13px !important;
  background: #fff !important; padding: 14px !important;
}
#bo_w .sigpad-box .sigpad-title{ color: var(--rw-ink) !important; }

/* ════════════════════════════════════════════════════════════════════════════
   개인정보 동의 + 제출
   ════════════════════════════════════════════════════════════════════════════ */
#bo_w .write_div_privacy{
  text-align: center; background: var(--rw-bg-soft);
  border: 1px solid var(--rw-line); border-radius: 13px; padding: 16px !important;
  border-bottom: 1px solid var(--rw-line) !important; margin: 8px 0 0 !important;
}

/* 제출 버튼바(.btn_confirm) */
#bo_w .btn_confirm.write_div{
  display: flex !important; flex-wrap: wrap; gap: 10px; justify-content: center;
  margin: 28px 0 0 !important;
}
#bo_w .btn_confirm.pb100{ padding-bottom: 80px !important; }
/* 프라이머리 제출(.btn_submit.bg-danger) — 차분한 블루 */
#bo_w #btn_submit.btn_submit,
#bo_w .btn_submit.bg-danger{
  display: inline-flex !important; align-items: center; justify-content: center; gap: 8px;
  min-width: 240px; font-size: 15.5px !important; font-weight: 800 !important;
  color: #fff !important; background: var(--rw-primary) !important;
  border: 0 !important; border-radius: 13px !important; padding: 15px 28px !important;
  box-shadow: 0 6px 18px rgba(46,129,236,.30); cursor: pointer;
  transition: transform .12s ease, box-shadow .18s ease, background .18s ease;
}
#bo_w #btn_submit.btn_submit:hover,
#bo_w .btn_submit.bg-danger:hover{ background: var(--rw-primary-dark) !important; transform: translateY(-1px); box-shadow: 0 10px 26px rgba(46,129,236,.40); color:#fff !important; }
#bo_w #btn_submit.btn_submit:active{ transform: translateY(0); }
/* 보조 버튼(새로작성 / 목록보기) — 고스트 */
#bo_w .btn_cancel.btn,
#bo_w a.btn_cancel.btn{
  display: inline-flex !important; align-items: center; justify-content: center; gap: 7px;
  background: #fff !important; color: var(--rw-ink) !important;
  border: 1.5px solid var(--rw-line-strong) !important; border-radius: 13px !important;
  padding: 15px 24px !important; font-weight: 700 !important; font-size: 15px !important;
}
#bo_w .btn_cancel.btn:hover,
#bo_w a.btn_cancel.btn:hover{ border-color: var(--rw-primary) !important; color: var(--rw-primary) !important; }

/* ════════════════════════════════════════════════════════════════════════════
   임시저장 플로팅바(#kdca_draftbar) — 데스크톱: 카드 위로 자연스럽게
   (인라인 position:fixed 는 유지, 모양만 정돈)
   ════════════════════════════════════════════════════════════════════════════ */
#kdca_draftbar{
  border: 1px solid var(--rw-line-strong) !important;
  border-radius: 999px !important;
  box-shadow: 0 6px 20px rgba(16,24,40,.16) !important;
}

/* ════════════════════════════════════════════════════════════════════════════
   [≤980px] 모바일 — 구 reg-write-mobile.css 규칙 흡수(검증완료분)
   ════════════════════════════════════════════════════════════════════════════ */
@media (max-width:980px){
 #bo_w{ width:100%!important; max-width:100%!important; padding:0 12px 88px!important; }
 #bo_w .page_title_in,#bo_w .titleBbar{ padding-left:0!important; padding-right:0!important; }

 /* 카드 패딩 축소 */
 #bo_w .border-b2{ padding:8px 14px 18px; border-radius:14px; }
 #bo_w .border-t2.bg-bluel.outline,
 #bo_w .collapse.bg-bluel.outline,
 #bo_w .collapse.bg-grayl.outline{ padding:14px!important; border-radius:12px!important; }

 /* 제목/배너 */
 #bo_w .h2_title_center{ font-size:21px!important; }
 #bo_w .regtype{ font-size:13px; padding:13px 15px!important; text-align:left; }

 /* 섹션 타이틀 */
 #bo_w .frm_tl,#bo_w .h7_tl{ font-size:15px!important; margin:18px 0 10px!important; }
 #bo_w .regtitle.btn{ font-size:15px!important; padding:14px 16px!important; border-radius:12px!important; margin-top:14px!important; }

 /* 입력/텍스트영역/셀렉트(일반) — iOS 16px 줌방지 */
 #bo_w input[type=text],#bo_w input[type=email],#bo_w input[type=number],#bo_w input[type=tel],#bo_w input[type=date],
 #bo_w .frm_input,#bo_w .full_input,#bo_w textarea,#bo_w .form-control,
 #bo_w select,#bo_w select.frm_input,#bo_w select.full_input{ font-size:16px!important; padding:13px 14px!important; }

 /* 아이콘 input-group(모바일 동일 패턴) */
 #bo_w .bo_w_ico.write_div:has(> .frm_input),
 #bo_w .bo_w_ico.write_div:has(> select.frm_input){ width:100%!important; max-width:100%!important; }
 #bo_w .bo_w_ico.write_div:has(> .frm_input) > .lb_icon,
 #bo_w .bo_w_ico.write_div:has(> select.frm_input) > .lb_icon,
 #bo_w .bo_w_ico.write_div:has(> .frm_input) > label{ width:46px!important; font-size:15px; }

 /* 입력 없는 래퍼는 블록 */
 #bo_w .bo_w_ico.write_div:not(:has(> .frm_input)):not(:has(> select.frm_input)){ display:block!important; width:100%!important; padding:0!important; margin:0 0 4px!important; border:0!important; background:transparent!important; }
 #bo_w .lb_icon{ font-size:13px; color:var(--rw-muted); }

 /* 2열 → 1열 스택 */
 #bo_w .row{ margin-left:0; margin-right:0; }
 #bo_w .row > [class*="col-sm-"],
 #bo_w .row > .write_div{ width:100%!important; max-width:100%!important; flex:1 1 100%!important; padding-left:0!important; padding-right:0!important; float:none!important; }
 #bo_w .md-none{ display:none!important; }

 /* 파일 첨부 드롭존 */
 #bo_w .row.border-1{ display:block!important; margin:0!important; border:0!important; }
 #bo_w .col-sm-6.bo_w_flie,#bo_w .bo_w_flie.write_div{ width:100%!important; max-width:100%!important; padding:0!important; margin-bottom:12px!important; float:none!important; }
 #bo_w .file_wr.write_div{ padding:12px 14px!important; }
 #bo_w .file_wr .lb_icon{ width:40px!important; height:40px!important; }

 /* 라디오 칩 */
 #bo_w .radio{ gap:8px; }
 #bo_w .radio_f{ flex:1 1 45%; min-width:45%; margin:0!important; padding:11px 12px!important; }
 #bo_w .col-sm-12.pl0 > .radio_f.mr10{ flex:1 1 45%; min-width:45%; }
 #bo_w .radio.outline-btn.bg-gray .radio_f{ flex:1 1 45%; }

 /* 담당 등기사 검색 — 입력 넓게, 버튼 컴팩트, 한 줄 통합 */
 #bo_w .flex-y-center .d-flex.align-items-center{ width:100%!important; }
 #bo_w #search_type{ min-width:78px; font-size:13px!important; padding:11px 6px!important; }
 #bo_w #search_keyword{ font-size:16px!important; padding:11px 12px!important; }
 #bo_w #searchBtn{ font-size:13px!important; padding:0 16px!important; }

 /* 임시저장 플로팅바 — 하단바 위로 이동 */
 #kdca_draftbar{ bottom:80px!important; right:12px!important; left:auto!important; max-width:calc(100vw - 24px)!important; }

 /* 제출 버튼 영역 하단바 클리어 */
 #bo_w .btn_confirm.write_div{ gap:8px; }
 #bo_w #btn_submit.btn_submit,#bo_w .btn_submit.bg-danger{ width:100%; min-width:0; margin-bottom:8px!important; }
 #bo_w .btn_cancel.btn,#bo_w a.btn_cancel.btn{ flex:1 1 45%; padding:13px 16px!important; }

 /* 여백 */
 #bo_w .mt50{ margin-top:18px!important; }
 #bo_w .well.mp-0{ border-radius:12px!important; }
}

/* ── [≤640px] 초소형 ───────────────────────────────────────────────────────── */
@media (max-width:640px){
 #bo_w .border-b2{ padding:6px 12px 16px; }
 #bo_w .h2_title_center{ font-size:19px!important; }
 #bo_w .radio_f,#bo_w .col-sm-12.pl0 > .radio_f.mr10{ flex:1 1 100%; min-width:100%; }
 #bo_w .btn_cancel.btn,#bo_w a.btn_cancel.btn{ flex:1 1 100%; }
}
