/* 광고 업체 화면과 랜딩 연결 화면 (docs/landing-connect.md) */

.agency-header-title { font-weight: 600; font-size: 15px; margin-left: 4px; }
.agency-right { display: flex; align-items: center; gap: 12px; padding-right: 12px; font-size: 13px; white-space: nowrap; }
.agency-who { color: #595959; }

/* 한 번만 보이는 값(임시 비밀번호·비밀키) */
.agency-once { background: #fffbe6; border: 1px solid #ffe58f; border-radius: 4px; padding: 10px 12px; color: #262626; margin-top: 8px; }
.agency-once code { color: #262626; background: #fff; border: 1px solid #d9d9d9; padding: 1px 6px; border-radius: 3px; font-size: 14px; word-break: break-all; }
.agency-once .small { color: #595959; }

.agency-table th { white-space: nowrap; }
.agency-table td { word-break: keep-all; }
/* 좁은 화면: site.css 의 .ant-table 규칙처럼 표는 가로로 밀어 보고 칸 글자는 한 줄로.
   가로로 미는 상자 밖에 있는 설명 표(agency-ref, API 안내)는 줄을 바꾼다 */
@media (max-width: 480px) {
    .agency-table td { white-space: nowrap; }
    .agency-table.agency-ref td { white-space: normal; }
}
.agency-stack { max-width: 360px; }
.agency-stack .form-group { margin-bottom: 10px; }

/* 실시간 점검 (docs/images/landing-connect-live-*.png 목업) */
.lead-live { display: flex; flex-direction: column; gap: 10px; word-break: keep-all; }
.lead-lead { color: #595959; font-size: 13px; margin: 0; }
.lead-live-dot { display: inline-flex; align-items: center; gap: 6px; color: #389e0d; font-size: 12px; white-space: nowrap; }
.lead-live-dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #52c41a; box-shadow: 0 0 0 3px rgba(82,196,26,.2); }
.lead-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.lead-filters select { width: 160px; }
.lead-stats { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 8px; }
.lead-stats .ant-card-body { padding: 10px 12px; }
.lead-stats .ant-statistic-content { font-size: 22px; }
.lead-stats .ant-statistic-content-suffix { font-size: 15px; margin-left: 2px; }
.lead-stat-ok .ant-statistic-content { color: #389e0d; }
.lead-stat-dup .ant-statistic-content { color: #d46b08; }
.lead-stat-bad .ant-statistic-content { color: #cf1322; }
.lead-stat-visit .ant-statistic-content { color: #096dd9; }
.lead-card .ant-card-head { min-height: 40px; padding: 0 12px; }
.lead-card .ant-card-head-title { padding: 8px 0; font-size: 14px; }
.lead-card .ant-card-extra { padding: 8px 0; font-size: 12px; color: #8c8c8c; }
.lead-card .ant-card-body { padding: 0; }
.lead-scroll { overflow-x: auto; }
.lead-scroll table { width: 100%; min-width: 720px; }
.lead-scroll .ant-table-cell { white-space: nowrap; }
.lead-scroll td.num, .lead-scroll th.num { text-align: right; }
.lead-scroll tr.is-new td { background: #f6ffed !important; }
.lead-scroll tr.warn td { background: #fffbe6 !important; }
.lead-new { display: inline-block; margin-left: 6px; padding: 0 5px; border-radius: 3px; background: #52c41a; color: #fff; font-size: 11px; line-height: 16px; }
.lead-muted { color: #8c8c8c; }
.lead-note { color: #8c8c8c; font-size: 12px; padding: 8px 12px; border-top: 1px solid #f0f0f0; }
.lead-empty { color: #8c8c8c; padding: 12px; }
.lead-m-list { display: none; list-style: none; margin: 0; padding: 0; }
.lead-m-list li { padding: 8px 12px; border-bottom: 1px solid #f0f0f0; font-size: 13px; }
.lead-m-list li.warn { background: #fffbe6; }
.lead-m-list li.is-new { background: #f6ffed; }
.lead-m-list .row1 { display: flex; align-items: center; gap: 6px; }
.lead-m-list .row1 .spacer { flex: 1; }
.lead-m-list .row1 .ant-tag { margin-right: 0; }
.lead-m-list .row2 { margin-top: 2px; color: #595959; font-size: 12px; }
.lead-alert { padding: 8px 12px; }
@media (max-width: 768px) {
    .lead-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
    .lead-stats .ant-card-body { padding: 8px; }
    .lead-stats .ant-statistic-title { font-size: 12px; }
    .lead-stats .ant-statistic-content { font-size: 18px; }
    .lead-filters select { width: calc(50% - 4px); }
    .lead-scroll .ant-table { display: none; }
    .lead-m-list { display: block; }
}

/* 연결 관리 */
.agency-form-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 220px)); gap: 8px 12px; }
.agency-form-grid label { display: block; margin-bottom: 2px; }
.agency-form-wide { grid-column: 1 / -1; max-width: 680px; }
.agency-code { background: #f6f8fa; border: 1px solid #e1e4e8; border-radius: 4px; padding: 8px 10px; font-size: 12px; white-space: pre-wrap; word-break: break-all; margin: 4px 0 8px; color: #24292e; }
.agency-key { font-size: 12px; color: #595959; }
@media (max-width: 768px) {
    .agency-form-grid { grid-template-columns: minmax(0, 1fr); }
}

/* 분배 대기 (고객 > 분배 대기) */
.lead-queue-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.lead-queue-count { display: inline-block; min-width: 18px; margin-left: 4px; padding: 0 5px; border-radius: 9px; background: rgba(0, 0, 0, .08); font-size: 11px; line-height: 16px; text-align: center; }
.btn-primary .lead-queue-count { background: rgba(255, 255, 255, .3); }
.lead-queue-assign { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 8px; }
.lead-queue-members { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; flex: 1; min-width: 0; }
.lead-queue-member { margin: 0; font-size: 13px; white-space: nowrap; }

/* 고객 상세의 업체 신청 카드: 긴 주소·값은 칸 안에서 줄을 바꾼다 */
.lead-receipt-value { word-break: break-all; }

/* API 안내 (site.css 가 목록 글머리표를 모두 지우므로 여기서만 되살린다) */
.agency-list { list-style: disc; padding-left: 1.25rem; word-break: keep-all; }

/* 랜딩 페이지: 업체 묶음 줄과 그 아래 페이지 줄 (docs/landing-hosted.md 2.9) */
.lead-group-row > td { background: #f5f8fc; }
.lead-group-meta { margin-left: 18px; }
.agency-table td.lead-page-cell { padding-left: 28px; }
.ant-tag.lead-tag-sm { font-size: 11px; line-height: 16px; padding: 0 5px; }
