/* css/riley-offer-prep.css — Offer Prep feature (2026-09-14).
 *
 * New, appended at the END of the <link> list per riley-offer-letter.css's
 * own warning about same-specificity/source-order collisions — this file
 * only adds classes that don't exist anywhere else (op-*), it never
 * redefines .ol-*, .lw-*, or .tc-* rules those other files already own. The
 * offer-prep page itself reuses .ol-* (form/toggle/contingency) and
 * .lw-empty/.tc-btn wholesale — see offer-prep.js's header comment.
 */

/* 2026-09-14 follow-up: Mark asked the page header to match the softer
 * .jd-briefing card style used elsewhere (Transactions/Listings "Needs
 * your attention" cards) instead of the bold coral gradient the shared
 * .agent-detail-header class normally renders (used by other detail
 * pages too, so overridden here via an added .op-header class rather
 * than editing the shared rule). Colors match .jd-briefing's own
 * literal values exactly rather than the closest tokens.css swatch, so
 * this reads as the same card style, pixel for pixel. */
.op-header.agent-detail-header { background:#FDE7E2; border:1px solid #FCD1C7; }
.op-header .agent-detail-name { color:var(--ink); }
.op-header .agent-detail-role { color:var(--dim); }

.op-payer-toggle { display:flex; gap:4px; }
.op-payer-toggle button { border:1px solid var(--border); background:#fff; color:var(--dim); border-radius:5px; padding:4px 10px; font:600 11px/1 'Inter',sans-serif; cursor:pointer; transition:all .15s; min-width:56px; text-align:center; }
.op-payer-toggle button.active { background:var(--coral); border-color:var(--coral); color:#fff; }

.op-hint { display:flex; align-items:flex-start; gap:8px; background:var(--coral-50,#FDE7E2); border:1px solid var(--coral-200,#F9B8A6); border-radius:8px; padding:10px 12px; font-size:13.5px; line-height:1.5; color:#734b40; margin-bottom:10px; }
.op-hint i { flex-shrink:0; margin-top:1px; color:var(--coral); }

.op-progress { height:6px; background:var(--card); margin:14px 16px 10px; border-radius:3px; overflow:hidden; }
.op-progress-bar { height:100%; background:var(--teal-500,#009580); transition:width .2s; }

.op-checklist { padding:6px 0; }
.op-check-row { display:flex; align-items:center; gap:10px; padding:9px 16px; border-bottom:1px solid var(--border); }
.op-check-row:last-child { border-bottom:none; }
.op-check-dot { width:9px; height:9px; border-radius:50%; flex-shrink:0; }
.op-check-dot.got { background:var(--teal-500,#009580); }
.op-check-dot.missing { background:var(--coral); }
.op-check-label { flex:1; font-size:14px; color:var(--text); }
.op-check-toggle { border:1px solid var(--border); background:#fff; color:var(--dim); border-radius:6px; padding:4px 9px; font:600 10.5px/1 'Inter',sans-serif; cursor:pointer; white-space:nowrap; }
.op-check-toggle:hover { background:var(--card); }
.op-check-remove { border:none; background:none; color:var(--dim); cursor:pointer; font-size:15px; line-height:1; padding:2px 4px; }
.op-check-remove:hover { color:var(--coral); }
.op-check-add { display:flex; gap:6px; padding:10px 16px 4px; }
.op-check-add input { flex:1; border:1px solid var(--border); border-radius:6px; padding:6px 9px; font:13px/1.4 'Inter',sans-serif; outline:none; }
.op-check-add input:focus { border-color:var(--coral); }
.op-check-add button { border:1px solid var(--border); background:#fff; color:var(--dim); border-radius:6px; padding:0 10px; cursor:pointer; }
.op-check-add button:hover { background:var(--card); }

@media (max-width:900px) { .op-payer-toggle { flex-wrap:wrap; } }

/* Layout redesign (2026-09-14) -- collapsible groups, chosen by Mark from
 * three mockup options (claude/ascent-offer-prep-scoping-2026-09-14.md)
 * after the flat 10-stacked-section layout read as "a mess" once real
 * data filled it in. The ten RPA sections fold into four groups; only one
 * is open at a time, and a collapsed group shows a one-line summary
 * computed from the offer's own fields instead of empty vertical space.
 * New op-layout/op-form-panel classes (NOT the shared ol-layout/
 * ol-form-panel that Ascent_Dashboard.html's still-present-but-
 * unreachable-from-the-toolbar #tab-offer-letter pane also uses) so this
 * redesign can't touch that dead markup's layout. The sidebar keeps using
 * the existing .ol-preview-panel class (unchanged, still sticky).
 */
.op-layout { display:flex; flex-direction:column; gap:20px; }
.op-layout > .op-form-panel { width:100%; }
.op-layout > .ol-preview-panel { width:100%; max-width:none; position:static; display:flex; gap:20px; align-items:stretch; }
.op-layout > .ol-preview-panel > .ol-preview-card { flex:1 1 0; min-width:0; margin-bottom:0; display:flex; flex-direction:column; }
/* Sits as the last direct child of .ol-preview-card in all three bottom
 * cards (checklist/zipForm/agreement) and anchors to the bottom of the
 * (equal-height, flex-stretched) card via margin-top:auto, so the three
 * action buttons line up on the same row across cards regardless of how
 * much text/rows precede them in each card. */
.op-card-action { padding:14px; margin-top:auto; }
.op-form-panel { display:flex; flex-direction:column; border:1px solid var(--border); border-radius:10px; background:#fff; overflow:hidden; }
/* 2026-09-14 follow-up #1: Mark asked for the checklist/zipForm/agreement
 * cards to sit below the form always, not beside it as a sidebar -- so
 * .op-layout itself is a single always-vertical stack (form first, then
 * the .ol-preview-panel's cards), no width-based media query needed.
 * Follow-up #2 (same day): within that bottom section, the three cards
 * go side-by-side in one row instead of stacked -- .ol-preview-panel
 * becomes a flex row and each .ol-preview-card is an equal-width column
 * (the cards' own old inline margin-bottom was dropped in offer-prep.js
 * now that the row's gap handles spacing). Below 900px they wrap to a
 * single column since three equal columns get too narrow to use on a
 * phone-width screen. */
@media (max-width:900px) { .op-layout > .ol-preview-panel { flex-direction:column; } }

.op-acc-group { border-bottom:1px solid var(--border); }
.op-acc-group:last-child { border-bottom:0; }
.op-acc-head { display:flex; align-items:center; gap:12px; padding:16px 18px; cursor:pointer; }
.op-acc-head:hover { background:var(--off-white); }
.op-acc-num { width:22px; height:22px; border-radius:50%; background:var(--coral-100); color:var(--coral-500); font-size:13px; font-weight:800; display:flex; align-items:center; justify-content:center; flex:0 0 auto; }
.op-acc-group.open .op-acc-num { background:var(--coral-500); color:#fff; }
.op-acc-title-wrap { flex:1; min-width:0; }
.op-acc-title { font-size:14px; font-weight:800; color:var(--ink); }
.op-acc-summary { font-size:13.5px; color:var(--muted); margin-top:2px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.op-acc-chevron { color:var(--muted); font-size:14px; transition:transform .15s; flex:0 0 auto; }
.op-acc-group.open .op-acc-chevron { transform:rotate(180deg); color:var(--coral-500); }
.op-acc-body { padding:0 18px 20px; }
.op-acc-rpa-tag { font-size:12px; color:var(--muted); font-weight:700; text-transform:uppercase; letter-spacing:.04em; margin-left:auto; }
.op-acc-sub { padding:14px 0; border-top:1px solid var(--off-white); }
.op-acc-sub:first-child { border-top:0; padding-top:4px; }
.op-acc-sub-head { display:flex; align-items:center; gap:8px; margin-bottom:10px; }
.op-acc-sub-title { font-size:13.5px; font-weight:800; color:var(--ink); }

/* zipForm attached-forms list (2026-09-27) -- replaces a boxed <thead>
 * that Mark said "just floats" in the middle of the card (three earlier
 * mockup options tried keeping a header band; he picked the one that
 * folds the column captions into a plain, borderless line directly under
 * the card's own title bar instead of a separately-colored header row --
 * see mockup-zipform-v2.html Option B). Preview/Download are also now
 * icon-only (op-icon-btn) instead of text links (tc-doc-action). */
.op-zf-caption { display:flex; align-items:center; gap:10px; padding:0 0 8px; font:800 9.5px/1 'Inter',sans-serif; text-transform:uppercase; letter-spacing:.07em; color:var(--gray,#9AA3AD); border-bottom:1px solid var(--border); }
.op-zf-caption-form { flex:1; }
.op-zf-caption-status { width:64px; }
.op-zf-caption-actions { width:64px; text-align:right; }
.op-zf-row { display:flex; align-items:center; gap:10px; padding:11px 0; border-bottom:1px solid var(--border); }
.op-zf-row:last-child { border-bottom:none; }
.op-zf-name { flex:1; min-width:0; display:flex; align-items:center; gap:8px; font-size:14px; color:var(--text); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; background:none; border:0; padding:0; cursor:pointer; font-family:inherit; text-align:left; }
.op-zf-name i { color:var(--coral); flex-shrink:0; }
.op-zf-status { width:64px; text-align:center; flex-shrink:0; }
.op-zf-actions { width:64px; display:flex; justify-content:flex-end; gap:6px; flex-shrink:0; }
.op-icon-btn { border:1px solid var(--border); background:#fff; color:var(--dim); border-radius:6px; width:26px; height:26px; display:inline-flex; align-items:center; justify-content:center; cursor:pointer; font-size:14px; padding:0; }
.op-icon-btn:hover { background:var(--card); color:var(--coral); border-color:var(--coral); }
