/* ===== 리셋 ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif; font-size: 12px; color: #222; background: #f5f6f8; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; }

/* 숫자 입력 스피너(위/아래 화살표) 전역 제거 — 모든 페이지, 직접입력이 더 빠르고 정확함 */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none; margin: 0;
}
input[type="number"] { -moz-appearance: textfield; appearance: textfield; }

/* ===== 헤더 ===== */
.site-header {
  position: sticky; top: 0; z-index: 200;
  background: #1a237e; color: #fff;
  height: 46px; padding: 0 20px;
  display: flex; align-items: center; gap: 28px;
  box-shadow: 0 2px 6px rgba(0,0,0,.25);
}
.logo { font-size: 15px; font-weight: 700; }
nav a { font-size: 13px; color: rgba(255,255,255,.8); margin-left: 16px; }
nav a:hover { color: #fff; }

/* ===== 계정 영역(헤더 우측, 12-11) ===== */
.acct-area { margin-left: auto; display: flex; align-items: center; gap: 10px; font-size: 12px; }
.acct-login-link { font-weight: 700; }
.acct-login-link:hover { text-decoration: underline; }
.acct-id { font-weight: 700; }
.acct-admin-link { opacity: .85; }
.acct-admin-link:hover { opacity: 1; text-decoration: underline; }
.acct-logout-btn {
  color: #fff; border: 1px solid rgba(255,255,255,.5); border-radius: 4px;
  padding: 3px 9px; font-size: 11px;
}
.acct-logout-btn:hover { background: rgba(255,255,255,.12); }

/* ===== 레이아웃 ===== */
.layout { display: flex; height: calc(100vh - 46px); overflow: hidden; }
/* 목록 화면은 화면 높이에 고정된 레이아웃이라, 하단 사업자 정보 줄(30px)만큼 빼 주지 않으면 그 줄이 화면 밖으로 밀린다 */
.has-fixed-footer .layout { height: calc(100vh - 46px - 30px); }

/* ===== 하단 사업자 정보(js/siteInfo.js가 만든다) ===== */
.site-footer {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 30px; padding: 6px 20px; font-size: 11px; color: #777;
  background: #fff; border-top: 1px solid #e0e0e0;
}
.has-fixed-footer .site-footer { height: 30px; padding: 0 20px; white-space: nowrap; overflow: hidden; }
.site-footer-info { overflow: hidden; text-overflow: ellipsis; }
.site-footer-links { display: flex; gap: 14px; flex-shrink: 0; }
.site-footer-links a:hover { text-decoration: underline; }
.site-footer-strong { font-weight: 700; color: #444; }
/* 넘치는 하단 줄 접기(2026-11-13, js/siteInfo.js) — 상호·전화만, 누르면 전체가 위로 */
.site-footer-fold { cursor: pointer; }
.site-footer-more {
  position: fixed; left: 0; right: 0; bottom: 30px; z-index: 400;
  background: #fff; border-top: 1px solid #c5cae9; box-shadow: 0 -4px 10px rgba(0,0,0,.08);
  padding: 8px 20px; font-size: 11px; color: #555; line-height: 1.7;
}
.site-footer-more[hidden] { display: none; }
.doc-body .site-footer, .dp-body .site-footer { margin-top: 32px; flex-wrap: wrap; }

/* ===== 좌측 사이드바 (필터 조건 목록) ===== */
.filter-sidebar {
  width: 190px; min-width: 190px;
  background: #fff; border-right: 1px solid #e0e0e0;
  display: flex; flex-direction: column;
  overflow: hidden;
}
.fs-block { flex: 1 1 50%; min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
.fs-divider { flex-shrink: 0; height: 1px; background: #e0e0e0; }
.fs-title {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 12px 8px;
  border-bottom: 2px solid #1a237e;
  font-weight: 700; font-size: 12px; color: #1a237e;
  flex-shrink: 0;
}
.fs-reset-all {
  font-size: 10px; color: #e53935;
  border: 1px solid #ef9a9a; border-radius: 10px;
  padding: 2px 7px; background: #fff5f5;
}
.fs-reset-all:hover { background: #ffebee; }

.fs-body { flex: 1; overflow-y: auto; padding: 8px; display: flex; flex-direction: column; gap: 4px; }

.fs-empty { font-size: 12px; color: #757575; text-align: center; margin-top: 20px; }

.fs-item {
  background: #f3f4fd; border: 1px solid #c5cae9;
  border-radius: 5px; padding: 6px 8px;
  display: flex; flex-direction: column; gap: 2px;
}
.fs-item-top { display: flex; align-items: center; justify-content: space-between; }
.fs-field { font-size: 10px; font-weight: 700; color: #1a237e; }
.fs-remove { font-size: 14px; color: #9fa8da; line-height: 1; }
.fs-remove:hover { color: #c62828; }
.fs-val { font-size: 11px; color: #333; word-break: break-all; }

/* ===== 최근 본 매물 (사이드바 아래 칸) ===== */
.recent-list { padding-bottom: 8px; }
.recent-item {
  padding: 5px 6px; border: 1px solid #e3e6ee; border-radius: 3px;
  background: #f3f4fd; cursor: pointer; font-size: 11px;
  display: flex; flex-direction: column; gap: 1px;
}
.recent-item:hover { background: #e8eaf6; }
.recent-item b { color: #1a237e; font-weight: 700; }
.recent-item .recent-biz { color: #555; }
.recent-item .recent-time { font-size: 10px; color: #888; }

/* ===== 메인 영역 ===== */
.main-wrap { flex: 1; overflow: hidden; display: flex; flex-direction: column; }

/* ===== 툴바 ===== */
.toolbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 7px 14px; background: #fff;
  border-bottom: 1px solid #e0e0e0; flex-shrink: 0;
}
.result-count { font-size: 12px; color: #555; }
.result-count strong { color: #1a237e; font-size: 13px; }
.btn-upload {
  background: #1a237e; color: #fff;
  padding: 6px 14px; border-radius: 4px; font-size: 12px; font-weight: 700;
}
.btn-upload:hover { background: #283593; }

/* ===== 테이블 ===== */
.table-wrapper { flex: 1; overflow: auto; }

.listing-table { width: max-content; min-width: 100%; border-collapse: collapse; font-size: 11px; }

/* 헤더 */
.listing-table thead { position: sticky; top: 0; z-index: 10; }
.listing-table th {
  background: #e8eaf6; border: 1px solid #c5cae9;
  padding: 0; vertical-align: middle;
  color: #1a237e; font-weight: 700;
  position: relative;
}

/* 컬럼 내 각 항목 (독립 클릭 영역) */
.th-field {
  display: flex; align-items: center; justify-content: center; gap: 3px;
  padding: 5px 7px; font-size: 11px; text-align: center;
  border-bottom: 1px solid #c5cae9; white-space: nowrap;
  min-height: 26px;
}
.th-field:last-child { border-bottom: none; }
.th-field.filterable { cursor: pointer; }
.th-field.filterable:hover { background: #c5cae9; }
.th-field.active-filter { background: #5c6bc0; color: #fff; }
.th-field.active-filter:hover { background: #3949ab; }
.th-icon { font-size: 10px; opacity: .8; }
.th-field.active-filter .th-icon { opacity: 1; }
.th-field.active-sort { background: #fff3e0; }
.th-field.active-sort .th-icon { opacity: 1; color: #bf360c; font-weight: 700; }

/* 정렬 팝업 (필터 팝업 내부 상단) */
.fp-sort { margin-bottom: 10px; padding-bottom: 10px; border-bottom: 1px solid #eee; }
.fp-sort-btns { display: flex; gap: 6px; }
.fp-sort-btn {
  flex: 1; padding: 8px 6px; font-size: 12px; font-weight: 600;
  border: 1px solid #c5cae9; border-radius: 4px; background: #fff; color: #333;
  cursor: pointer;
}
.fp-sort-btn:hover { background: #e8eaf6; }
.fp-sort-btn.active { background: #1a237e; color: #fff; border-color: #1a237e; }

/* 데이터 행 */
.listing-table td {
  border-right: 1px solid #d0d4dc;  /* 컬럼 구분선 더 또렷하게 */
  border-bottom: 2px solid #c5cae9; /* 행 구분선 더 또렷하게 */
  border-top: none; border-left: none;
  padding: 0;
  vertical-align: middle; text-align: center;
}
/* 2026-09-10 왼쪽 열 고정 — 표 2139px / 보이는 폭 1085px이라 오른쪽으로 스크롤하면 어느 매물인지
   알 수 없었다. 앞 3열을 붙여 둔다. left 좌표는 main.js가 COL_DEFS 폭으로 계산해 인라인으로 넣는다.
   홀수 행 td에는 배경 규칙이 없어 투명한데, 고정 셀이 투명하면 밑으로 지나가는 셀이 비쳐 보인다.
   그래서 흰 배경을 깔되 명시도를 낮춰 짝수행·확인필요행·hover 규칙이 그대로 이기게 둔다. */
.listing-table .sticky-col { position: sticky; z-index: 5; }
.listing-table tbody td.sticky-col { background: #fff; }
/* 머리글 두 행은 세로 고정용으로 이미 z-index를 갖고 있어(아래 band/필드 행 규칙, 명시도 0-2-3)
   단순한 .thead .sticky-col로는 못 이긴다. 같은 명시도 이상으로 다시 적어 가로 고정 열을 위로 올린다.
   안 그러면 z-index가 같아 DOM 순서상 뒤에 오는 흐르는 열이 고정 열을 덮는다(2026-09-10 실측). */
.listing-table thead tr.band th.sticky-col,
.listing-table thead tr:not(.band) th.sticky-col { z-index: 21; }
.listing-table .sticky-col-last { box-shadow: 3px 0 5px -2px rgba(26,35,126,.22); }
/* 확인필요 행의 빨간 띠는 첫 열에 있고 고정 경계 그림자는 마지막 고정 열에 있어 서로 다른 칸이다.
   다만 고정 열이 하나뿐인 설정으로 바뀌면 같은 칸이 되므로 그때는 둘을 함께 준다. */
.listing-table tbody tr.row-review td.sticky-col:first-child.sticky-col-last { box-shadow: inset 3px 0 0 #e53935, 3px 0 5px -2px rgba(26,35,126,.22); }
.listing-table tbody tr { cursor: pointer; transition: background .12s; }
.listing-table tbody tr:nth-child(even) td { background: #f7f8fc; }
/* 확인필요 매물 행 강조 (왼쪽 빨간 띠) */
.listing-table tbody tr.row-review td:first-child { box-shadow: inset 3px 0 0 #e53935; }
.listing-table tbody tr.row-review td { background: #fff6f6; }
.listing-table tbody tr.row-review:nth-child(even) td { background: #fdeeee; }
/* 사람이 신고한 매물 (2026-09-11, '사람 신고만' 버튼 대체) — 확인필요 띠보다 굵은 주황 띠 + 깃발.
   시스템 판정이 아니라 사람이 직접 지목한 것이라 한눈에 갈라 보여야 한다. 서버가 이 행들을
   확인필요 목록 맨 위로 올린다. 행 title 속성에 신고 항목과 메모가 들어 있다. */
.listing-table tbody tr.row-flagged td:first-child { box-shadow: inset 5px 0 0 #e65100; }
.listing-table tbody tr.row-flagged td:first-child::after {
  content: '🚩'; font-size: 11px; margin-left: 4px; vertical-align: 1px;
}
.listing-table tbody tr.row-flagged td { background: #fff4e8; }
/* 확인 완료 행 — 확인필요 목록 뒤쪽에 붙는 "끝난 일" 덩어리 (2026-09-16). 경고가 아니라 기록이라 회색 톤. */
.listing-table tbody tr.row-done td:first-child { box-shadow: inset 3px 0 0 #9aa5b1; }
.listing-table tbody tr.row-done td { background: #f7f8fa; color: #5f6b76; }
.listing-table tbody tr.row-done:nth-child(even) td { background: #eef1f4; }
.listing-table tbody tr.row-done-sep td {
  background: #eceff1; color: #5f6b76; font-size: 11px; font-weight: 700;
  padding: 5px 10px; text-align: left; position: sticky; left: 0;
}
.btn-review-done { margin-left: 4px; font-weight: 600; opacity: .75; }
/* 거래 보류·완료 행(2026-11-13 시나리오 점검 R6) — 목록 맨 뒤 덩어리. 회색 톤과 매물번호 아래 작은 표시 */
.listing-table tbody tr.row-deal-stop td { color: #7a838c; }
.listing-table tbody tr.row-deal-stop td:first-child { box-shadow: inset 3px 0 0 #b0b7bf; }
.deal-badge { display: inline-block; margin-top: 2px; padding: 0 5px; border-radius: 3px; font-size: 10.5px; font-weight: 700; }
.deal-badge.deal-hold { background: #fff3cd; color: #8a6d00; }
.deal-badge.deal-done { background: #e2e5e9; color: #4f5a64; }
.deal-badge.deal-mark { background: #fdecea; color: #c62828; }
.listing-table tbody tr.row-flagged:nth-child(even) td { background: #ffeedd; }
.listing-table tbody tr.row-review.row-flagged td:first-child.sticky-col-last,
.listing-table tbody tr.row-flagged td.sticky-col:first-child.sticky-col-last {
  box-shadow: inset 5px 0 0 #e65100, 3px 0 5px -2px rgba(26,35,126,.22);
}
.listing-table tbody tr:hover td,
.listing-table tbody tr:nth-child(even):hover td { background: #e3e7fb; box-shadow: inset 0 0 0 9999px rgba(92,107,192,.07); }
/* 헤더 아래 강조 그림자 */
.listing-table thead th { box-shadow: 0 2px 4px rgba(26,35,126,.08); }

/* 셀 내 각 값 */
/* 2026-09-10 — 한 매물에 업종이 여럿이면 이 줄들이 각 업종의 실적이라 경계가 보여야 한다.
   기존 #f0f0f0은 흰 배경 대비 1.14:1로 사실상 안 보였다(사용자 반려). 열 구분선(#d0d4dc)보다
   한 단계 옅은 톤으로 올려 매물 행 > 열 > 업종 줄 순으로 굵기가 읽히게 한다. */
.cv {
  display: block; padding: 4px 7px;
  border-bottom: 1px solid #dde1ec;
  min-height: 26px; line-height: 18px;
}
.cv:last-child { border-bottom: none; }
.cv.num { color: #1565c0; font-weight: 600; }
/* 2026-09-10 대비 보정 — 아래 세 가지는 실측 대비가 각각 1.61 / 3.54 / 2.32:1이라 안 읽혔다.
   값이 없다는 뜻(—)은 실제 값보다 흐려야 맞지만 1.61은 과해서 3.5:1까지만 올린다. */
.cv-none { color: #8a8a8a; font-style: normal; }
/* .cv-locked — 2026-09-11 제거. 비로그인에게는 잠긴 칸에 문구를 적는 대신 열 자체를 그리지 않는다. */
.cv.price-nego { color: #555; font-weight: 700; font-style: italic; }
.price-nego-tag { color: #666; font-size: 10px; font-weight: 600; }
.cv.hl  { color: #c62828; font-weight: 700; }
.cv.sub { color: #666; }
.cv.note {
  color: #555;
  white-space: normal;
  word-break: break-all;
  text-align: left;
  line-height: 1.45;
  padding: 5px 7px;
}

.empty-msg { color: #aaa; padding: 50px; text-align: center; font-size: 13px; }

/* 2026-09-10 — 업종 개수는 화면에 550곳 나오는 실제 정보인데 #aaa라 대비 2.32:1로 흐렸다(사용자 반려).
   보조 정보 성격은 유지하되 접근성 기준(4.5:1)은 넘도록 #757575로 올린다. */
.cv.arr-count { color: #757575; border-top: 1px dashed #d5d9e6; }

/* 출자잔액 포함/별도 태그 (11-07) — 리스트·상세 공용. 새 hex 6개, 편집 배너/정렬 활성/
   회전 안내/저장 버튼 등 기존 상태색과 겹치지 않는다 (11-UI-SPEC §Color 승인 예외) */
.gubun-tag {
  display: inline-block; font-size: 10px; font-weight: 700; line-height: 1;
  padding: 2px 5px; border-radius: 3px; margin-left: 4px; vertical-align: middle;
  border: 1px solid transparent; white-space: nowrap;
  /* 2026-09-07 사용자 결정 — 포함/별도 금액이 붙어 태그 문구가 길어져도(예: "포함 약1,500만")
     태그 자체가 내부에서 줄바꿈되지 않는다. 태그가 셀 폭에 안 맞으면 통째로 다음 줄로
     넘어갈 뿐이다(D-06, 행 높이 불변 — 셀 안 2줄 이내로 들어오는지는 Task 3에서 실측). */
}
.gubun-tag.gubun-in { background: #c8ead4; color: #0f5132; border-color: #6cbf8b; }
.gubun-tag.gubun-ex { background: #ffd9a8; color: #8a3e00; border-color: #e08a2e; }

/* 출자잔액 포함/별도 금액이 잔액과 다를 때 메인 표시(2026-09-07 사용자 결정) — 배지가 아닌
   본문 텍스트 색으로만 강조, 기존 .gubun-tag 텍스트 색(#0f5132/#8a3e00)을 그대로 재사용한다 */
.gubun-main { font-weight: 700; word-break: keep-all; overflow-wrap: normal; }   /* 단어 중간(포/함) 끊김 방지 — 띄어쓰기에서만 줄바꿈 */
.gubun-main.gubun-in { color: #0f5132; }
.gubun-main.gubun-ex { color: #8a3e00; }
.gubun-sub { color: #999; font-size: 9px; font-weight: 400; word-break: keep-all; overflow-wrap: normal; }

.btn-del { font-size: 11px; font-weight: 600; color: #fff; background: #d32f2f; padding: 3px 8px; border-radius: 3px; }
.btn-del:hover { background: #c62828; }

/* ===== 헤더 그룹 띠 (D-07) — 필드 행(.th-field) 위에 얹는 신규 행, 기존 .th-field 블록은 무변경 ===== */
.listing-table thead tr.band th {
  background: #1a237e; color: #fff;
  font-size: 10px; font-weight: 600; letter-spacing: .5px;
  padding: 3px 7px; text-align: center; white-space: nowrap;
  border: 1px solid #c5cae9;
  height: 22px; box-sizing: border-box;
  position: sticky; top: 0; z-index: 11;
}
.band th.soft { background: #5c6bc0; }
.band th.softer { background: #9fa8da; }
.band th.empty { background: #fff; border-right: none; color: transparent; }

/* thead 전체가 이미 sticky(위 87행)라 두 행이 함께 붙지만, 행별 top 오프셋을 명시해 겹침 없이 각자 고정한다 */
.listing-table thead tr:not(.band) th { position: sticky; top: 22px; z-index: 10; }

/* '최근'(실적현재) 열 셀 배경 — 짝수 행/확인필요 행 배경 우선순위를 덮어쓰지 않는다(동일 색상이라 충돌 없음) */
.listing-table td.recent-col { background: #f7f8fc; }

/* ===== 페이지네이션 ===== */
.pagination {
  display: flex; align-items: center; justify-content: center;
  gap: 3px; padding: 8px;
  background: #fff; border-top: 1px solid #e0e0e0; flex-shrink: 0;
}
.pagination button {
  min-width: 28px; height: 27px; padding: 0 6px;
  border: 1px solid #ddd; border-radius: 3px;
  font-size: 12px; background: #fff; color: #333;
}
.pagination button:hover { background: #e8eaf6; border-color: #1a237e; }
/* 2026-09-10 — 이전·다음 화살표가 #ccc(1.61:1)라 눌러야 할 버튼인지 알기 어려웠다. */
.pagination button:not(:disabled) { color: #333; border-color: #b9bfd4; }
.pagination button.active { background: #1a237e; color: #fff; border-color: #1a237e; font-weight: 700; }
.pagination button:disabled { color: #8a8a8a; cursor: default; }

/* ===== 필터 팝업 ===== */
.filter-popup {
  position: fixed; z-index: 500;
  background: #fff; border: 1px solid #c5cae9;
  border-radius: 6px; width: 230px;
  box-shadow: 0 4px 16px rgba(0,0,0,.18);
  display: none;
}
.filter-popup.open { display: block; }
.fp-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 12px; background: #1a237e; color: #fff;
  border-radius: 6px 6px 0 0; font-size: 12px; font-weight: 700;
}
.fp-header button { color: #fff; font-size: 18px; line-height: 1; }
.fp-body { padding: 10px 12px; max-height: 280px; overflow-y: auto; }
.fp-label { font-size: 11px; font-weight: 700; color: #1a237e; display: block; margin-bottom: 5px; }
.fp-checkboxes { display: flex; flex-direction: column; gap: 3px; max-height: 160px; overflow-y: auto; }
.fp-checkboxes label { display: flex; align-items: center; gap: 5px; font-size: 11px; color: #333; cursor: pointer; }
.fp-checkboxes input[type="checkbox"] { width: 12px; height: 12px; }
.fp-range { display: flex; align-items: center; gap: 5px; }
.fp-range input, .fp-text input {
  width: 100%; padding: 4px 6px;
  border: 1px solid #ddd; border-radius: 3px;
  font-size: 11px; outline: none;
}
.fp-range input { width: calc(50% - 10px); }
.fp-range input:focus, .fp-text input:focus { border-color: #1a237e; }
.fp-range span { color: #aaa; font-size: 11px; }
.fp-biz-row { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.fp-biz-row:last-child { margin-bottom: 0; }
.fp-biz-row .fp-range { flex: 1; }
.fp-biz-name { width: 48px; flex-shrink: 0; font-size: 11px; font-weight: 700; color: #1a237e; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fp-note { font-size: 10px; color: #888; line-height: 1.4; margin-bottom: 6px; }
/* 신용등급 '이상·이하' 고르기(2026-10-19) */
.fp-grade { display: flex; flex-direction: column; gap: 5px; font-size: 11px; color: #333; }
.fp-grade-select { padding: 3px 5px; border: 1px solid #ddd; border-radius: 3px; font-size: 11px; min-width: 96px; margin-right: 4px; }
.fp-grade .fp-note { margin: 2px 0 0; }
.fp-footer {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 12px; border-top: 1px solid #eee;
}
.fp-btn-clear { font-size: 11px; color: #888; text-decoration: underline; }
.fp-btn-clear:hover { color: #c62828; }
.fp-btn-apply { background: #1a237e; color: #fff; padding: 5px 14px; border-radius: 4px; font-size: 12px; font-weight: 700; }
.fp-btn-apply:hover { background: #283593; }

/* ===== 모달 ===== */
.modal-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.45); z-index: 1000;
  align-items: center; justify-content: center;
}
.modal-overlay.active { display: flex; }
.modal { background: #fff; border-radius: 8px; width: 480px; max-width: 95vw; box-shadow: 0 8px 32px rgba(0,0,0,.2); overflow: hidden; }
.modal-sm { width: 340px; }
.modal-header { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; background: #1a237e; color: #fff; }
.modal-header h2 { font-size: 14px; font-weight: 700; }
.modal-close { color: #fff; font-size: 20px; line-height: 1; }
.modal-body { padding: 18px; }
.modal-footer { display: flex; justify-content: flex-end; gap: 8px; padding: 10px 18px; border-top: 1px solid #e0e0e0; }
.upload-zone { border: 2px dashed #c5cae9; border-radius: 8px; padding: 30px 20px; text-align: center; cursor: pointer; transition: .2s; }
.upload-zone:hover, .upload-zone.dragover { border-color: #1a237e; background: #f3f4fd; }
.upload-icon { font-size: 36px; margin-bottom: 8px; }
.upload-zone p { font-size: 13px; color: #555; line-height: 1.6; }
.upload-sub { font-size: 11px; color: #aaa; margin-top: 4px; }
.upload-status { margin-top: 10px; font-size: 13px; min-height: 18px; text-align: center; }
.upload-status.loading { color: #1a237e; }
.upload-status.success { color: #2e7d32; font-weight: 700; }
.upload-status.error { color: #c62828; }
.btn-cancel { padding: 6px 14px; border: 1px solid #ddd; border-radius: 4px; font-size: 12px; background: #fff; color: #555; }
.btn-cancel:hover { background: #f5f5f5; }
.btn-upload-confirm { padding: 6px 14px; background: #1a237e; color: #fff; border-radius: 4px; font-size: 12px; font-weight: 700; }
.btn-upload-confirm:hover:not(:disabled) { background: #283593; }
.btn-upload-confirm:disabled { background: #b0bec5; cursor: default; }
.btn-delete-confirm { padding: 6px 14px; background: #e53935; color: #fff; border-radius: 4px; font-size: 12px; font-weight: 700; }
.btn-delete-confirm:hover { background: #b71c1c; }
/* ===== 분석 계획 모달 ===== */
.modal-mid { width: 440px; }
.analyze-body { padding: 18px 22px; }
.az-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid #f0f0f0; font-size: 13px; }
.az-row:last-child { border-bottom: none; }
.az-label { color: #666; }
.az-value { color: #1a237e; font-weight: 700; }
.az-value.hl { color: #c62828; }
.az-value.ok { color: #2e7d32; }
.az-warn {
  margin-top: 12px; padding: 10px 12px;
  background: #fff3e0; border: 1px solid #ffcc80; border-radius: 6px;
  color: #e65100; font-size: 12px; line-height: 1.5;
}
.az-warn.danger { background: #ffebee; border-color: #ef9a9a; color: #c62828; }
.az-filelist {
  margin-top: 6px; max-height: 160px; overflow-y: auto;
  background: #fff; border: 1px solid #ffe0b2; border-radius: 4px;
}
.az-filelist-item {
  padding: 3px 8px; font-size: 11px; color: #555;
  border-bottom: 1px solid #fafafa; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.az-filelist-item:last-child { border-bottom: none; }
.az-filelist-pages { color: #999; }
.az-bar {
  height: 8px; background: #f5f5f5; border-radius: 4px; margin-top: 6px;
  overflow: hidden;
}
.az-bar-fill { height: 100%; background: linear-gradient(90deg, #43a047, #fbc02d, #e53935); transition: width .3s; }

/* 진행 화면 */
.az-progress { padding: 8px 0; }
.az-progress-header {
  font-size: 14px; font-weight: 700; color: #1a237e;
  margin-bottom: 14px; text-align: center;
}
.az-progress-stats { margin-bottom: 12px; }
.az-progress-detail {
  text-align: center; font-size: 12px; color: #555;
  margin-top: 8px; min-height: 18px;
}

.quota-header { background: #e65100; }
.quota-body { text-align: center; padding: 24px 18px; }
.quota-icon { font-size: 44px; margin-bottom: 10px; }
.quota-title { font-size: 14px; font-weight: 700; color: #bf360c; margin-bottom: 6px; }
.quota-desc { font-size: 12px; color: #555; line-height: 1.6; margin-bottom: 14px; }
.quota-info { background: #fff3e0; border: 1px solid #ffcc80; border-radius: 6px; padding: 8px 12px; font-size: 11px; color: #e65100; }
.btn-quota-ok { padding: 7px 24px; background: #e65100; color: #fff; border-radius: 4px; font-size: 12px; font-weight: 700; }
.btn-quota-ok:hover { background: #bf360c; }

/* ===== 업종별 검색 ===== */
.toolbar-left { display: flex; align-items: center; gap: 14px; }

.btn-biz-search {
  background: #fff; color: #1a237e;
  border: 1px solid #1a237e; border-radius: 4px;
  padding: 5px 12px; font-size: 12px; font-weight: 700;
}
.btn-biz-search:hover { background: #e8eaf6; }

/* 확인필요만 보기 토글 */
.btn-review-only {
  background: #fff; color: #c62828;
  border: 1px solid #e53935; border-radius: 4px;
  padding: 5px 12px; font-size: 12px; font-weight: 700;
  margin-left: 6px; cursor: pointer;
}
.btn-review-only:hover { background: #fdeeee; }
.btn-review-only.active { background: #e53935; color: #fff; }
.btn-review-only.active strong { color: #fff; }

/* 내 매물만 보기(D-20, 12-11) — btn-biz-search와 같은 톤 */
.btn-mine-only {
  background: #fff; color: #1a237e;
  border: 1px solid #1a237e; border-radius: 4px;
  padding: 5px 12px; font-size: 12px; font-weight: 700;
  margin-left: 6px; cursor: pointer;
}
.btn-mine-only:hover { background: #e8eaf6; }
.btn-mine-only.active { background: #1a237e; color: #fff; }

/* 사람 신고만 보기(D-10, 12-11) — btn-review-only와 같은 톤 */
.btn-flag-human {
  background: #fff; color: #c62828;
  border: 1px solid #e53935; border-radius: 4px;
  padding: 5px 12px; font-size: 12px; font-weight: 700;
  margin-left: 6px; cursor: pointer;
}
.btn-flag-human:hover { background: #fdeeee; }
.btn-flag-human.active { background: #e53935; color: #fff; }

/* 양수문의의심 분류(D-11, 12-11) — review-type-chip과 같은 알약형, 인디고 톤으로 구분 */
.classify-filter-wrap { margin-left: 6px; }
.classify-chip {
  background: #fff; color: #5c6bc0;
  border: 1px solid #5c6bc0; border-radius: 12px;
  padding: 4px 11px; font-size: 12px; font-weight: 700; cursor: pointer;
}
.classify-chip:hover { background: #e8eaf6; }
.classify-chip.active { background: #5c6bc0; color: #fff; }

/* 확인필요 문제 유형 칩 바 — 확인필요 토글이 켜졌을 때만 노출 */
.review-type-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
  padding: 8px 12px; margin-bottom: 8px;
  background: #fff8f8; border: 1px solid #ffcdd2; border-radius: 4px;
}
.review-type-label { font-size: 12px; font-weight: 700; color: #c62828; margin-right: 2px; }
.review-type-chip {
  background: #fff; color: #c62828;
  border: 1px solid #e53935; border-radius: 12px;
  padding: 3px 10px; font-size: 12px; cursor: pointer;
}
.review-type-chip:hover { background: #fdeeee; }
.review-type-chip.active { background: #e53935; color: #fff; font-weight: 700; }

.modal-lg { width: 720px; max-width: 95vw; }
.biz-search-body { padding: 16px 18px; max-height: 75vh; overflow-y: auto; }

.biz-section { margin-bottom: 18px; }
.biz-section h3 {
  font-size: 13px; color: #1a237e; font-weight: 700;
  margin-bottom: 8px; padding-bottom: 4px; border-bottom: 1px solid #c5cae9;
}
.biz-cat-group { margin-bottom: 12px; }
.stitle { font-size: 12px; font-weight: 700; color: #1a237e; margin-bottom: 4px; }
.stitle-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.stitle-row .stitle { margin-bottom: 0; }
/* D-21 유지 + 사용자 요청: 종합건설 제목 줄 우측 끝, 알약형으로 눈에 띄게 (기존 팔레트만 사용, D-02) */
.biz-exact-label {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 700; color: #1a237e;
  background: #f3f4fd; border: 1px solid #c5cae9; border-radius: 999px;
  padding: 5px 12px; cursor: pointer; transition: .15s;
}
.biz-exact-label:hover { border-color: #1a237e; }
.biz-exact-label input { width: 16px; height: 16px; accent-color: #1a237e; transform: scale(1.15); cursor: pointer; }
.biz-exact-label:has(input:checked), .biz-exact-label.checked {
  background: #1a237e; color: #fff; border-color: #1a237e;
}
.biz-exact-hint { font-size: 10px; font-weight: 400; color: #999; margin-left: 4px; }
.biz-exact-label:has(input:checked) .biz-exact-hint, .biz-exact-label.checked .biz-exact-hint { color: #c5cae9; }
.biz-cat-buttons { display: flex; flex-wrap: wrap; gap: 4px; }
.biz-btn {
  padding: 5px 11px; font-size: 11px;
  background: #fff; border: 1px solid #c5cae9; border-radius: 4px;
  color: #333; cursor: pointer; transition: .15s;
}
.biz-btn:hover { background: #e8eaf6; }
.biz-btn.selected { background: #5c6bc0; color: #fff; border-color: #5c6bc0; font-weight: 700; }

/* D-18: 전문건설 업종 칸 3열 격자 */
.upgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.up { border: 1px solid #c5cae9; border-radius: 4px; padding: 6px; }
.up.wide { grid-column: span 2; }
.un { font-size: 10.5px; font-weight: 700; color: #1a237e; margin-bottom: 4px; }

.biz-cond-list { display: flex; flex-direction: column; gap: 6px; }
.biz-cond-row {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 10px; background: #f5f6f8; border-radius: 4px;
  flex-wrap: wrap;
}
.biz-cond-label { width: 60px; font-size: 12px; font-weight: 700; color: #1a237e; }
.biz-cond-row select {
  padding: 4px 6px; font-size: 11px;
  border: 1px solid #ddd; border-radius: 3px; background: #fff;
}
.biz-cond-row input[type="number"] {
  width: 70px; padding: 4px 6px; font-size: 11px;
  border: 1px solid #ddd; border-radius: 3px; text-align: right;
}
.biz-cond-row input[type="number"]:focus { border-color: #1a237e; outline: none; }
.biz-unit { font-size: 11px; color: #666; }
.biz-cond-remove {
  color: #e53935; font-size: 16px; line-height: 1;
  padding: 0 5px; margin-left: auto;
}
.biz-cond-remove:hover { color: #b71c1c; }
.biz-cond-empty { font-size: 11px; color: #999; text-align: center; padding: 14px; background: #fafafa; border-radius: 4px; }

.biz-price-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.biz-price-row input[type="number"] {
  width: 110px; padding: 6px 8px; font-size: 12px;
  border: 1px solid #ddd; border-radius: 3px; text-align: right;
}
.biz-price-row input[type="number"]:focus { border-color: #1a237e; outline: none; }
.biz-exclude-label {
  margin-left: 12px; font-size: 11px; color: #555;
  display: flex; align-items: center; gap: 4px; cursor: pointer;
}
.biz-exclude-label input { width: 13px; height: 13px; }

.btn-biz-search-confirm {
  width: 100%; padding: 10px;
  background: #1a237e; color: #fff;
  border-radius: 4px; font-size: 13px; font-weight: 700;
}
.btn-biz-search-confirm:hover { background: #283593; }

/* 사이드바 - 업종별 검색 카드 강조 */
.fs-item.biz { background: #fff3e0; border-color: #ffcc80; }
.fs-item.biz .fs-field { color: #e65100; }

/* 스크롤바 */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: #f5f5f5; }
::-webkit-scrollbar-thumb { background: #bdbdbd; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #9e9e9e; }

/* 2026-09-10 — 목록 표는 가로로 895px를 스크롤해야 하는데 손잡이가 5px라 잡기 어려웠다.
   이 표에서만 16px로 키우고 색을 진하게 한다. 다른 화면 스크롤바는 그대로 둔다. */
.table-wrapper::-webkit-scrollbar { width: 12px; height: 16px; }
.table-wrapper::-webkit-scrollbar-track { background: #eef0f7; border-top: 1px solid #d6d9e6; }
.table-wrapper::-webkit-scrollbar-thumb { background: #8b93b8; border-radius: 8px; border: 3px solid #eef0f7; }
.table-wrapper::-webkit-scrollbar-thumb:hover { background: #5c6bc0; }
.table-wrapper::-webkit-scrollbar-thumb:active { background: #3949ab; }
.table-wrapper::-webkit-scrollbar-corner { background: #eef0f7; }

/* 분석 모달 — 템플릿 자동 회전 안내 */
.az-rotation-note { margin-top: 12px; padding: 8px 12px; background: #e8f5e9; border: 1px solid #a5d6a7; border-radius: 6px; font-size: 12px; color: #2e7d32; line-height: 1.5; }

/* ===== 비로그인 문의 번호(2026-11-13 화면 고침 5-1, js/mobile.js) — PC는 목록 위 줄 밝은 상자, 휴대폰은 머리글 오른쪽 ===== */
.ct-box { display: inline-flex; align-items: center; gap: 8px; background: #f3f4fd; border: 1px solid #c5cae9; border-radius: 6px; padding: 3px 12px 3px 8px; color: #1a237e; white-space: nowrap; }
.ct-box .ct-ico { font-size: 18px; }
.ct-box .ct-txt { display: flex; flex-direction: column; line-height: 1.15; }
.ct-box small { font-size: 10px; color: #5c6bc0; font-weight: 600; }
.ct-box b { font-size: 16px; letter-spacing: .3px; }
.ct-head { display: none; }
/* 비로그인은 업종 조건 찾기부터(PC — 글자·자리는 그대로, 남색으로 채움) */
.is-guest .btn-biz-search { background: #1a237e; color: #fff; }
.is-guest .btn-biz-search:hover { background: #283593; }
.m-list { display: none; }

/* ===== 휴대폰 목록(폭 768 이하 — js/mobile.js가 그리는 네 칸 요약 표·조건 · 정렬 창). PC 화면에는 아래 규칙이 하나도 닿지 않는다 ===== */
@media (max-width: 768px) {
  .site-header { padding: 0 12px; gap: 12px; }
  .ct-head { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; color: #fff; font-size: 15px; letter-spacing: .3px; }
  .ct-head .ct-ico { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; background: #fff; color: #1a237e; font-size: 13px; }
  .ct-head + .acct-area { margin-left: 0; padding-left: 12px; border-left: 1px solid rgba(255,255,255,.35); }
  /* 화면 높이 고정 레이아웃을 풀고 쪽 전체가 내려가게 — 하단 사업자 정보 줄도 접지 않고 여러 줄로 */
  .layout, .has-fixed-footer .layout { display: block; height: auto; overflow: visible; }
  .main-wrap { display: block; overflow: visible; }
  .filter-sidebar, .toolbar, .review-type-bar, .table-wrapper { display: none !important; }
  .has-fixed-footer .site-footer { height: auto; padding: 8px 12px; white-space: normal; overflow: visible; flex-wrap: wrap; }
  .site-footer-info { white-space: normal; }
  .pagination button { min-width: 34px; height: 34px; font-size: 13px; }

  .m-list { display: block; background: #eef0f6; }
  .m-bar { position: sticky; top: 46px; z-index: 100; display: flex; align-items: center; gap: 6px; padding: 8px 10px; background: #fff; border-bottom: 1px solid #c5cae9; }
  .m-cnt { font-size: 12px; color: #555; margin-right: auto; white-space: nowrap; }
  .m-cnt b { color: #1a237e; font-size: 14px; }
  .m-btn { border: 1px solid #1a237e; color: #1a237e; background: #fff; border-radius: 4px; padding: 8px 10px; font-size: 13px; font-weight: 700; white-space: nowrap; }
  .m-primary { background: #1a237e; color: #fff; }
  .m-bar .m-primary { flex: 1; padding: 10px; font-size: 14px; }
  .m-quick { display: flex; gap: 6px; overflow-x: auto; padding: 8px 10px; background: #fff; border-bottom: 1px solid #e0e3ee; white-space: nowrap; scrollbar-width: none; }
  .m-quick::-webkit-scrollbar { display: none; }
  .m-quick button { flex-shrink: 0; border: 1px solid #c5cae9; border-radius: 16px; padding: 6px 12px; font-size: 13px; color: #333; background: #fff; }
  .m-quick button.on { background: #1a237e; color: #fff; border-color: #1a237e; font-weight: 700; }
  .m-quick button.more { color: #1a237e; border-style: dashed; }
  .m-applied { display: flex; flex-wrap: wrap; gap: 5px; padding: 7px 10px; background: #f3f4fd; border-bottom: 1px solid #c5cae9; }
  .m-applied button { font-size: 12px; color: #1a237e; background: #fff; border: 1px solid #c5cae9; border-radius: 4px; padding: 4px 8px; }
  .m-empty { padding: 40px 16px; text-align: center; color: #757575; font-size: 13px; background: #fff; }

  .m-table { width: 100%; border-collapse: collapse; background: #fff; font-size: 12.5px; table-layout: fixed; }
  .m-table col.c1 { width: 36%; }
  .m-table col.c2 { width: 15%; }
  .m-table col.c3 { width: 23%; }
  .m-table col.c4 { width: 26%; }
  .m-table thead th { background: #e8eaf6; color: #1a237e; font-size: 11.5px; font-weight: 700; padding: 7px 3px; border: 1px solid #c5cae9; }
  .m-table > tbody > tr > td { border-right: 1px solid #d0d4dc; border-bottom: 2px solid #c5cae9; padding: 0; vertical-align: top; text-align: center; }
  .m-table tr.m-row { cursor: pointer; }
  .m-table tr.m-row:nth-of-type(even) > td { background: #f7f8fc; }
  .m-table tr.m-row > td.p { vertical-align: middle; padding: 4px 3px; line-height: 1.3; }
  .m-table .v { display: block; box-sizing: border-box; height: 30px; padding: 5px 4px; border-bottom: 1px solid #dde1ec; line-height: 19px; color: #1565c0; font-weight: 600; }
  .m-table .v.b { color: #1a237e; font-weight: 700; text-align: left; padding-left: 7px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .m-table .v.b small { color: #777; font-weight: 400; margin-left: 3px; }
  .m-table .meta { display: block; padding: 3px 7px; font-size: 10.5px; color: #777; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .m-price { display: block; color: #c62828; font-weight: 800; font-size: 13px; }
  .m-price.nego { color: #555; font-style: italic; font-weight: 700; }
  .m-price.none { color: #8a8a8a; font-weight: 400; }
  .m-nego-tag { display: block; font-size: 10px; color: #666; }
  .m-table td.p em { display: block; margin-top: 2px; font-style: normal; font-size: 10px; color: #5c6bc0; }
  .m-table .v { white-space: nowrap; overflow: hidden; }   /* 좁은 화면에서 '89.5 / 186.5'가 두 줄로 꺾여 아랫줄과 겹치지 않게 */
  .m-table tr.m-row.stop .v, .m-table tr.m-row.stop .m-price { color: #7a838c; }
  .m-table .meta .deal-badge { margin-top: 0; }
  .m-table tr.m-sep > td { background: #eceff1; color: #5f6b76; font-size: 12px; font-weight: 700; text-align: left; padding: 7px 10px; border-bottom: 2px solid #c5cae9; }
  .m-table tr.m-detail > td { background: #fafbff; text-align: left; padding: 10px 10px 12px; border-bottom: 3px solid #1a237e; }
  .m-years { width: 100%; border-collapse: collapse; font-size: 12px; margin-bottom: 8px; }
  .m-years th { background: #eef0fa; color: #1a237e; font-size: 10.5px; padding: 3px 2px; border: 1px solid #d5d9e6; font-weight: 700; }
  .m-years td { border: 1px solid #dde1ec; padding: 4px 2px; text-align: right; color: #1565c0; font-weight: 600; background: #fff; }
  .m-years td.b { text-align: left; color: #1a237e; padding-left: 6px; white-space: nowrap; }
  .m-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: #dde1ec; border: 1px solid #dde1ec; font-size: 12.5px; }
  .m-grid > div { background: #fff; padding: 6px 8px; display: flex; justify-content: space-between; gap: 8px; }
  .m-grid > div i { font-style: normal; color: #777; white-space: nowrap; }
  .m-grid > div span { text-align: right; }
  .m-grid > div.w { grid-column: span 2; display: block; line-height: 1.55; }
  .m-grid > div.w b { color: #1a237e; }
  .m-grid > div.w a { color: #1565c0; text-decoration: underline; }
  .m-grid > div.note { color: #555; font-size: 12px; }
  .m-go { display: block; margin-top: 10px; padding: 10px; background: #1a237e; color: #fff; border-radius: 5px; font-size: 13.5px; font-weight: 700; text-align: center; }

  /* 업종 조건 찾기 창 — 휴대폰에서는 화면 가득(업종·업종별 실적·양도가 — PC와 같은 칸, 11-16) */
  #bizSearchModal .modal-lg { width: 100%; max-width: 100%; height: 100%; border-radius: 0; display: flex; flex-direction: column; }
  #bizSearchModal .biz-search-body { flex: 1; max-height: none; padding: 12px; }
  /* 업종별 실적 줄 — 첫 줄 업종·지표·×, 둘째 줄 범위(폭이 좁아 한 줄에 다 들어가지 않는다). 입력 글자 16px — 아이폰은 그보다 작으면 칸을 누를 때 화면을 확대한다 */
  #bizSearchModal .biz-cond-row { display: grid; grid-template-columns: 1fr auto auto 1fr auto; gap: 8px 6px; align-items: center; }
  #bizSearchModal .biz-cond-row > * { order: 2; }
  #bizSearchModal .biz-cond-label { order: 0; grid-column: 1 / 3; width: auto; font-size: 14px; }
  #bizSearchModal .biz-cond-row select { order: 0; grid-column: 3 / 5; font-size: 16px; padding: 6px; min-height: 40px; }
  #bizSearchModal .biz-cond-remove { order: 1; grid-column: 5; justify-self: end; font-size: 22px; min-width: 40px; min-height: 40px; }
  #bizSearchModal .biz-cond-row input[type="number"], #bizSearchModal .biz-price-row input[type="number"] { width: 100%; box-sizing: border-box; font-size: 16px; padding: 8px; min-height: 44px; }
  #bizSearchModal .biz-price-row { display: grid; grid-template-columns: 1fr auto auto 1fr auto; gap: 8px 6px; }
  #bizSearchModal .biz-exclude-label { grid-column: 1 / -1; margin-left: 0; font-size: 14px; }
  #bizSearchModal .biz-unit { font-size: 13px; }
  #bizSearchModal .btn-biz-search-confirm { min-height: 48px; font-size: 15px; }
}
/* 아주 좁은 휴대폰(폭 340 이하) — 숫자 칸을 넓히고 글자를 조금 줄여 3년 / 5년합이 잘리지 않게 */
@media (max-width: 340px) {
  .m-table { font-size: 11.5px; }
  .m-table col.c1 { width: 33%; }
  .m-table col.c2 { width: 13%; }
  .m-table col.c3 { width: 28%; }
}

/* ===== 조건 · 정렬 창(js/condSheet.js, 2026-11-16) — 휴대폰은 아래에서 올라오는 판, PC(769 이상)는 가운데 창 ===== */
.btn-cond-sheet { background: #fff; color: #1a237e; border: 1px solid #1a237e; border-radius: 4px; padding: 5px 12px; font-size: 12px; font-weight: 700; }
.btn-cond-sheet:hover { background: #e8eaf6; }
.listing-table tbody tr.row-unknown-sep td { background: #eceff1; color: #5f6b76; font-size: 11px; font-weight: 700; padding: 5px 10px; text-align: left; position: sticky; left: 0; }
/* 건수를 미리 보이는 단추(조건 창 [적용]·업종 창 [검색]) — 세는 동안은 숫자를 흐리게 */
.btn-biz-search-confirm b { font-weight: 700; }
.btn-biz-search-confirm small, .cs-apply small { display: block; font-size: 12px; font-weight: 500; opacity: .9; margin-top: 2px; }
.btn-biz-search-confirm.counting b, .cs-apply.counting b { opacity: .45; }
body.m-sheet-open { overflow: hidden; }
.m-sheet-wrap[hidden] { display: none; }
.m-dim { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 900; }
.m-sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 901; background: #fff; border-radius: 14px 14px 0 0; max-height: 88vh; overflow-y: auto; padding: 0 14px; }
.m-sheet:focus { outline: none; }
.cs-head { display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 2; background: #fff; margin: 0 -14px; padding: 8px 6px 6px 14px; border-bottom: 1px solid #e0e3ee; }
.cs-head b { font-size: 16px; color: #1a237e; }
.cs-x { min-width: 44px; min-height: 44px; font-size: 28px; line-height: 1; color: #555; background: none; border: 0; cursor: pointer; }
.m-sheet h3 { font-size: 15px; color: #1a237e; margin: 14px 0 8px; }
.m-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.m-chips.top { margin-top: 12px; }
.m-chips button { border: 1px solid #c5cae9; border-radius: 18px; padding: 8px 14px; font-size: 14px; color: #333; background: #fff; cursor: pointer; }
.m-chips button.on { background: #1a237e; color: #fff; border-color: #1a237e; font-weight: 700; }
.m-range { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 14px; color: #555; }
.m-range input, .m-range select { width: 96px; padding: 8px; border: 1px solid #c5cae9; border-radius: 4px; font-size: 15px; text-align: right; background: #fff; }
.m-range input.bad { border-color: #e53935; background: #fff5f5; }
.m-range input[type="date"] { width: 150px; text-align: left; }
.m-range input.wide { width: 210px; text-align: left; }
.m-range select { text-align: left; }
.m-range .lb { min-width: 62px; color: #333; }
.m-sheet .m-btn { border: 1px solid #1a237e; color: #1a237e; background: #fff; border-radius: 4px; padding: 10px; font-size: 15px; font-weight: 700; cursor: pointer; }
.m-sheet .m-primary { background: #1a237e; color: #fff; }
.m-sheet-foot { position: sticky; bottom: 0; display: flex; gap: 8px; margin: 18px -14px 0; padding: 10px 14px 14px; background: #fff; border-top: 1px solid #eef0f4; z-index: 2; }
.m-sheet-foot .m-btn { flex: 1; min-height: 48px; }
.m-sheet-foot .m-btn:first-child { flex: 0 0 34%; border-color: #c5cae9; color: #555; }
.cs-apply b { display: block; font-size: 16px; }
.cs-more { display: block; width: 100%; margin: 18px 0 0; padding: 12px; border: 1px dashed #9fa8da; border-radius: 6px; background: #f5f6fc; color: #1a237e; font-size: 15px; font-weight: 700; cursor: pointer; }
.cs-detail[hidden] { display: none; }
.cs-grp { padding-top: 14px; break-inside: avoid; }   /* 여백이 아니라 안쪽 띄움 — 둘째 단 첫 묶음도 같은 높이에서 시작하게 */
.cs-grp h4 { font-size: 14px; color: #1a237e; margin: 0 0 4px; padding-bottom: 4px; border-bottom: 1px solid #e0e3ee; }
.cs-f { display: flex; align-items: flex-start; gap: 8px; padding: 5px 0; }
.cs-l { flex: 0 0 88px; font-size: 14px; color: #333; padding-top: 9px; }
.cs-l:empty { display: none; }
.cs-c { flex: 1; min-width: 0; }
.cs-c .m-range { margin-top: 0; }
.cs-c .m-range + .m-range { margin-top: 6px; }
/* 휴대폰 — 손가락으로 누르기 좋게 칩·칸 높이 44px, 입력 글자 16px(아이폰이 칸을 누를 때 화면을 확대하지 않게) */
@media (max-width: 768px) {
  .cs-sheet .m-chips button { min-height: 44px; padding: 10px 15px; font-size: 15px; border-radius: 22px; }
  .m-range input, .m-range select { min-height: 44px; font-size: 16px; }
  .cs-c .m-range input, .cs-c .m-range select { flex: 1 1 0; min-width: 0; width: auto; }
  .cs-c .m-range .lb { min-width: 0; flex: 0 0 auto; }
  .cs-l { padding-top: 12px; }
}
@media (min-width: 769px) {
  .m-sheet { left: 50%; right: auto; bottom: auto; top: 50%; transform: translate(-50%, -50%); width: 800px; max-width: calc(100vw - 40px); max-height: 88vh; border-radius: 8px; padding: 0 22px; }
  .cs-head { margin: 0 -22px; padding: 10px 12px 8px 22px; }
  .cs-detail { columns: 2; column-gap: 30px; }
  .m-sheet-foot { margin: 18px -22px 0; padding: 12px 22px 16px; }
  .m-sheet-foot .m-btn:first-child { flex: 0 0 160px; }
  .m-chips button:hover { border-color: #1a237e; }
}
