/* wave498 (2026-11-08) — the quote Send composer (quotes-send-compose.js).
   Reads the quotes.css --q-* tokens; loads after document-email.css. */

.qsc-dialog .fx-dlg, .qsc-dialog [class*="fx-sheet"] { max-width: 760px; }
.qsc { display: flex; flex-direction: column; gap: 0; margin-top: 4px; }

.qsc-draftbar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin: 0 0 12px; padding: 8px 12px; border: 1px solid var(--q-warn-line, #ecd9ac); border-radius: var(--q-r-sm, 8px);
  background: var(--q-warn-bg, #fdf6e7); color: var(--q-warn-ink, #8a5a00); font-size: var(--q-fs-sm, 13px);
}

/* To / CC / Subject — one clean stack of label + field rows, hairlines between. */
.qsc-fields { border: 1px solid var(--q-line, #e1e5ea); border-radius: var(--q-r-sm, 8px); background: var(--q-card, #fff); overflow: hidden; }
.qsc-row { display: grid; grid-template-columns: 76px 1fr; align-items: center; min-height: 42px; border-top: 1px solid var(--q-hair, #edf0f3); margin: 0; }
.qsc-row:first-child { border-top: 0; }
.qsc-row-sub { min-height: 30px; border-top: 0; margin-top: -8px; }
.qsc-lbl { padding: 0 12px; font-size: var(--q-fs-sm, 13px); font-weight: 600; color: var(--q-muted, #66717f); }
.qsc-input { width: 100%; height: 40px; padding: 0 12px 0 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: var(--q-fs, 14px); color: var(--q-ink, #0f2233); }
.qsc-row:focus-within { box-shadow: inset 3px 0 0 var(--q-gold, #b08d3e); }
.qsc-name { display: flex; align-items: center; gap: 8px; padding: 0 12px 8px 0; font-size: var(--q-fs-xs, 12px); color: var(--q-muted, #66717f); }
.qsc-name .quote-link-btn { font-size: var(--q-fs-xs, 12px); }
.qsc-name-input { height: 30px; border-bottom: 1px solid var(--q-line, #e1e5ea); }

/* Message — label row with Reset changes, then the editor box. */
.qsc-msg-head { display: flex; align-items: baseline; justify-content: space-between; margin: 16px 0 6px; }
.qsc-msg-head .qsc-lbl { padding: 0; color: var(--q-ink, #0f2233); font-size: var(--q-fs, 14px); }
.qsc-reset { font-size: var(--q-fs-sm, 13px); }

.qsc-box { border: 1px solid var(--q-line-strong, #cbd2da); border-radius: var(--q-r-sm, 8px); background: var(--q-card, #fff); overflow: hidden; }
.qsc-box:focus-within { border-color: var(--q-ink, #0f2233); box-shadow: var(--q-focus, 0 0 0 3px rgba(15,34,51,.10)); }
.qsc-toolbar { display: flex; align-items: center; gap: 2px; padding: 5px 6px; border-bottom: 1px solid var(--q-hair, #edf0f3); background: var(--q-tint, #f8f9fb); }
.qsc-tool { display: inline-flex; align-items: center; justify-content: center; min-width: 32px; height: 30px; padding: 0 6px; border: 1px solid transparent; border-radius: 6px; background: transparent; color: var(--q-ink, #0f2233); font: inherit; font-size: 14px; cursor: pointer; }
.qsc-tool:hover { background: #fff; border-color: var(--q-line, #e1e5ea); }
.qsc-tool:focus-visible { outline: 2px solid var(--q-gold, #b08d3e); outline-offset: 1px; }
.qsc-tool-sep { width: 1px; height: 18px; margin: 0 6px; background: var(--q-line, #e1e5ea); }
.qsc-ico-ul { display: inline-flex; flex-direction: column; gap: 3px; }
.qsc-ico-ul i { display: block; width: 14px; height: 2px; background: currentColor; border-radius: 1px; box-shadow: -4px 0 0 0 currentColor; margin-left: 4px; }
.qsc-ico-ol { font-size: 7px; line-height: 7.5px; font-weight: 700; text-align: left; }

.qsc-editor { min-height: 190px; max-height: 46vh; overflow-y: auto; padding: 14px 16px 8px; outline: 0; font-size: 15px; line-height: 1.55; color: #14202e; }
.qsc-editor p { margin: 0 0 12px; }
.qsc-editor ul, .qsc-editor ol { margin: 0 0 12px; padding-left: 22px; }
.qsc-editor li { margin: 2px 0; }
.qsc-editor a { color: var(--q-navy, #0f2233); }
.qsc-loading { color: var(--q-faint, #98a1ad); font-style: italic; }

/* The signature: part of the preview, not of the message — locked, quieter, labelled. */
.qsc-sig { position: relative; margin: 0 16px; padding: 12px 0 14px; border-top: 1px dashed var(--q-line, #e1e5ea); user-select: text; cursor: default; }
.qsc-sig-tag { position: absolute; top: -9px; right: 0; padding: 0 6px; background: var(--q-card, #fff); font-size: 10.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--q-faint, #98a1ad); }
.qsc-sig-body { font-size: 14px; line-height: 1.5; color: #14202e; }
.qsc-sig-body p { margin: 0 0 6px; }
.qsc-sig-body a { color: inherit; pointer-events: none; }
.qsc-sig-note { margin: 10px 0 0 !important; font-size: var(--q-fs-xs, 12px); color: var(--q-muted, #66717f); }

.qsc-sigstd { max-width: 420px; font-family: Arial, Helvetica, sans-serif; color: #14202e; }
.qsc-sigstd-rule { width: 100%; height: 2px; margin: 0 0 12px; background: var(--q-gold, #b08d3e); }
.qsc-sigstd-logo { display: block; max-height: 44px; max-width: 220px; margin: 0 0 10px; }
.qsc-sigstd-name { font-size: 15px; font-weight: 700; }
.qsc-sigstd-title { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--q-gold, #b08d3e); margin: 1px 0 8px; }
.qsc-sigstd-lines { font-size: 13px; line-height: 1.6; }
.qsc-sigstd-lines b { display: inline-block; width: 14px; color: var(--q-gold, #b08d3e); }
.qsc-sigstd-bar { margin-top: 10px; padding: 6px 10px; color: #fff; font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }

.qsc-attach { display: flex; align-items: center; gap: 8px; margin: 12px 0 0; padding: 8px 12px; border: 1px solid var(--q-line, #e1e5ea); border-radius: var(--q-r-sm, 8px); background: var(--q-tint, #f8f9fb); font-size: var(--q-fs-sm, 13px); color: var(--q-ink, #0f2233); }
.qsc-attach svg { flex: none; color: var(--q-muted, #66717f); }

.qsc-draft-note { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; margin: 10px 0 0; padding: 8px 12px; border-radius: var(--q-r-sm, 8px); background: var(--q-warn-bg, #fdf6e7); color: var(--q-warn-ink, #8a5a00); font-size: var(--q-fs-sm, 13px); }

@media (max-width: 560px) {
  .qsc-row { grid-template-columns: 62px 1fr; }
  .qsc-editor { min-height: 150px; padding: 12px; }
  .qsc-sig { margin: 0 12px; }
  .qsc-dialog .fx-dlg-actions { flex-wrap: wrap; }
}
