/* result screens (submit success, verify result, payment, order, sent) */
.dsec.done { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 18px; align-items: start; }
.dsec.done .done-i { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; }
.dsec.done .done-i .ic { width: 26px; height: 26px; stroke-width: 2.2; }
.dsec.done.green .done-i { background: #e6edf5; color: #17304a; }   /* success = navy: the owner never wants green */
.dsec.done.red .done-i { background: #f8e4e1; color: #8e2f22; }
.dsec.done h2 { font: 600 25px/1.25 var(--serif) !important; margin: 4px 0 6px !important; }
.dsec.done p { margin: 0 !important; font-size: 16px; text-align: left !important; }
.mid { margin-top: 18px; display: inline-block; background: var(--tint); border: 1px solid var(--rule); border-left: 4px solid var(--navy); border-radius: 6px; padding: 12px 18px; }
.mid span { display: block; font-size: 13px; color: var(--mu); }
.mid b { display: block; font: 600 26px var(--sans); color: var(--navy); letter-spacing: .04em; }
.mid small { display: block; font-size: 13.5px; color: var(--body); margin-top: 4px; max-width: 520px; }
.fgrid.c1 { grid-template-columns: 1fr; }
.pdfcard { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 18px; align-items: start; background: var(--tint); border: 1px solid var(--rule); border-radius: 8px; padding: 20px; margin: 6px 0 28px; }
.pdfcard .pg { width: 56px; height: 70px; border: 1px solid #c9d2dc; border-radius: 3px; background: #fff; display: grid; place-items: center; color: var(--navy); box-shadow: 2px 2px 0 #dfe6ee; }
.pdfcard b { font-size: 16.5px; color: var(--ink); }
.pdfcard p { margin: 4px 0 0 !important; text-align: left !important; }
.pdfcard .btnrow { margin: 14px 0 0; }

/* PDF reader */
body.reader { background: #525a63; min-height: 100vh; display: flex; flex-direction: column; }
.rd-bar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 18px; background: #fff; border-bottom: 1px solid var(--rule); padding: 10px 20px; }
.rd-back { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; font-size: 14.5px; white-space: nowrap; }
.rd-back .ic { transform: rotate(180deg); width: 16px; height: 16px; }
.rd-t { flex: 1; min-width: 0; border-left: 1px solid var(--rule); padding-left: 18px; }
.rd-t small { display: block; font-size: 12.5px; color: var(--mu); }
.rd-t b { display: block; font: 600 16px/1.3 var(--serif); color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rd-tools { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--mu); }
.rd-tools button { width: 32px; height: 32px; border: 1px solid #c9d2dc; background: #fff; border-radius: 4px; font-size: 18px; cursor: pointer; color: var(--ink); }
.rd-pg { margin-right: 10px; }
.rd-z { min-width: 44px; text-align: center; }
.rd-tools .btn { padding: 9px 14px; margin-left: 8px; }
.rd-canvas { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 20px; padding: 28px 16px 40px; }
.rd-page { position: relative; width: 100%; max-width: 760px; aspect-ratio: 210 / 297; background: #fff; box-shadow: 0 4px 18px rgba(0, 0, 0, .35); padding: 9% 10% 8%; font: 400 13.5px/1.6 'Times New Roman', Georgia, serif; color: #222; overflow: hidden; text-align: justify; }
.rd-page h1 { font: 700 20px/1.3 'Times New Roman', serif; text-align: center; margin: 14px 0 10px; }
.rd-page h4 { font: 700 13.5px 'Times New Roman', serif; margin: 14px 0 4px; text-align: center; }
.rd-page p { margin: 0 0 8px; }
.rd-au { text-align: center !important; }
.rd-run { position: absolute; top: 3.5%; left: 10%; right: 10%; font-size: 10.5px; color: #777; border-bottom: 1px solid #ddd; padding-bottom: 3px; text-align: right; font-style: italic; }
.rd-fol { position: absolute; bottom: 3.5%; left: 0; right: 0; text-align: center; font-size: 11px; color: #555; }
.rd-foot { display: flex; flex-wrap: wrap; gap: 6px 22px; align-items: center; justify-content: center; background: #f4f6f9; border-top: 1px solid var(--rule); padding: 12px 20px; font-size: 13.5px; color: var(--mu); }
.rd-foot span { display: inline-flex; align-items: center; gap: 6px; }
.rd-foot .ic { width: 15px; height: 15px; color: var(--oa); }

@media (max-width: 860px) {
  .dsec.done { grid-template-columns: 44px minmax(0, 1fr); gap: 14px; }
  .dsec.done .done-i { width: 42px; height: 42px; }
  .dsec.done h2 { font-size: 21px !important; }
  .mid { display: block; }
  .mid b { font-size: 22px; }
  .pdfcard { grid-template-columns: 1fr; }
  .pdfcard .pg { display: none; }
  .rd-bar { flex-wrap: wrap; gap: 8px 12px; padding: 8px 12px; }
  .rd-t { order: 3; flex-basis: 100%; border: 0; padding: 0; }
  .rd-back span { display: none; }
  .rd-tools { margin-left: auto; }
  .rd-tools .btn span { display: none; }
  .rd-pg, .rd-z, .rd-tools button { display: none; }
  .rd-canvas { padding: 14px 8px 24px; gap: 12px; }
  .rd-page { font-size: 8.5px; }
  .rd-page h1 { font-size: 12.5px; }
  .rd-page h4 { font-size: 9px; }
}
