/* THE QUOTE DOCUMENT — `Rackman - Quote Detail - Print - Desktop` 18152:29983.

   The paper is 816x1056, which is US Letter at 96dpi, with 36/40/32/40 padding
   and therefore a 736 content column. Every block inside is 736 wide and every
   number here is the frame's own.

   NOTHING IN HERE IS RESPONSIVE. A sheet of paper is not: the mobile frame
   shows the identical page scaled down as a whole (0.4387), not reflowed, so
   the phone gets a transform and the same 816px box.

   Strokes are INSIDE in the frame, so they are inset shadows here - except the
   handful of boxes with a fixed width AND height, where a border changes
   nothing. */

.qdocwrap { display: flex; flex-direction: column; align-items: center; gap: 14px; }

.qdoc {
  box-sizing: border-box;
  width: 816px; height: 1056px; flex: none;
  padding: 36px 40px 32px;
  display: flex; flex-direction: column;
  background: var(--white); border-radius: 3px;
  box-shadow: 0 6px 24px -4px rgba(0, 0, 0, .16);
  font-family: var(--font);
  color: var(--text-dark);
  overflow: hidden;
}

/* ---------- letterhead: logo + six branch columns ------------------------ */
.qdoc__head {
  display: flex; align-items: center; gap: 16px; flex: none;
  padding-bottom: 14px; box-shadow: inset 0 -1px 0 var(--black-7);
}
.qdoc__logo { width: 164px; flex: none; }
.qdoc__logo img { width: 164px; height: auto; display: block; }
.qdoc__locs { flex: 1 1 auto; display: flex; min-width: 0; }
/* six equal columns of 92.67 - the first has no left pad, the rest have 10 */
.qdoc__loc {
  flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 2px;
  padding: 0 6px 0 10px;
}
.qdoc__loc:first-child { padding-left: 0; }
.qdoc__lcity  { font-size: 8px; font-weight: 600; color: var(--text-dark); }
.qdoc__lphone { font-size: 8px; font-weight: 600; color: var(--wrc-green); }
.qdoc__laddr  { font-size: 7px; font-weight: 400; color: var(--text-light); line-height: 1.35; }

/* ---------- sales rep + quote number ------------------------------------- */
.qdoc__rep {
  display: flex; align-items: flex-start; justify-content: space-between;
  flex: none; padding: 18px 0 20px;
}
.qdoc__repl { display: flex; flex-direction: column; gap: 4px; }
.qdoc__repn { font-size: 14px; font-weight: 600; color: var(--text-dark); }
.qdoc__reps { display: flex; flex-direction: column; gap: 2px;
              font-size: 10px; color: var(--text-medium); }
