/* Area: deals — styles for src/next/areas/deals.js views. Tokens only (see next.css :root). */
.btn.small { min-height: 40px; padding: 0 14px; font-size: 14px; }
.deal-expense { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr) auto; gap: 10px; align-items: end; margin-top: 14px; }
.deal-take { margin-top: 18px; padding: 16px 18px; border-radius: var(--r-md); background: var(--olive-tint); display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.deal-take-total { border-top: 1.5px solid var(--line); padding-top: 10px; font-size: 18px; }
.deal-take-line { margin: 0; padding: 14px 16px; border-radius: var(--r-md); background: var(--olive-tint); font-size: 16px; }
.deal-take-line b { font-size: 20px; }
.offer-row { display: grid; grid-template-columns: 28px minmax(0, 1fr) 160px; gap: 10px; align-items: center; }
.offer-row input[type=checkbox], .check-line input { width: 22px; height: 22px; accent-color: var(--olive); }
.offer-row input:not([type=checkbox]), .cl-line input[name=text] { min-height: 48px; border-radius: var(--r-sm); border: 1.5px solid var(--line); background: var(--card); padding: 0 12px; font-size: 16px; min-width: 0; width: 100%; }
.cl-line { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; align-items: center; }
.cl-offset { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; color: var(--ink-2); }
.cl-offset input { width: 72px; min-height: 48px; border-radius: var(--r-sm); border: 1.5px solid var(--line); background: var(--card); padding: 0 10px; font-size: 16px; text-align: right; }
.check-line { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 16px; }
.phone .deal-expense { grid-template-columns: 1fr 1fr; }
.phone .deal-expense .field:first-child { grid-column: 1 / -1; }
.phone .offer-row { grid-template-columns: 28px minmax(0, 1fr); }
.phone .offer-row input[type=date] { grid-column: 2; }
.phone .cl-line { grid-template-columns: minmax(0, 1fr) auto; }
.phone .cl-line .cl-offset { grid-column: 1; }

/* ---------- They asked (open requests on this deal) ---------- */
.deal-ask { align-items: flex-start; }
.deal-ask .actions { flex-wrap: wrap; justify-content: flex-end; }
.phone .deal-ask { flex-wrap: wrap; }
.phone .deal-ask .actions { width: 100%; justify-content: flex-start; }
/* the full deal edit form */
.deal-edit-set { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; gap: 12px; }
.deal-edit-set legend { margin-bottom: 10px; }
.check-chip { cursor: pointer; }
.check-chip input { position: absolute; opacity: 0; pointer-events: none; }
.check-chip:has(input:checked) { background: var(--ink); color: var(--on-dark); border-color: var(--ink); }
.check-chip:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }

/* the checklist editor's contract lines (0112): days · after acceptance / before closing · key date */
.cl-line.dated { grid-template-columns: minmax(0, 1fr) auto auto auto; }
.cl-offset select { min-height: 48px; border-radius: var(--r-sm); border: 1.5px solid var(--line); background: var(--card); padding: 0 10px; font: inherit; font-size: 15px; font-weight: 600; color: var(--ink); }
.cl-key { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; white-space: nowrap; }
.cl-key input { width: 20px; height: 20px; accent-color: var(--accent, var(--olive)); }
.phone .cl-line.dated { grid-template-columns: minmax(0, 1fr) auto; }
/* offer sheet: the calendar toggle sits under the line, not squeezed into the checkbox column */
.offer-row .check-line { grid-column: 2 / -1; display: flex; align-items: center; gap: 10px; margin-top: -4px; }

/* missing paperwork (lib/required-docs.js) */
.pw-strip { margin: -4px 0 16px; padding: 14px 16px; border-radius: var(--r-md); background: var(--card-2); border: var(--hair); display: flex; flex-direction: column; gap: 10px; }
.pw-list { display: flex; flex-wrap: wrap; gap: 8px; }
.pw { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: var(--pill); border: 1px solid var(--line); background: var(--card); font-size: 14px; }
.pw svg { width: 16px; height: 16px; }
.pw b { font-weight: 700; }
.pw span { color: var(--ink-2); font-weight: 600; }
.pw-signed svg { color: var(--good); }
.pw-sent svg { color: var(--warn); }
.pw-missing { border-color: var(--accent, var(--olive)); }
.pw-missing svg, .pw-missing span { color: var(--accent, var(--olive)); }

/* what the AI read on a deal (0124) */
.sug-list { display: grid; gap: 10px; margin: 6px 0 14px; }
.sug-row { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border-radius: var(--r-md); background: var(--card-2); border: 1px solid var(--line); }
.sug-row input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--ink); }
.sug-row .t { min-width: 0; line-height: 1.45; }
.sug-nobox { width: 20px; flex: none; }
.sug-quote { text-align: left; font-size: 14px; color: var(--ink-2); font-style: italic; white-space: normal; }
.sug-card .actions.sug-actions { flex-wrap: wrap; }   /* the two buttons stack on a phone instead of widening the card */
.phone .sug-card .actions.sug-actions > .btn { flex: 1 1 auto; }

/* the source file's name shortens with an ellipsis instead of widening the card (audit 2026-09-27) */
.sug-card, .sug-row { min-width: 0; }
.sug-card .section-t { flex-wrap: wrap; gap: 6px 10px; }
.sug-card .section-t .tag { display: block; min-width: 0; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sug-row .t { min-width: 0; }
