/* rmq-deal-card.css — the one card's deal sections (static/rmq-deal-card.js, round B21): quotes, visits, to-dos,
   photos and files on a lead or referral card, and the quotes not chosen on a job card. Colours are the theme's
   tokens only. Phone first: everything stacks; wider screens let the buttons sit in a row. */
.dc { display: flex; flex-direction: column; gap: 12px; margin: 10px 0; }
.dc-sec { display: flex; flex-direction: column; gap: 8px; }
.dc-sec > .rmq-section { margin: 0; }
.dc-quiet { font-size: 0.78rem; color: var(--gray-a0); }
.dc-opt { --a: var(--teal-rgb); padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.dc-opt.is-closed { --a: var(--gray-a0-rgb); opacity: 0.85; }
.dc-opt-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.dc-opt-head .dc-num { font-weight: 600; font-size: 0.88rem; }
.dc-opt-head .dc-total { font-weight: 700; margin-left: auto; }
.dc-lines { display: flex; flex-direction: column; gap: 2px; }
.dc-line { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; font-size: 0.8rem; }
.dc-line .dc-desc { min-width: 0; overflow-wrap: anywhere; }
.dc-line .dc-qty { grid-column: 1; color: var(--gray-a0); font-size: 0.72rem; }
.dc-line .dc-amt { grid-column: 2; grid-row: 1; text-align: right; white-space: nowrap; }
.dc-docs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 0.75rem; color: var(--gray-a0); }
.dc-btns { display: flex; flex-wrap: wrap; gap: 6px; }
.dc-btns .rmq-btn { flex: 1 1 auto; }
.dc-visit { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 0.8rem; flex-wrap: wrap; }
.dc-form { display: grid; grid-template-columns: 1fr; gap: 8px; }
.dc-form label { display: block; font-size: 0.75rem; color: var(--gray-a0); margin-bottom: 2px; }
.dc-form input { width: 100%; }
.dc-thumbs { display: flex; flex-wrap: wrap; gap: 6px; }
.dc-thumbs button { width: 64px; height: 64px; border-radius: 8px; border: 1px solid var(--line-15); background: var(--surface-05);
                    padding: 0; overflow: hidden; cursor: pointer; color: var(--gray-a0); display: flex; align-items: center; justify-content: center; }
.dc-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dc-file { display: flex; gap: 6px; align-items: center; font-size: 0.8rem; background: none; border: 0; color: var(--text);
           padding: 2px 0; cursor: pointer; text-align: left; overflow-wrap: anywhere; }
.dc-sheet { position: fixed; inset: 0; background: var(--scrim-65); z-index: 2000; display: none; align-items: flex-end; justify-content: center; }
.dc-sheet.open { display: flex; }
.dc-sheet-inner { width: 100%; max-width: 560px; max-height: 88vh; overflow: auto; padding: 18px 16px 24px;
                  background: linear-gradient(135deg, var(--bg-1) 0%, var(--bg-2) 100%); border: 1px solid var(--line-15);
                  border-radius: 16px 16px 0 0; }
@media (min-width: 768px) {
    .dc-form { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .dc-sheet { align-items: center; }
    .dc-sheet-inner { border-radius: 16px; }
}
/* the job card header's "Product" line (ruling 4b): the deal's RMQ product, for reference only */
.job-product { font-size: 0.78rem; color: var(--gray-a0); margin-top: 2px; overflow-wrap: anywhere; }
