/* MFE-2627: edit view rewriter states (rw- classes; AI_REWRITE_EDITVIEW_UI only). Values from the MFE-2613 handoff. */

/* The profile's own coloured strips (Last Updated, Mobile) follow the profile state,
   not the old copied/Premium colours. */
.rw-edit-profile .uncopieddiv,
.rw-edit-profile .copieddiv { background-color: transparent !important; }

/* Heading row: the candidate title, and Rewrite Profile with AI at its right edge
   (MFE-3131: always, opposite the candidate). Wraps only when needed. */
.rw-heading-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin: 2px 0 4px; }
.rw-heading-row > .rw-heading-title { min-width: 0; }
.rw-edit-profile > .rw-callout,
.rw-edit-profile .rw-callout { width: 100%; box-sizing: border-box; }
.rw-rewrite-estimate { margin: 5px 0; }

/* Stable anchors for "edit-profile-{id}", clear of the fixed top bars. */
.rw-anchor { display: block; position: relative; top: -120px; visibility: hidden; height: 0; }

/* Number bar */
.rw-nav-number { margin: 0 2px 1px 0; }
.rw-nav-number .rw-star { margin-left: 1px; font-size: 9px; }

/* MFE-2638 AC5: controls locked while the AI rewrites the profile. Links cannot
   be disabled, so they lose their pointer events and are dimmed like buttons. */
.rw-edit-item a[data-rw-locked-control] { pointer-events: none; opacity: .45; }
.rw-edit-item [data-rw-locked-control]:disabled { cursor: not-allowed; }

/* MFE-2638 AC4: why Approve Profile did not save, under the review reason. */
.rw-callout .rw-approve-error { color: #a90329; font-weight: 600; margin: 4px 0 0; }

/* MFE-2638: a profile box saves when it changes, so there is no manual save
   (no per-box save icon, no SAVE LOCAL); the heading row says what the save did. */
.rw-edit-item .btn-save-textarea,
.rw-edit-item button[onclick*="'save','local'"] { display: none !important; }
.rw-heading-row > .rw-autosave-feedback { margin-left: auto; font-size: 12px; color: #555; }
.rw-heading-row > .rw-autosave-feedback:empty { display: none; }

/* MFE-3131 (design MFE-3124): the rewriter's notes as numbered "To Review"
   items under the section they concern, in Edit View and the rewrite modal.
   Normal ADM's Nunito at 400, 600 and 700; long text wraps, nothing is cut. */
.rw-review-notes { margin: 6px 0; padding: 4px 12px; border: 1px solid #d4dade; background: #fff; color: #282d30;
  font-family: Nunito, Arial, sans-serif; font-weight: 400; font-size: 13px; line-height: 1.4; text-align: left; overflow-wrap: anywhere; }
.rw-review-notes .rw-review-title { margin: 0; padding: 2px 0; font-family: Nunito, Arial, sans-serif; font-size: 12px; line-height: 1.4; font-weight: 700; }
/* HANDOFF v2: review text in the modal is 12px too. */
.review-create-right-col .rw-review-notes { font-size: 12px; }
.rw-review-item { display: grid; grid-template-columns: 2ch minmax(0, 1fr); gap: 10px; padding: 5px 0; }
.rw-review-item + .rw-review-item { border-top: 1px solid #d4dade; padding-top: 12px; }
.rw-review-item:has(+ .rw-review-item) { padding-bottom: 12px; }
.rw-review-number { align-self: start; font-size: 12px; font-weight: 700; }
.rw-review-item dl { margin: 0; }
.rw-review-item dt { margin: 0; font-weight: 600; }
.rw-review-item dt:not(:first-child) { padding-top: 12px; }
.rw-review-item dd { margin: 2px 0 0; white-space: normal; }
.rw-review-location { display: block; }
.rw-review-quote { display: block; margin-top: 4px; }
em.rw-review-quote { font-style: italic; }

/* HANDOFF v2, generic state: the rewriter could not tell which section. Edit View
   shows one pale-red Reason for Review block below the notice; the modal shows an
   amber notice under the updated profile heading. Both at the notice's 12px. */
.rw-review-generic,
.rw-review-manual { margin: 0 0 12px; padding: 8px 12px; color: #282d30; font-family: Nunito, Arial, sans-serif;
  font-size: 12px; line-height: 1.4; text-align: left; overflow-wrap: anywhere; }
.rw-review-generic { border-left: 3px solid #a52d43; background: #fff8f8; }
.rw-review-manual { border-left: 3px solid #bc8822; background: #fff8e5; font-weight: 400; }
.rw-review-generic strong,
.rw-review-manual strong { display: block; font-weight: 700; color: inherit; }
.rw-review-generic p,
.rw-review-manual p { margin: 2px 0 0; }
