/* ============================================================
   document-email.css — wave49-send (2026-10-22): the composer, the
   TEST MODE banner and the email-outcome dialog (document-email.js).
   Tokens only. Gold: Send stays each dialog's one .btn-primary; nothing
   here adds another.
   ============================================================ */
.rk-de-test { margin: 0 0 12px; padding: 10px 12px; border: 1px solid var(--ds-warn-ink, #8a4b00); border-radius: var(--ds-r-sm, 6px); background: var(--ds-fill, #fff8ec); color: var(--ds-ink); }
.rk-de-live { margin: 0 0 12px; padding: 10px 12px; border-left: 3px solid var(--ds-navy, #1d2b44); background: var(--ds-fill, #f5f6f8); color: var(--ds-ink); }
.rk-composer { display: flex; flex-direction: column; gap: 6px; margin: 8px 0 4px; }
.rk-composer textarea { min-height: 180px; line-height: 1.5; font: inherit; }
.rk-composer input[readonly], .rk-composer textarea[readonly] { background: var(--ds-fill, #f5f6f8); }
.rk-c-note, .rk-c-pdf { margin: 0; font-size: var(--ds-fs-sm, 13px); }
.rk-c-only { display: inline-flex; align-items: center; gap: 6px; font-size: var(--ds-fs-sm, 13px); color: var(--ds-muted); }
.rk-de-why { margin: 8px 0; color: var(--ds-warn-ink, #8a4b00); }
.rk-de-bidfail { margin: 8px 0; padding-left: 1.2em; }
.inv-email-line:empty { display: none; }
.rk-de-opt { display: flex; gap: 6px; align-items: baseline; margin: 6px 0; }
/* wave71-sendonly: the off panel inside every send dialog. */
.rk-de-off { margin: 0 0 12px; padding: 12px 14px; border: 1px solid var(--ds-line, #d8dce3); border-left: 3px solid var(--ds-navy, #1d2b44); border-radius: var(--ds-r-sm, 6px); background: var(--ds-fill, #f5f6f8); color: var(--ds-ink); }
.rk-de-off p { margin: 0 0 10px; line-height: 1.5; }
.rk-de-off .fx-dlg-actions { margin: 0; }
/* wave307: the open-count eye — solid once opened, dimmed while a
   send waits unopened; the hover (title) carries the detail. */
.rk-eye { display: inline-flex; align-items: center; vertical-align: -2px; margin-left: 6px; color: var(--ds-violet, #6d4bd8); cursor: help; }
.rk-eye .rk-eye-i { width: 15px; height: 15px; }
.rk-eye-dim { color: var(--ds-muted, #8a8496); opacity: .55; }
/* wave451: the quote register's Seen eye — BIG and unmistakable
   (Micheal's ruling): grey while a quote waits unopened, BLUE once
   opened, with the opens listed under it. */
.rk-seen-big .rk-eye { margin-left: 0; vertical-align: middle; }
.rk-seen-big .rk-eye .rk-eye-i { width: 26px; height: 26px; }
.rk-seen-big .rk-eye-open { color: var(--ds-blue, #1f6fd0); opacity: 1; }
.rk-seen-big .rk-eye-dim { color: var(--ds-muted, #8a8496); opacity: .6; }
/* wave456: the register's own eye — always present, always big; grey
 * until the quote is opened, blue once it has been. */
.rk-reg-eye { display: inline-flex; align-items: center; }
.rk-reg-eye .rk-eye-i { width: 30px; height: 30px; }
.rk-reg-eye-dim { color: #9aa0a8; opacity: .75; }
.rk-reg-eye-open { color: var(--ds-blue, #1f6fd0); }
.rk-seen-count { margin-top: 4px; font-size: 12px; color: var(--ds-muted, #6b6577); }
.rk-seen-list { margin: 4px 0 0; padding-left: 16px; font-size: 12px; color: var(--ds-muted, #6b6577); line-height: 1.45; }
.qs-send-opened .rk-eye { margin-left: 0; margin-right: 2px; }
/* wave482: ONE register Seen cell (quotes, invoices, change orders) —
   the big eye with the count beside it; the opens list overlays on
   hover / focus / tap and never grows the row. */
.rk-seen-cell { position: relative; display: inline-flex; align-items: center; gap: 6px; vertical-align: middle; white-space: nowrap; }
.rk-seen-inline { margin-left: 8px; }
.rk-seen-on { cursor: help; border-radius: 6px; }
.rk-seen-on:focus { outline: none; }
.rk-seen-on:focus-visible { outline: 2px solid var(--ds-blue, #1f6fd0); outline-offset: 2px; }
.rk-seen-n { font-size: 12px; font-weight: 600; color: var(--ds-blue, #1f6fd0); }
.rk-seen-pop { display: none; position: absolute; top: calc(100% + 6px); left: 0; z-index: 80; min-width: 220px; max-width: 320px; max-height: 280px; overflow: auto; overscroll-behavior: contain; padding: 8px 12px 10px; background: var(--ds-card, #fff); color: var(--ds-ink, #1d2433); border: 1px solid var(--ds-line, #d8dce3); border-radius: var(--ds-r-sm, 6px); box-shadow: 0 8px 24px rgba(11, 34, 53, .16); white-space: normal; text-align: left; font-weight: 400; cursor: default; }
.rk-seen-pop::before { content: ''; position: absolute; left: 0; right: 0; top: -8px; height: 8px; }
.rk-seen-on:hover .rk-seen-pop, .rk-seen-on:focus .rk-seen-pop, .rk-seen-on:focus-within .rk-seen-pop, .rk-seen-on.rk-seen-show .rk-seen-pop { display: block; }
.rk-seen-pop.rk-seen-flip::before { top: auto; bottom: -8px; }
.rk-seen-on.rk-seen-hush .rk-seen-pop { display: none; }
.rk-seen-pop-h { display: block; margin-bottom: 4px; font-size: 12px; font-weight: 600; color: var(--ds-ink, #1d2433); }
.rk-seen-pop .rk-seen-list { margin: 0; padding-left: 16px; color: var(--ds-ink, #1d2433); }
.rk-seen-pop .rk-seen-list li { margin: 1px 0; }
