/* Property inquiries. Built on the Showings page's shapes so the two read as
   the same kind of queue, which they are. */

.iq-intro { max-width: 760px; margin: 0 0 16px; }

.iq-group { margin-bottom: 20px; }
.iq-group-head { display: flex; align-items: center; gap: 8px; padding-bottom: 7px; margin-bottom: 9px;
  border-bottom: 1px solid var(--border); }
.iq-group-head svg { width: 15px; height: 15px; color: var(--muted); }
.iq-group-head b { font-size: 14px; }

.iq-card { padding: 11px 14px; margin-bottom: 8px; cursor: pointer; }
.iq-card.open { border-color: var(--blue); cursor: default; }
.iq-card.done { opacity: .72; }

.iq-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.iq-ribbon { display: flex; flex-wrap: wrap; gap: 5px; }

/* The tag ribbon. The percentage is the tagger's own arithmetic and is shown
   as it is: green when the question said the thing outright, amber when it was
   inferred from ordinary words, and no number at all on a tag a person added,
   because a person is not a percentage. */
.iq-tag { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 600;
  background: var(--bg); border: 1px solid var(--border); border-radius: 7px; padding: 2px 4px 2px 8px; }
.iq-tag i { font-style: normal; font-weight: 400; color: var(--muted); }
.iq-tag.sure { background: #ecfdf5; border-color: #a7f3d0; color: #065f46; }
.iq-tag.sure i { color: #047857; }
.iq-tag.unsure { background: #fffbeb; border-color: #fde68a; color: #78350f; }
.iq-tag.manual { background: #eff6ff; border-color: #bfdbfe; color: #1e40af; }
.iq-tag.none { color: var(--muted); font-weight: 400; }
.iq-tagx { border: 0; background: transparent; color: inherit; opacity: .45; cursor: pointer;
  font-size: 14px; line-height: 1; padding: 0 3px; }
.iq-tagx:hover { opacity: 1; color: var(--red); }

.iq-line { display: flex; align-items: baseline; gap: 8px; margin-bottom: 4px; }
.iq-msg { font-size: 13.5px; line-height: 1.55; color: var(--text); white-space: pre-wrap; }
.iq-msg.clipped { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; color: var(--muted); }

.iq-sent { margin-top: 8px; background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46;
  border-radius: var(--radius); padding: 8px 11px; font-size: 12.5px; line-height: 1.5; }
.iq-sent b { display: inline; }

.iq-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 8px; margin: 12px 0 10px; }
.iq-fields label { display: block; }
.iq-fields span { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .4px;
  color: var(--muted); margin-bottom: 3px; }
.iq-fields input, .iq-fields select { width: 100%; padding: 6px 9px; border: 1px solid var(--border);
  border-radius: 8px; font-size: 13px; }

.iq-addtag { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.iq-addtag select { padding: 6px 9px; border: 1px solid var(--border); border-radius: 8px; font-size: 13px; }
.iq-routed { font-size: 12.5px; color: var(--muted); }
.iq-routed .link { border: 0; background: transparent; color: var(--blue); font: inherit;
  font-weight: 600; cursor: pointer; padding: 0; }
.iq-routed .link:hover { text-decoration: underline; }

.iq-reply { border-top: 1px solid var(--border); padding-top: 10px; }
.iq-from { margin-bottom: 6px; }
.iq-missing { background: #fffbeb; border: 1px solid #fde68a; color: #78350f; border-radius: var(--radius);
  padding: 8px 11px; margin-bottom: 8px; font-size: 12.5px; line-height: 1.5; }
.iq-draft { width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius);
  font: inherit; font-size: 13.5px; line-height: 1.6; resize: vertical; }
.iq-draft:focus { outline: 0; border-color: var(--blue); }
.iq-replyfoot { display: flex; align-items: center; gap: 10px; margin-top: 8px; flex-wrap: wrap; }

@media (max-width: 640px) {
  .iq-fields { grid-template-columns: 1fr; }
  .iq-replyfoot { flex-direction: column; align-items: stretch; }
}
