/* quotes-line-detail.css — wave299 (2026-10-31): Quote Overhaul D4.
 * The line-detail popups, the catalogue hits inside the Material
 * popup, and the two special line kinds (Subcontractor / Allowance).
 * Base row, pill and dialog shapes come from quotes.css / files.css;
 * this file carries only the wave299 additions. */

/* the kind pills (the base .quote-pill shape rides along) */
.qld-pill-sub { background: #f1eafd; border-color: #c9b8f5; }
.qld-pill-allow { background: #fdf3d7; border-color: #e7cf8a; }

/* the special rows read as their own kind at a glance */
.quote-lines-table tr.qld-line-subcontractor > td { background: #fbf9ff; }
.quote-lines-table tr.qld-line-allowance > td { background: #fffdf4; }
/* a special line's Labour cell is not a second bucket — the amount
 * is carried whole in Material's seat, so the cell shows a dash
 * where the "+" separator and the cost input would sit */
.quote-lines-table tr.qld-line-subcontractor > td:nth-child(4) .quote-cost-cell,
.quote-lines-table tr.qld-line-allowance > td:nth-child(4) .quote-cost-cell { visibility: hidden; }
.quote-lines-table tr.qld-line-subcontractor > td:nth-child(4),
.quote-lines-table tr.qld-line-allowance > td:nth-child(4) { position: relative; }
.quote-lines-table tr.qld-line-subcontractor > td:nth-child(4)::before,
.quote-lines-table tr.qld-line-allowance > td:nth-child(4)::before { content: none; }
.quote-lines-table tr.qld-line-subcontractor > td:nth-child(4)::after,
.quote-lines-table tr.qld-line-allowance > td:nth-child(4)::after {
  content: "—"; position: absolute; left: 20px; top: 26px; color: var(--q-faint, #8a97a5);
}

/* the detail-row doors + notes */
.qld-detail-btns { display: flex; gap: 6px; margin-top: 12px; flex-wrap: wrap; }

/* wave528: the calculator door beside each cost box — small, quiet,
 * and the only in-row way into the price-details popup */
.qld-calc-btn { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; margin-left: 4px; padding: 0; border: 1px solid var(--q-line, #d8dee5); border-radius: 8px; background: #fff; color: var(--q-ink, #12212f); box-shadow: 0 1px 2px rgba(18, 33, 47, .10); cursor: pointer; vertical-align: middle; } /* wave568: a real button, not a faint glyph — visible border + lift (Micheal, 2026-11-10) */
.qld-calc-btn:hover { border-color: var(--q-gold, #c8a24a); background: var(--q-tint, #f6f8fa); color: var(--q-ink, #12212f); }
.qld-calc-btn:active { transform: translateY(1px); box-shadow: none; }
.qld-calc-btn:focus-visible { outline: 2px solid var(--q-gold, #c8a24a); outline-offset: 1px; }
.qld-detail-note { margin: 12px 0 0; font-size: var(--q-fs-sm, 13px); color: var(--q-muted, #5b6b7a); }

/* the popup's catalogue hits — the quote-suggest row shape */
.qld-results { margin: 4px 0 10px; border: 1px solid var(--q-line, #d8dee5); border-radius: 10px; overflow: hidden; }
.qld-results:empty { display: none; }
.qld-results > p { margin: 0; padding: 10px 12px; }
.qld-hit { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; width: 100%; padding: 10px 12px; background: none; border: 0; border-bottom: 1px solid var(--q-hair, #edf0f3); font: inherit; font-size: var(--q-fs-sm, 13px); color: var(--q-ink, #12212f); cursor: pointer; text-align: left; }
.qld-hit:last-child { border-bottom: 0; }
.qld-hit:hover, .qld-hit:focus-visible { background: var(--q-tint, #f6f8fa); outline: none; }
.qld-hit span small { display: block; color: var(--q-muted, #5b6b7a); font-size: var(--q-fs-xs, 11px); }
.qld-hit > small { color: var(--q-muted, #5b6b7a); white-space: nowrap; font-size: var(--q-fs-xs, 11px); }
/* wave304 (2026-10-31): the catalogue layer badges — one shape on
 * every merged catalogue surface (quote picker, title autosuggest,
 * Material popup, CO picker, Templates & costs, PO door). Rookery
 * rides the violet of the kind pills; My own a green. */
.rk-layer-badge { font-size: 10px; font-weight: 600; letter-spacing: .02em; padding: 1px 6px; border-radius: 99px; white-space: nowrap; vertical-align: middle; border: 1px solid transparent; }
.rk-layer-rookery { background: #f1eafd; border-color: #c9b8f5; color: #4b2f86; }
.rk-layer-own { background: #e6f3ea; border-color: #b7dec2; color: #1c6b3a; }

.qld-picked { margin: 0 0 8px; }
.qld-eq { margin: 10px 0 0; font-weight: 500; }
