/* 고객에게 보내는 자료(고객용 카드·가격 제안 근거) 미리보기와 사무소 정보 창 */
.card-modal { position: fixed; inset: 0; z-index: 200; background: rgba(15, 23, 42, .6); display: flex; align-items: center; justify-content: center; padding: 12px; }
.card-modal[hidden] { display: none; }
.card-modal-inner { background: #f1f5f9; border-radius: 14px; width: 100%; max-width: 640px; max-height: 94vh; display: flex; flex-direction: column; overflow: hidden; }
.card-toolbar { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 10px 12px; background: #fff; border-bottom: 1px solid var(--border); }
.card-toolbar .title { font-weight: 700; font-size: 14px; margin-right: auto; }
.card-toolbar input[type=number] { width: 110px; font-family: inherit; font-size: 14px; border: 1px solid var(--border); border-radius: 8px; padding: 6px 8px; }
.card-toolbar label { font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.card-note { font-size: 12px; color: var(--muted); padding: 6px 14px 0; }
.card-scroll { overflow: auto; padding: 14px; }

/* 이미지로 저장되는 시트: 폭 560px 기준 */
.card-sheet { width: 100%; max-width: 560px; margin: 0 auto; background: #fff; color: #0f172a; padding: 22px 22px 16px; border-radius: 6px; font-family: inherit; line-height: 1.55; box-shadow: 0 1px 6px rgba(0,0,0,.12); }
.cs-title { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; margin: 0; }
.cs-sub { font-size: 14px; color: #475569; margin: 2px 0 14px; }
.cs-big { border: 1px solid #e2e8f0; border-radius: 12px; padding: 12px 14px; margin-bottom: 8px; }
.cs-big .l { font-size: 13px; color: #64748b; }
.cs-big .v { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; }
.cs-big .n { font-size: 12.5px; color: #64748b; }
.cs-say { font-size: 14.5px; background: #f8fafc; border-radius: 10px; padding: 10px 12px; margin: 10px 0; }
.cs-sec { margin-top: 14px; }
.cs-sec h4 { font-size: 13px; color: #475569; margin: 0 0 6px; }
.cs-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.cs-table th, .cs-table td { padding: 6px 2px; border-bottom: 1px solid #e2e8f0; text-align: left; }
.cs-table th { font-size: 12px; color: #64748b; font-weight: 600; }
.cs-table .r { text-align: right; }
.cs-tiers { display: grid; gap: 6px; }
.cs-tier { border: 1px solid #e2e8f0; border-radius: 10px; padding: 9px 12px; display: flex; justify-content: space-between; gap: 10px; font-size: 14px; }
.cs-tier b { white-space: nowrap; }
.cs-tier small { display: block; color: #64748b; font-size: 12px; }
.cs-foot { margin-top: 16px; padding-top: 12px; border-top: 2px solid #0f172a; display: flex; gap: 12px; align-items: center; }
.cs-foot img { width: 56px; height: 56px; object-fit: contain; border-radius: 8px; }
.cs-foot .o { font-size: 15px; font-weight: 800; }
.cs-foot .d { font-size: 12.5px; color: #475569; }
.cs-disc { font-size: 11px; color: #94a3b8; margin-top: 8px; line-height: 1.5; }
.cs-sheet-range .pf-range { background: #f1f5f9; }

/* 경매 상담 카드: 저장·공유 도구 없이 보기만. 물건 정보는 왼쪽 항목명·오른쪽 내용으로 가지런히 */
.card-modal.auction-mode .cs-export, .card-modal.auction-mode .card-note { display: none; }
.card-toolbar #card-map[hidden] { display: none; }
.cs-kv { table-layout: fixed; }
.cs-kv th { width: 9.5em; white-space: nowrap; padding: 8px 10px 8px 0; font-size: 13px; font-weight: 600; color: #64748b; vertical-align: top; text-align: left; border-bottom: 1px solid #e2e8f0; }
.cs-kv td { padding: 8px 0; font-weight: 700; text-align: left; vertical-align: top; overflow-wrap: anywhere; word-break: keep-all; }

/* 사무소 정보 */
.office-form { display: grid; gap: 10px; padding: 14px; background: #fff; }
.office-form label { font-size: 12.5px; color: var(--muted); display: grid; gap: 4px; }
.office-form input[type=text] { font-family: inherit; font-size: 14px; border: 1px solid var(--border); border-radius: 8px; padding: 9px 10px; }
.office-logo { display: flex; align-items: center; gap: 10px; }
.office-logo img { width: 56px; height: 56px; object-fit: contain; border: 1px solid var(--border); border-radius: 8px; background: #fff; }
#office-msg { font-size: 12.5px; min-height: 18px; }

@media print {
  body.printing-card > *:not(#card-modal) { display: none !important; }
  body.printing-card #card-modal { position: static; background: none; padding: 0; display: block; }
  body.printing-card .card-modal-inner { max-height: none; background: none; border-radius: 0; overflow: visible; }
  body.printing-card .card-toolbar, body.printing-card .card-note { display: none !important; }
  body.printing-card .card-scroll { overflow: visible; padding: 0; }
  body.printing-card .card-sheet { box-shadow: none; max-width: none; }
  body { padding-bottom: 0 !important; }
}