.qdoc__meta { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.qdoc__mk { font-size: 14px; font-weight: 800; color: var(--text-medium); }
.qdoc__mn { font-size: 28px; font-weight: 700; letter-spacing: .03em; color: var(--wrc-green); }
.qdoc__md { font-size: 9px; color: var(--text-light); }
/* the approve button lives INSIDE the paper on the approval document */
.qdoc__approve {
  height: 32px; padding: 0 16px; border: 0; border-radius: var(--radius-md);
  background: var(--wrc-green); color: #fff;
  font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer;
}

/* ---------- the three-up bands ------------------------------------------- */
.qdoc__band {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
  flex: none; padding-bottom: 18px;
}
.qdocwrap.is-4up .qdoc__band { grid-template-columns: repeat(4, 1fr); gap: 20px; }
.qdoc__band + .qdoc__band { padding-bottom: 20px; }
.qdoc__bcol { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.qdoc__k  { font-size: 8.5px; font-weight: 500; letter-spacing: .05em; color: var(--text-medium); }
.qdoc__k2 { font-size: 8.5px; font-weight: 500; letter-spacing: .05em; color: var(--text-medium); }
.qdoc__rule { display: block; height: 1px; background: var(--black-15); flex: none; }
.qdoc__bval { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.qdoc__v1 { font-size: 11px; font-weight: 600; color: var(--text-dark); }
.qdoc__v1, .qdoc__v2 { overflow-wrap: anywhere; }
.qdoc__v2 { font-size: 10px; font-weight: 400; color: var(--text-medium); }

/* ---------- the continuation kicker -------------------------------------- */
.qdoc__cont {
  flex: none; padding: 18px 0 8px;
  font-size: 8.5px; font-weight: 500; letter-spacing: .05em; color: var(--text-medium);
}

/* ---------- the item table ------------------------------------------------
   ITEM fills, then three fixed columns with a 12px gutter:
   474 + 12 + 50 + 12 + 84 + 12 + 92 = 736. */
.qdoc__table { flex: none; }
.qdoc__thead, .qdoc__irow {
  display: grid; grid-template-columns: 1fr 50px 84px 92px; gap: 12px;
  align-items: center;
}
.qdoc__thead {
  padding-bottom: 9px;
  font-size: 8.5px; font-weight: 500; letter-spacing: .05em; color: var(--text-light);
}
.qdoc__hqty, .qdoc__hprice, .qdoc__htotal { text-align: right; }
.qdoc__trule { display: block; height: 1px; background: var(--black-15); }
.qdoc__irow { padding: 10px 0; box-shadow: inset 0 -1px 0 var(--black-7); }

.qdoc__icell { display: flex; align-items: center; gap: 12px; min-width: 0; }
/* the slot keeps its width with nothing in it, so the text column never moves */
.qdoc__thumb {
  width: 58px; height: 44px; flex: none; display: grid; place-items: center;
}
/* the no-photograph tile: the same 56x42 box, no hover, no pointer. Paper and
   web both draw it, so the slot is never empty and `.is-empty` is gone. */
.qdoc__ph {
  width: 56px; height: 42px; display: grid; place-items: center;
  border-radius: 6px; background: var(--grey-light); color: var(--text-light);
}
.qdoc__thumb img {
  width: 56px; height: 42px; object-fit: cover; border-radius: 6px;
  background: var(--grey-light); display: block;
}
.qdoc__itext { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.qdoc__iname { font-size: 11px; font-weight: 600; color: var(--text-dark); }
.qdoc__ipart { font-size: 9px; font-weight: 400; color: var(--text-light); }
.qdoc__idesc { margin: 0; font-size: 9px; line-height: 1.55; color: var(--text-dark); }
.qdoc__iqty, .qdoc__iprice {
  text-align: right; font-size: 10px; font-weight: 500; color: var(--text-medium);
  font-variant-numeric: tabular-nums;
}
.qdoc__itotal {
  text-align: right; font-size: 10px; font-weight: 600; color: var(--text-dark);
  font-variant-numeric: tabular-nums;
}

/* ---------- the closing block -------------------------------------------- */
.qdoc__grow { display: block; flex: 1 1 auto; min-height: 0; }
.qdoc__bottom { display: flex; gap: 32px; flex: none; padding-top: 18px; }
.qdoc__bleft { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.qdoc__wt, .qdoc__cm, .qdoc__tc { display: flex; flex-direction: column; gap: 7px; }
.qdoc__wtv { font-size: 12px; font-weight: 600; color: var(--text-dark); }
.qdoc__cmv { margin: 0; font-size: 10px; line-height: 1.55; color: var(--text-medium); }
/* base.css resets every list to `list-style: none` for the app's own menus, so
   a document list has to ask for its markers back - the frame draws these as a
   real unordered list at indent level 1. */
.qdoc__tcl {
  margin: 0; padding-left: 14px; list-style: disc;
  font-size: 10px; line-height: 1.55; color: var(--text-medium);
}
.qdoc__tcl li { margin: 0; list-style: inherit; }
.qdoc__tcl li::marker { color: var(--text-light); }

.qdoc__totals { width: 272px; flex: none; display: flex; flex-direction: column; gap: 8px; }
.qdoc__trow { display: flex; align-items: center; justify-content: space-between; }
.qdoc__tk { font-size: 11px; font-weight: 500; color: var(--text-medium); }
.qdoc__tv { font-size: 12px; font-weight: 600; color: var(--text-dark);
            font-variant-numeric: tabular-nums; }
.qdoc__grand {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 14px; border-radius: var(--radius-md); background: var(--grey-light);
}
.qdoc__gk { font-size: 13px; font-weight: 600; color: var(--text-dark); }
.qdoc__gv { font-size: 19px; font-weight: 700; color: var(--wrc-orange);
            font-variant-numeric: tabular-nums; }

/* ---------- the page foot ------------------------------------------------- */
.qdoc__hair { display: block; height: 1px; background: var(--black-7); flex: none; }
.qdoc__foot {
  display: flex; align-items: center; justify-content: space-between;
  flex: none; padding-top: 10px;
}
.qdoc__fl { font-size: 9px; color: var(--text-light); }
.qdoc__fr { font-size: 9px; font-weight: 600; color: var(--text-medium); }

/* ==========================================================================
   PRINT PREVIEW — the screen around the paper
   ========================================================================== */
.pp { display: flex; gap: 16px; align-items: flex-start; min-width: 0; }
.pp__rail { width: 400px; flex: none; display: flex; flex-direction: column; gap: 16px; }
.pp__canvas {
  flex: 1 1 auto; min-width: 0;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  padding: 36px 40px; border-radius: var(--radius-xl);
  background: var(--grey-medium); box-shadow: inset 0 0 0 1px var(--black-7);
  overflow: auto;
}
.pp__tpl { display: flex; align-items: center; gap: 6px; font-size: 12px; }
.pp__tplk { color: var(--text-light); font-weight: 500; }
.pp__tplv { color: var(--text-medium); font-weight: 600; }
.pp__tplc { border: 0; background: none; padding: 0; cursor: pointer;
            font: inherit; font-size: 12px; font-weight: 600; color: var(--wrc-green); }

.pp__card {
  padding: 16px; border-radius: var(--radius-lg); background: var(--white);
  box-shadow: inset 0 0 0 1px var(--black-7);
  display: flex; flex-direction: column; gap: 12px;
}
.pp__cardhd { display: flex; align-items: center; gap: 6px; }
.pp__tile {
  width: 30px; height: 30px; flex: none; display: grid; place-items: center;
  border-radius: var(--radius-md); background: var(--grey-light); color: var(--text-medium);
}
.pp__cardt { font-size: 10px; font-weight: 600; color: var(--text-dark); }
.pp__k { font-size: 10px; font-weight: 600; letter-spacing: .05em; color: var(--text-light); }

.pp__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pp__rowl { font-size: 12.5px; font-weight: 500; color: var(--text-medium); }
/* read-only shows the Success chip the frame draws, not a disabled switch */
.pp__yes {
  padding: 4px 10px; border-radius: var(--radius-full);
  background: var(--wrc-green-7); color: var(--wrc-green);
  font-size: 11px; font-weight: 600;
}
.pp__tgl { display: inline-flex; align-items: center; cursor: pointer; }
.pp__tgl input { position: absolute; opacity: 0; width: 0; height: 0; }

.pp__acts { display: flex; gap: 8px; }
.pp__sel {
  display: flex; align-items: center; justify-content: space-between;
  height: 34px; padding: 0 10px 0 12px; border-radius: var(--radius-md);
  background: var(--white); box-shadow: inset 0 0 0 1px var(--black-15);
  font-size: 13px; font-weight: 600; color: var(--text-dark); cursor: pointer;
}

/* the clipped terms preview, with its fade and its expand button */
.pp__terms { position: relative; }
.pp__note {
  position: relative; height: 192px; overflow: hidden;
  padding: 12px 12px 0; border-radius: var(--radius-md);
  background: var(--white); box-shadow: inset 0 0 0 1px var(--black-15);
  font-size: 13px; line-height: 1.55; color: var(--text-medium); white-space: pre-line;
}
.pp__fade {
  position: absolute; left: 1px; right: 1px; bottom: 1px; height: 28px;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  background: linear-gradient(rgba(255, 255, 255, 0), #fff);
}
/* fixed 26x26, so a real border is correct here */
.pp__expand {
  position: absolute; top: 8px; right: 8px;
  width: 26px; height: 26px; display: grid; place-items: center;
  border: 1px solid var(--black-15); border-radius: 6px;
  background: var(--white); color: var(--text-light); cursor: pointer;
}
.pp__ta {
  height: 150px; padding: 10px 12px; border-radius: var(--radius-md);
  background: var(--white); box-shadow: inset 0 0 0 1px var(--black-15);
  font-family: var(--font); font-size: 12px; line-height: 1.5; color: var(--text-medium);
  resize: none; border: 0; outline: 0;
}

/* ---------- mobile: the paper is SCALED, never reflowed ------------------- */
@media (max-width: 900px) {
  .pp { flex-direction: column; }
  .pp__rail { width: 100%; }
  .pp__canvas { width: 100%; padding: 0; background: none; box-shadow: none; border-radius: 0; }
  .pp__tpl { display: none; }
  /* The frame scales the paper by .4387 (358/816) at its own 390 width. The
     factor has to follow the screen instead of being that one number, and CSS
     cannot divide a length by a length to get one - so fitDoc() measures the
     wrapper and writes --docscale, and this is the fallback for the frame's
     own width. A sheet of paper does not reflow; it only gets smaller. */
  .qdocwrap { width: 100%; overflow: hidden; align-items: flex-start; }
  .qdoc {
    transform: scale(var(--docscale, .4387)); transform-origin: top left;
    margin-bottom: calc(1056px * var(--docscale, .4387) - 1056px + 12px);
  }
  /* BUT NOT THE CONTINUOUS CARD. `.qdoc--cont` is the approval document, and it
     is a web page rather than a sheet: width:100%, height:auto, with a full
     phone reflow of its own further down this file (band to one column, the
     six-city letterhead dropped, the rep block and the totals stacked). It only
     shares the `.qdoc` class with the paginated paper, so the paper's scale was
     landing on it too — which is why the approval preview came out as a
     correctly reflowed card shrunk to 42% and stranded in the left half of the
     screen, with its columns crushed. It reflows; it does not scale. */
  .qdoc--cont { transform: none; margin-bottom: 0; }
  /* the title and its three actions do not fit one line on a phone */
  .pp ~ .panel__hd, .panel__hd { flex-wrap: wrap; row-gap: 10px; }
  .panel__hd .row { flex-wrap: wrap; }
}
.pp__plabel {
  display: none; font-size: 10px; font-weight: 500; letter-spacing: .05em;
  color: var(--text-light);
}
@media (max-width: 900px) { .pp__plabel { display: block; } }

/* ==========================================================================
   PRINTING THE DOCUMENT
   Two things in css/app.css are correct for the 6x4 item label and fatal for a
   letter-size quote: `@page { size: 6in 4in }`, which is GLOBAL and would
   shrink this to a label, and `@media print { body > *:not(#overlay-root) }`,
   which would blank a route rendered inside #app. So printDoc() clones the
   pages into the overlay root - the one subtree that survives that rule - and
   injects an @page of its own, which wins on source order because it arrives
   later. Both are removed again when the dialog closes.
   ========================================================================== */
@media print {
  .qdocwrap--print { display: block; width: auto; }
  .qdocwrap--print .qdoc {
    /* 816x1056 IS 8.5x11in - a CSS px is 1/96in on paper, so the measured box
       needs no conversion, only its screen chrome taken off */
    box-shadow: none; border-radius: 0; margin: 0;
    break-after: page; page-break-after: always;
    transform: none;
  }
  .qdocwrap--print .qdoc:last-child { break-after: auto; page-break-after: auto; }
}


/* ==========================================================================
   EMAIL QUOTE — `Rackman - Quote Detail - Email - Desktop` 18152:30301 and its
   compose twin 18153:30652.

   A 400 rail of fields beside the rendered email. The card named "email-600"
   in the frame is not 600 of anything - it is FILL and measures 1252 - so the
   preview fills its column here too, as drawn.
   ========================================================================== */
.em { display: flex; gap: 20px; align-items: flex-start; min-width: 0; }
.em__rail { width: 400px; flex: none; display: flex; flex-direction: column; gap: 20px; }
.em__prev { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 8px; }

.em__card {
  padding: 16px; border-radius: var(--radius-lg); background: var(--white);
  box-shadow: inset 0 0 0 1px var(--black-7);
  display: flex; flex-direction: column; gap: 12px;
}
.em__fields { gap: 16px; border-radius: var(--radius-xl); }
.em__cardhd { display: flex; align-items: center; gap: 6px; }
.em__tile {
  width: 30px; height: 30px; flex: none; display: grid; place-items: center;
  border-radius: var(--radius-md); background: var(--grey-light); color: var(--text-medium);
}
.em__cardt { font-size: 10px; font-weight: 600; color: var(--text-dark); }
.em__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.em__rowl { font-size: 12.5px; font-weight: 500; color: var(--text-medium); }
.em__yes {
  padding: 4px 10px; border-radius: var(--radius-full);
  background: var(--wrc-green-7); color: var(--wrc-green);
  font-size: 11px; font-weight: 600;
}
.em__no {
  padding: 4px 10px; border-radius: var(--radius-full);
  background: var(--grey-light); color: var(--text-light);
  font-size: 11px; font-weight: 600;
}
/* SENT ON / SENT BY stay a 50/50 pair at every width - the mobile frame keeps
   the two-up and lets the value wrap to three lines rather than stacking */
.em__two { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }

.em__f { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.em__k { font-size: 10px; font-weight: 500; letter-spacing: .05em; color: var(--text-light); }
.em__lbl { font-size: 11px; font-weight: 500; color: var(--text-medium); }
.em__lbl.is-grey { color: var(--text-light); }
.em__req { color: var(--wrc-orange); margin-left: 2px; }
/* An email address is one unbreakable word. SENT BY sits in a half-width
   column and `john.doe@warehouserack.com` ran straight out of the card
   and over the preview beside it - every value here can be one of these. */
.em__ro, .em__rov, .em__note, .em__in {
  overflow-wrap: anywhere; word-break: break-word; min-width: 0;
}
.em__ro { font-size: 13px; line-height: 1.45; color: var(--text-dark); }
.em__rov { font-size: 13px; font-weight: 600; color: var(--text-dark); }
.em__note { margin: 0; font-size: 12px; line-height: 1.55; color: var(--text-dark); }

.em__ctrl {
  display: flex; align-items: center; gap: 8px;
  height: 35px; padding: 0 10px 0 12px; border-radius: var(--radius-md);
  background: var(--white); box-shadow: inset 0 0 0 1px var(--black-15);
}
/* From is locked in BOTH states - the only greyed control the frames draw */
.em__ctrl.is-locked { background: var(--grey-light); }
.em__ctrl.is-locked .em__in { color: var(--text-light); }
.em__in {
  flex: 1 1 auto; min-width: 0; border: 0; outline: 0; background: none; padding: 0;
  font-family: var(--font); font-size: 12.5px; font-weight: 500; color: var(--text-dark);
}
.em__x {
  width: 13px; height: 13px; flex: none; display: grid; place-items: center;
  padding: 0; border: 0; background: none; color: var(--text-light); cursor: pointer;
}
.em__ta {
  min-height: 76px; padding: 10px 12px; border-radius: var(--radius-md);
  background: var(--white); box-shadow: inset 0 0 0 1px var(--black-15);
  border: 0; outline: 0; resize: vertical;
  font-family: var(--font); font-size: 12px; line-height: 1.55; color: var(--text-medium);
}

/* the subject wraps its tokens onto a second line, exactly as the frame does */
.em__subj {
  display: flex; flex-wrap: wrap; align-items: center; gap: 5px;
  min-height: 57px; padding: 9px 10px 9px 12px; border-radius: var(--radius-md);
  background: var(--white); box-shadow: inset 0 0 0 1px var(--black-15);
}
.em__subjt { font-size: 12px; font-weight: 500; color: var(--text-dark); }
.em__chip {
  padding: 3px 7px; border-radius: 5px;
  background: var(--wrc-rackman-light, #dde7ff); color: var(--wrc-rackman-dark, #102f72);
  font-size: 10.5px; font-weight: 600;
}

/* CC / BCC is drawn by hand in the frame: two labels over one shared input,
   the active one underlined in Rackman blue at exactly its own label width */
.em__cc { display: flex; flex-direction: column; gap: 8px; }
.em__tabs { display: flex; gap: 18px; }
.em__tab {
  padding: 0 0 6px; border: 0; background: none; cursor: pointer;
  font: inherit; font-size: 12px; font-weight: 600; color: var(--text-light);
  box-shadow: inset 0 -2px 0 transparent;
}
.em__tab.is-on { color: var(--wrc-rackman); box-shadow: inset 0 -2px 0 var(--wrc-rackman); }

.em__sent {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px; border-radius: var(--radius-full);
  background: var(--wrc-green-7); color: var(--wrc-green);
  font-size: 11px; font-weight: 600;
}

/* ---------- the rendered email ------------------------------------------- */
.em__plabel { display: none; align-items: center; gap: 6px;
              font-size: 9.5px; color: var(--text-light); }
.em__plabel b { font-weight: 500; }
.em__mail {
  border-radius: var(--radius-lg); background: var(--white);
  box-shadow: inset 0 0 0 1px var(--black-7); overflow: hidden;
}
.em__body { display: flex; flex-direction: column; gap: 15px; padding: 34px 44px 24px; }
.em__hi { margin: 0; font-size: 15px; font-weight: 600; color: var(--text-dark); }
.em__p  { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--text-medium); }
.em__facts { display: flex; flex-direction: column; gap: 4px; }
.em__f1 { font-size: 14.5px; font-weight: 600; color: var(--text-dark); }
.em__f2 { font-size: 14.5px; color: var(--text-medium); }
.em__cta { padding: 4px 0; }
.em__sigdiv { padding: 4px 44px; }
.em__sigdiv i { display: block; height: 1px; background: var(--black-15); }
.em__sig { display: flex; flex-direction: column; gap: 2px; padding: 18px 44px 6px; }
.em__signame { font-size: 14.5px; font-weight: 700; color: var(--text-dark); }
.em__sigrole { font-size: 13px; color: var(--text-light); }
.em__sigphone { font-size: 13px; color: var(--text-medium); }
.em__sigmail { font-size: 13px; font-weight: 500; color: var(--wrc-green); }
.em__foot { display: flex; flex-direction: column; gap: 10px; padding: 18px 44px 28px; }
.em__logo { width: 180px; height: auto; display: block; }
.em__faddr { font-size: 12.5px; color: var(--text-medium); }
.em__fbranch { font-size: 12px; font-weight: 600; color: var(--wrc-green); }
.em__flegal { font-size: 11px; line-height: 1.5; color: var(--text-light); }

@media (max-width: 900px) {
  .em { flex-direction: column; }
  .em__rail { width: 100%; gap: 10px; }
  .em__prev { width: 100%; }
  /* the caption exists only on the mobile frames */
  .em__plabel { display: flex; }
  .em__body { padding: 34px 16px 24px; }
  .em__sigdiv, .em__sig { padding-left: 16px; padding-right: 16px; }
  .em__foot { padding: 18px 16px 28px; }
}

/* ==========================================================================
   SHARE / PUBLIC APPROVAL — `- Public Approval - Desktop` 18152:30399, its
   edit twin 18153:30768 and the standalone page 18153:31085.
   ========================================================================== */
/* the approval document is ONE card, not sheets: a web page has no page 2 */
.qdoc--cont {
  width: 100%; max-width: 1212px; height: auto; min-height: 0;
  border-radius: var(--radius-xl); box-shadow: inset 0 0 0 1px var(--black-7);
  padding: 36px 40px 40px;
}
.qdoc--cont .qdoc__band { grid-template-columns: repeat(4, 1fr); gap: 36px; }

.pp__rail.is-narrow { width: 366px; }
.pp__canvas.is-page { background: var(--grey-light); }

.sh__link { display: flex; align-items: center; gap: 8px;
            padding: 0 8px 0 12px; height: 34px; border-radius: var(--radius-md);
            background: var(--white); box-shadow: inset 0 0 0 1px var(--black-15); }
.sh__url { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis;
           white-space: nowrap; font-size: 12.5px; color: var(--text-medium); }
.sh__copy { width: 24px; height: 24px; flex: none; display: grid; place-items: center;
            padding: 0; border: 0; background: none; border-radius: var(--radius-sm);
            color: var(--text-light); cursor: pointer; }
.sh__copy:hover { background: var(--black-7); color: var(--wrc-rackman); }
.sh__msg { min-height: 76px; padding: 10px 12px; border-radius: var(--radius-md);
           background: var(--white); box-shadow: inset 0 0 0 1px var(--wrc-rackman);
           border: 0; outline: 0; resize: vertical;
           font-family: var(--font); font-size: 12.5px; line-height: 1.5;
           color: var(--text-medium); }

.sh__page { display: flex; flex-direction: column; align-items: center; gap: 20px;
            width: 100%; }
.sh__head { display: flex; flex-direction: column; align-items: center; gap: 10px;
            text-align: center; }
.sh__h1 { font-size: 30px; font-weight: 700; color: var(--text-dark); }
.sh__sub { margin: 0; font-size: 13px; color: var(--text-medium); }
.sh__acts { display: flex; gap: 10px; padding-top: 4px; }
.sh__done { display: inline-flex; align-items: center; gap: 7px;
            padding: 8px 16px; border-radius: var(--radius-full);
            font-size: 13px; font-weight: 600; }
.sh__done.is-ok { background: var(--wrc-green-7); color: var(--wrc-green); }
.sh__done.is-no { background: var(--status-red-tint); color: var(--status-red); }

/* ---------- the standalone customer page --------------------------------- */
.qap { min-height: 100vh; display: flex; flex-direction: column;
       background: var(--grey-light); }
.qap__hd { display: grid; place-items: center; padding: 32px 16px;
           background: var(--white); }
.qap__logo { width: 210px; height: auto; display: block; }
.qap__strip { display: flex; align-items: center; justify-content: center;
              gap: 14px; height: 56px; padding: 0 16px;
              background: var(--wrc-green); color: #fff;
              font-size: 13px; font-weight: 600; letter-spacing: .02em; }
.qap__dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; }
.qap__main { flex: 1 1 auto; display: flex; flex-direction: column;
             align-items: center; gap: 24px; padding: 36px 16px 56px; }
.qap__doc { width: 100%; display: flex; justify-content: center; }
.qap__miss { text-align: center; display: flex; flex-direction: column; gap: 8px; }
.qap__ft { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px;
           padding: 24px 16px; background: #2c2c35; color: #b9bbc6;
           font-size: 12px; }
.qap__ft a { color: #fff; }

@media (max-width: 900px) {
  .pp__rail.is-narrow { width: 100%; }
  .qdoc--cont { padding: 20px 16px 28px; border-radius: 0; }
  .qdoc--cont .qdoc__band { grid-template-columns: 1fr; gap: 14px; }
  /* the phone frame drops the six-city letterhead entirely */
  .qdoc--cont .qdoc__head { display: none; }
  .qdoc--cont .qdoc__rep { flex-direction: column; gap: 14px; }
  .qdoc--cont .qdoc__meta { align-items: flex-start; }
  .qdoc--cont .qdoc__bottom { flex-direction: column; gap: 20px; }
  .qdoc--cont .qdoc__totals { width: 100%; }
  .sh__h1 { font-size: 22px; }
  .qap__main { padding: 16px 0 32px; gap: 16px; }
  .qap__hd { padding: 22px 16px; }
  .qap__logo { width: 170px; }
  .qap__strip { height: 34px; font-size: 10.5px; gap: 8px; }
}

/* the Email screen's empty state: view mode with nothing ever sent */
.em__empty { align-items: center; text-align: center; gap: 8px; padding: 28px 16px; }
.em__emptyt { margin: 0; font-size: 13px; font-weight: 600; color: var(--text-dark); }
.em__emptys { margin: 0; font-size: 12px; line-height: 1.5; color: var(--text-light); }
