/* 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
   when the profile has no notice. 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; }
