/* Agent dashboard > Inquiries tab (cards, filter chips, lazy-load footer) */
.inq-bar { position: sticky; top: 0; z-index: 5; background: var(--moh-bg, #fff); padding: 8px 0 6px; }
.inq-chips { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.inq-chip { appearance: none; font: inherit; font-size: .85rem; font-weight: 600; min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--moh-border); background: transparent; color: var(--moh-text); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.inq-chip.active { background: var(--moh-primary); border-color: var(--moh-primary); color: #fff; }
.inq-chip .inq-chip-n { opacity: .85; margin-left: 4px; font-weight: 500; }
.inq-count { font-size: .78rem; color: var(--moh-muted); margin-left: auto; min-height: 18px; }
.inq-card { border: 1px solid var(--moh-border); border-left: 4px solid var(--moh-border); border-radius: 14px; padding: 14px; margin-bottom: 10px; background: var(--moh-card, transparent); transition: box-shadow .2s, border-color .2s; }
.inq-card.unread { border-left-color: var(--moh-primary); box-shadow: 0 1px 0 rgba(0,0,0,.02), 0 4px 14px rgba(0,0,0,.05); }
.inq-card.flash { animation: inqFlash 1.6s ease-out; }
@keyframes inqFlash { 0% { box-shadow: 0 0 0 3px var(--moh-primary); } 100% { box-shadow: 0 0 0 0 transparent; } }
.inq-head { display: flex; align-items: center; gap: 10px; }
.inq-avatar { width: 40px; height: 40px; flex: 0 0 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .9rem; color: #fff; background: var(--moh-primary); }
.inq-who { min-width: 0; flex: 1 1 auto; }
.inq-name { color: var(--moh-text); font-weight: 700; font-size: .95rem; line-height: 1.2; overflow-wrap: anywhere; }
.inq-new { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; font-size: .68rem; font-weight: 700; background: var(--moh-primary); color: #fff; vertical-align: middle; }
.inq-tel { font-size: .8rem; color: var(--moh-muted); text-decoration: none; }
.inq-time { font-size: .75rem; color: var(--moh-muted); white-space: nowrap; align-self: flex-start; }
.inq-prop { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 10px 12px; border: 1px solid var(--moh-border); border-radius: 12px; text-decoration: none; color: inherit; background: var(--moh-bg, transparent); min-height: 48px; -webkit-tap-highlight-color: transparent; }
.inq-prop:hover, .inq-prop:focus-visible { border-color: var(--moh-primary); outline: 0; }
.inq-prop-ico { flex: 0 0 auto; color: var(--moh-primary); font-size: 1.1rem; }
.inq-prop-main { min-width: 0; flex: 1 1 auto; }
.inq-prop-title { color: var(--moh-text); font-weight: 700; font-size: .88rem; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.inq-prop-meta { font-size: .75rem; color: var(--moh-muted); margin-top: 2px; }
.inq-prop-meta b { color: var(--moh-success); font-weight: 700; white-space: nowrap; }
.inq-prop-go { flex: 0 0 auto; color: var(--moh-muted); }
.inq-msg { color: var(--moh-text); margin: 12px 0 0; padding: 10px 12px; border-radius: 10px; background: var(--moh-bg-soft, rgba(127,127,127,.08)); font-size: .92rem; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.inq-msg.open { display: block; overflow: visible; }
.inq-more { appearance: none; background: none; border: 0; padding: 6px 2px; font: inherit; font-size: .82rem; font-weight: 600; color: var(--moh-primary); cursor: pointer; min-height: 32px; }
.inq-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.inq-btn { appearance: none; font: inherit; font-size: .85rem; font-weight: 600; min-height: 40px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--moh-border); background: transparent; color: var(--moh-text); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.inq-btn.reply { background: var(--moh-primary); border-color: var(--moh-primary); color: #fff; }
.inq-btn.wa { color: #128C4A; border-color: #25D366; }
.inq-btn:disabled { opacity: .6; }
.inq-foot { text-align: center; color: var(--moh-muted); font-size: .82rem; padding: 14px 0 28px; }
.inq-skel { height: 168px; border-radius: 14px; margin-bottom: 10px; background: linear-gradient(90deg, rgba(127,127,127,.10), rgba(127,127,127,.20), rgba(127,127,127,.10)); background-size: 200% 100%; animation: inqShimmer 1.2s infinite linear; }
@keyframes inqShimmer { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .inq-skel, .inq-card.flash { animation: none; } }

/* press counter on Reply / Call */
.inq-btn { position: relative; }
.inq-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; margin-left: 2px; border-radius: 999px; font-size: .72rem; font-weight: 700; line-height: 1; background: #fff; color: var(--moh-primary); border: 1px solid var(--moh-primary); }
.inq-btn.reply .inq-badge { background: #fff; color: var(--moh-primary); border-color: #fff; }
.inq-badge[hidden] { display: none; }

/* client notes */
body.inq-sheet-open { overflow: hidden; }
.inq-sheet { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: flex-end; justify-content: center; }
.inq-sheet[hidden] { display: none; }
.inq-sheet-bg { position: absolute; inset: 0; background: rgba(0,0,0,.45); }
.inq-sheet-box { position: relative; width: 100%; max-width: 560px; max-height: 88dvh; overflow-y: auto; background: var(--moh-card, #fff); color: var(--moh-text); border-radius: 18px 18px 0 0; padding: 16px 16px calc(20px + env(safe-area-inset-bottom)); box-shadow: 0 -8px 30px rgba(0,0,0,.25); }
@media (min-width: 700px) { .inq-sheet { align-items: center; } .inq-sheet-box { border-radius: 18px; } }
.inq-sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.inq-sheet-head h3 { font-size: 1.05rem; font-weight: 700; margin: 0; }
.inq-sheet-x { appearance: none; border: 0; background: transparent; font-size: 1.8rem; line-height: 1; color: var(--moh-muted); min-width: 40px; min-height: 40px; cursor: pointer; }
.inq-sheet-lbl { display: block; font-size: .85rem; font-weight: 600; margin: 8px 0 6px; }
.inq-note-form { display: flex; gap: 8px; align-items: flex-start; }
.inq-note-form textarea { flex: 1; min-width: 0; font: inherit; font-size: 16px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--moh-border); background: transparent; color: inherit; resize: vertical; }
.inq-note-err { color: #c0392b; font-size: .82rem; margin-top: 6px; }
.inq-timeline { position: relative; margin-top: 16px; padding-left: 22px; border-left: 2px solid var(--moh-border); margin-left: 5px; }
.inq-tl-item { position: relative; padding-bottom: 16px; }
.inq-tl-dot { position: absolute; left: -29px; top: 3px; width: 12px; height: 12px; border-radius: 50%; background: var(--moh-primary); }
.inq-tl-time { font-size: .78rem; color: var(--moh-muted); display: flex; justify-content: space-between; align-items: center; }
.inq-tl-text { font-size: .95rem; font-weight: 600; white-space: pre-wrap; overflow-wrap: anywhere; margin-top: 2px; }
.inq-tl-del { appearance: none; border: 0; background: transparent; color: var(--moh-muted); min-width: 36px; min-height: 28px; cursor: pointer; }
.inq-tl-empty { color: var(--moh-muted); font-size: .88rem; margin-left: -22px; padding-top: 4px; }
