/* Documento de la cotización (lo usan el CRM y la página del cliente /q/…). */
/* Mismo diseño que la de North Crescent, en los colores de WaDimisa */
.qd-doc { --qd-navy: #0b3d6e; --qd-deep: #072b4f; --qd-mint: #3ed4ef; --qd-teal: #0a6fb0; --qd-soft: #e6f2f6; --qd-line: #dde3ea; --qd-muted: #5d6b7a; --qd-text: #1b2430;
  max-width: 820px; margin: 0 auto; background: #fff; color: var(--qd-text); border-radius: 6px; overflow: hidden; box-shadow: 0 30px 80px -40px rgba(8,31,48,.7); font-size: 15px; }
.qd-doc * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
/* banner */
.qd-banner { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 22px; padding: 20px 26px;
  background: radial-gradient(120% 140% at 0% 0%, #1a6fb8 0%, var(--qd-navy) 42%, var(--qd-deep) 100%); color: #fff; position: relative; }
.qd-banner::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: linear-gradient(90deg, var(--qd-mint), #2b8db0 60%, var(--qd-mint)); }
.qd-bn-logo { width: 164px; height: 164px; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: 0 0 0 5px rgba(62,212,239,.55), 0 10px 26px rgba(0,0,0,.3); }
.qd-bn-logo img { width: 126px; height: auto; }
.qd-bn-main { display: flex; flex-direction: column; align-items: center; text-align: center; min-width: 0; }
.qd-bn-name { font-family: Georgia, "Times New Roman", serif; font-size: 34px; letter-spacing: .06em; line-height: 1.05; }
.qd-bn-tag { margin-top: 4px; font-size: 12px; font-weight: 700; letter-spacing: .32em; text-transform: uppercase; color: var(--qd-mint);
  padding-bottom: 8px; border-bottom: 2px solid rgba(62,212,239,.6); }
.qd-bn-values { display: flex; align-items: center; gap: 10px; margin-top: 8px; font-size: 14px; letter-spacing: .04em; }
.qd-bn-values i { width: 6px; height: 6px; border-radius: 50%; background: var(--qd-mint); }
.qd-bn-icons { display: flex; gap: 16px; margin-top: 12px; }
.qd-bn-icons > span { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 11px; font-weight: 600; }
.qd-bn-ic { width: 34px; height: 34px; border-radius: 50%; background: var(--qd-teal); border: 2px solid var(--qd-mint); display: grid; place-items: center; }
.qd-bn-ic svg { width: 18px; height: 18px; }
.qd-bn-contact { display: grid; gap: 7px; font-size: 12.5px; }
.qd-bn-contact > span { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.qd-bn-mini { width: 22px; height: 22px; border-radius: 50%; background: var(--qd-teal); display: grid; place-items: center; flex: none; }
.qd-bn-mini svg { width: 12px; height: 12px; }
/* cabecera */
.qd-head { display: flex; justify-content: space-between; gap: 20px; padding: 30px 44px 0; flex-wrap: wrap; }
.qd-k { font-size: 13px; font-weight: 600; color: var(--qd-teal); }
.qd-head h1 { margin: 2px 0; font-size: 28px; color: var(--qd-text); letter-spacing: -.01em; }
.qd-head p { margin: 0; color: var(--qd-muted); }
.qd-num { text-align: right; }
.qd-num strong { display: block; font-size: 18px; color: var(--qd-navy); }
.qd-num span { display: block; font-size: 14px; color: var(--qd-muted); }
.qd-title { margin: 26px 44px 0; padding-top: 22px; border-top: 3px solid var(--qd-mint); font-size: 24px; color: var(--qd-navy); line-height: 1.25; }
.qd-sub { margin: 6px 44px 0; color: var(--qd-teal); font-weight: 600; font-size: 16px; }
.qd-letter { padding: 6px 44px 0; max-width: 68ch; font-size: 16px; line-height: 1.65; }
.qd-letter p { margin: 14px 0 0; white-space: pre-line; }
/* bandas y tablas */
.qd-sec { margin: 28px 44px 0; }
.qd-band { margin: 0 0 8px; padding: 8px 14px; background: var(--qd-navy); color: #fff; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; border-radius: 6px; }
.qd-lead { margin: 0 0 12px; color: var(--qd-muted); font-size: 14px; }
.qd-kv { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.qd-kv th, .qd-kv td { padding: 9px 12px; border-bottom: 1px solid var(--qd-line); text-align: left; vertical-align: top; }
.qd-kv th { width: 34%; background: #f4f6f8; color: var(--qd-navy); font-weight: 600; }
/* servicios y total */
.qd-svcs { border-top: 1px solid var(--qd-line); }
.qd-svc { display: flex; align-items: center; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--qd-line); }
.qd-svc-ic { width: 40px; height: 40px; border-radius: 10px; background: var(--qd-soft); color: var(--qd-teal); display: grid; place-items: center; flex: none; }
.qd-svc-ic svg { width: 24px; height: 24px; }
.qd-svc > div { flex: 1; } .qd-svc strong { display: block; font-size: 17px; }
.qd-svc span { color: var(--qd-muted); font-size: 14px; }
.qd-svc b { font-size: 18px; color: var(--qd-navy); font-variant-numeric: tabular-nums; white-space: nowrap; }
.qd-total { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: end; margin: 18px 44px 0; }
.qd-total dl { margin: 0; display: grid; gap: 4px; width: 100%; max-width: 300px; margin-left: auto; font-variant-numeric: tabular-nums; }
.qd-total dl div { display: flex; justify-content: space-between; gap: 24px; color: var(--qd-muted); }
.qd-total dt small { display: block; font-size: 12px; } .qd-total dd { margin: 0; color: var(--qd-text); }
.qd-total .disc dd { color: var(--qd-teal); font-weight: 600; } .qd-total .after { border-top: 1px solid var(--qd-line); padding-top: 4px; }
.qd-grand { background: var(--qd-deep); color: #fff; border-radius: 14px; padding: 14px 22px; text-align: right; border-bottom: 4px solid var(--qd-mint); }
.qd-grand span { display: block; font-size: 13px; color: #a9cce6; }
.qd-grand strong { font-size: 32px; font-variant-numeric: tabular-nums; }
/* columnas */
.qd-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; padding: 30px 44px 0; }
.qd-cols h3 { font-size: 16px; color: var(--qd-navy); margin: 0 0 8px; }
.qd-cols ul { margin: 0; padding: 0; list-style: none; }
.qd-cols li { position: relative; padding-left: 22px; margin-bottom: 6px; font-size: 15px; }
.qd-cols ul li::before, .qd-trust li::before { content: ""; position: absolute; left: 2px; top: 7px; width: 10px; height: 6px; border-left: 2px solid var(--qd-teal); border-bottom: 2px solid var(--qd-teal); transform: rotate(-45deg); }
.qd-cols p { margin: 0 0 6px; font-size: 14px; color: var(--qd-muted); }
.qd-steps { margin: 0; padding-left: 20px; font-size: 14px; }
.qd-cols .qd-steps li { padding-left: 4px; }
.qd-steps li::marker { color: var(--qd-teal); font-weight: 700; }
.qd-trust { margin: 30px 44px 0; padding: 22px 24px; background: var(--qd-deep); color: #dbe9f3; border-radius: 14px; }
.qd-trust h3 { margin: 0 0 6px; color: #fff; font-size: 16px; }
.qd-trust p { margin: 0 0 12px; font-size: 14px; color: #a9cce6; max-width: 62ch; }
.qd-trust ul { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 24px; }
.qd-trust li { position: relative; padding-left: 22px; font-size: 14px; }
.qd-trust li::before { border-color: var(--qd-mint); }
.qd-closing { margin: 30px 44px 0; padding: 4px 0 4px 18px; border-left: 4px solid var(--qd-mint); font-size: 20px; line-height: 1.4; font-weight: 600; color: var(--qd-navy); }
.qd-cond { margin: 30px 44px 0; padding: 20px 22px; background: #f4f6f8; border-left: 4px solid var(--qd-navy); border-radius: 0 14px 14px 0; }
.qd-cond h3 { margin: 0 0 10px; font-size: 16px; color: var(--qd-navy); }
.qd-cond ol { margin: 0; padding-left: 20px; font-size: 14px; }
.qd-cond li { margin-bottom: 6px; padding-left: 4px; white-space: pre-line; }
.qd-cond li::marker { color: var(--qd-navy); font-weight: 700; }
/* aceptación y firmas */
.qd-accept { margin: 30px 44px 0; padding: 22px 24px; border: 1.5px solid var(--qd-mint); border-radius: 16px; break-inside: avoid; }
.qd-accept h3 { margin: 0 0 8px; font-size: 18px; }
.qd-accept p { margin: 0; font-size: 14px; line-height: 1.55; }
.qd-sigs { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin: 26px 0 4px; }
.qd-sigcol { display: flex; flex-direction: column; }
.qd-sigline { height: 54px; border-bottom: 1.5px solid var(--qd-muted); margin-bottom: 6px; }
.qd-sigcol span { font-size: 13px; color: var(--qd-muted); }
.qd-foot { margin-top: 30px; padding: 22px 44px 26px; background: var(--qd-soft); color: var(--qd-text); font-size: 13.5px; }
.qd-foot em { display: block; margin-top: 8px; font-style: italic; color: var(--qd-teal); }
@media (max-width: 700px) {
  .qp-back { padding: 0 0 40px; } .qd-doc { border-radius: 0; }
  .qd-banner { grid-template-columns: 1fr; justify-items: center; text-align: center; padding: 22px 16px 24px; }
  .qd-bn-logo { width: 136px; height: 136px; } .qd-bn-logo img { width: 104px; }
  .qd-bn-name { font-size: 26px; } .qd-bn-icons { gap: 10px; } .qd-bn-contact { justify-items: center; }
  .qd-head, .qd-letter, .qd-cols, .qd-foot { padding-left: 20px; padding-right: 20px; }
  .qd-title, .qd-sub, .qd-sec, .qd-total, .qd-trust, .qd-closing, .qd-cond, .qd-accept { margin-left: 20px; margin-right: 20px; }
  .qd-num { text-align: left; } .qd-total, .qd-cols, .qd-trust ul, .qd-sigs { grid-template-columns: 1fr; }
}
@media print {
  .qd-doc { box-shadow: none; border-radius: 0; max-width: none; font-size: 13.5px; overflow: visible; }
  .qd-banner { gap: 16px; padding: 16px 18px; }
  .qd-bn-logo { width: 132px; height: 132px; } .qd-bn-logo img { width: 100px; }
  .qd-bn-name { font-size: 26px; white-space: nowrap; } .qd-bn-contact { font-size: 11px; }
  .qd-head { flex-wrap: nowrap; padding: 22px 28px 0; } .qd-head h1 { font-size: 24px; }
  .qd-letter, .qd-cols, .qd-foot { padding-left: 28px; padding-right: 28px; } .qd-letter { font-size: 14px; max-width: none; }
  .qd-title, .qd-sub, .qd-sec, .qd-total, .qd-trust, .qd-closing, .qd-cond, .qd-accept { margin-left: 28px; margin-right: 28px; }
  .qd-sec, .qd-trust, .qd-closing, .qd-cond { margin-top: 20px; } .qd-cols { padding-top: 20px; }
  .qd-kv th, .qd-kv td { padding: 6px 10px; } .qd-svc { padding: 10px 0; }
  .qd-band, .qd-total, .qd-trust, .qd-cols > section, .qd-closing, .qd-accept, .qd-svc, .qd-kv tr { break-inside: avoid; }
  .qd-band { break-after: avoid; }
  .qd-foot { margin-top: 20px; }
}

/* Firma ya hecha, estado y huella */
.qd-accept.done { border-color: #0a6fb0; background: #f6fafb; }
.qd-sigline { display: flex; align-items: flex-end; }
.qd-sigline img { max-height: 52px; max-width: 100%; mix-blend-mode: multiply; }
.qd-proof { margin-top: 10px !important; font-size: 12px !important; color: var(--qd-muted); overflow-wrap: anywhere; }
.qd-status { font-weight: 600; color: var(--qd-teal) !important; }
.qpage-bar > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---- Página del cliente (/q/…) ---- */
body.qpage { margin: 0; background: #dfe5ec; padding: 0 16px 110px; font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif; color: #1b2430; }
.qpage-loading { text-align: center; padding: 80px 0; color: #5d6b7a; }
.qpage-bar { position: sticky; top: 0; z-index: 5; display: flex; justify-content: space-between; align-items: center; gap: 12px; max-width: 820px; margin: 0 auto 16px;
  padding: 10px 16px; background: #072b4f; color: #dbe9f3; border-radius: 0 0 12px 12px; font-size: 14px; }
.qpage-bar b { color: #fff; }
.qbtn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 20px; border: 0; border-radius: 10px; background: #0a6fb0; color: #fff;
  font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; }
.qbtn:hover { background: #1c5063; } .qbtn:disabled { opacity: .6; cursor: wait; }
.qbtn.ghost { min-height: 36px; padding: 0 14px; white-space: nowrap; flex: none; background: #3ed4ef; color: #072b4f; }
.qbtn.big { width: 100%; min-height: 56px; margin-top: 16px; font-size: 18px; }
.qpage-form h3 { font-size: 22px !important; }
.qpage-stmt { overflow-wrap: anywhere; color: #34506b; }
.qpage-check { display: flex; gap: 12px; align-items: flex-start; margin: 16px 0 6px; padding: 14px 16px; background: #e6f2f6; border-radius: 12px; font-weight: 600; cursor: pointer; }
.qpage-check input { width: 22px; height: 22px; margin: 1px 0 0; flex: none; accent-color: #0a6fb0; }
.qpage-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.qpage-form label:not(.qpage-check) { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.qpage-form input:not([type=checkbox]) { width: 100%; box-sizing: border-box; min-height: 46px; padding: 0 12px; border: 1.5px solid #c9d3de; border-radius: 10px; font: inherit; font-size: 16px; }
.qpage-form input:focus { outline: 3px solid rgba(62,212,239,.5); border-color: #0a6fb0; }
.qpage-sig-l { margin-top: 16px; }
.sig-box { position: relative; border: 1.5px dashed #9aa9b8; border-radius: 12px; background: #fbfcfd; }
.sig-canvas { display: block; width: 100%; height: 170px; touch-action: none; cursor: crosshair; }
.sig-hint { position: absolute; left: 16px; bottom: 14px; color: #9aa9b8; pointer-events: none; font-size: 14px; }
.sig-clear { position: absolute; top: 8px; right: 8px; border: 0; background: #eef2f6; color: #34506b; border-radius: 8px; padding: 6px 12px; font: inherit; font-size: 13px; cursor: pointer; }
.qpage-err { margin: 12px 0 0; padding: 10px 14px; border-radius: 10px; background: #fbe7e5; color: #a1352d; font-weight: 600; }
.qpage-legal { margin-top: 12px !important; font-size: 12.5px !important; color: #5d6b7a; }
.qpage-done { max-width: 772px; margin: 0 auto 16px; padding: 24px; background: #fff; border: 2px solid #0a6fb0; border-radius: 16px; text-align: center; box-sizing: border-box; }
.qpage-done-mark { width: 52px; height: 52px; margin: 0 auto 8px; border-radius: 50%; background: #0a6fb0; color: #fff; display: grid; place-items: center; font-size: 28px; font-weight: 700; }
.qpage-done h2 { margin: 0 0 6px; color: #0b3d6e; }
.qpage-done p { margin: 0 0 8px; color: #34506b; }
.qpage-expired { border-color: #c98a12 !important; background: #fcf3dc; }
.qpage-contact a { color: #0a6fb0; font-weight: 600; }
.qpage-msg { max-width: 560px; margin-top: 60px; text-align: center; }
.qpage-msg-top { padding: 24px; background: #0b3d6e; border-bottom: 5px solid #3ed4ef; }
.qpage-msg-top img { width: 120px; height: auto; background: #fff; border-radius: 50%; padding: 10px; }
.qpage-msg-body { padding: 24px 28px 30px; }
.qpage-msg-body h1 { margin: 0 0 8px; color: #0b3d6e; font-size: 22px; }
.qpage-sticky { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 6; display: flex; justify-content: space-between; align-items: center; gap: 12px;
  max-width: 796px; margin: 0 auto; padding: 12px 16px; background: #072b4f; color: #fff; border-radius: 14px; text-decoration: none; box-shadow: 0 10px 30px rgba(8,31,48,.4);
  transition: transform .2s, opacity .2s; }
.qpage-sticky.hide { transform: translateY(140%); opacity: 0; }
.qpage-sticky-go { background: #3ed4ef; color: #072b4f; font-weight: 700; padding: 8px 14px; border-radius: 10px; }
@media (max-width: 700px) {
  body.qpage { padding: 0 0 100px; } .qpage-bar { border-radius: 0; margin-bottom: 0; }
  .qpage-two { grid-template-columns: 1fr; } .qpage-done { margin: 12px; }
}
@media print {
  @page { size: letter; margin: 12mm; }
  body.qpage { background: #fff; padding: 0; }
  .qpage-bar, .qpage-sticky, .qpage-done, .qpage-form { display: none !important; }
}

/* ---- Factura (mismo sistema que la cotización) ---- */
.inv-head { display: flex; justify-content: space-between; gap: 24px; padding: 28px 44px 0; flex-wrap: wrap; }
.inv-bill h1 { margin: 2px 0 4px; font-size: 24px; }
.inv-bill p { margin: 0; color: var(--qd-muted); line-height: 1.5; }
.inv-title { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.inv-title > strong { font-size: 30px; letter-spacing: .06em; color: var(--qd-navy); line-height: 1; }
.inv-no { font-size: 16px; font-weight: 700; color: var(--qd-teal); }
.inv-stamp { margin: 4px 0 2px; padding: 3px 12px; border-radius: 6px; border: 2px solid currentColor; font-size: 13px; font-weight: 800; letter-spacing: .12em; }
.inv-stamp.paid { color: #0a8f8c; } .inv-stamp.void { color: #b4423a; } .inv-stamp.overdue { color: #b4423a; }
.inv-stamp.partial { color: #c98a12; } .inv-stamp.draft { color: #5d6b7a; }
.inv-title dl { margin: 8px 0 0; display: grid; gap: 3px; font-size: 14px; }
.inv-title dl div { display: flex; justify-content: flex-end; gap: 14px; }
.inv-title dt { color: var(--qd-muted); } .inv-title dd { margin: 0; font-weight: 600; min-width: 130px; text-align: right; }
.inv-rule { height: 3px; margin: 20px 44px 0; background: var(--qd-mint); }
.inv-table { width: calc(100% - 88px); margin: 20px 44px 0; border-collapse: collapse; font-size: 14.5px; }
.inv-table th { background: var(--qd-navy); color: #fff; text-align: left; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; padding: 10px 12px; }
.inv-table th:first-child { border-radius: 6px 0 0 6px; } .inv-table th:last-child { border-radius: 0 6px 6px 0; }
.inv-table td { padding: 12px; border-bottom: 1px solid var(--qd-line); vertical-align: top; }
.inv-table .num, .inv-pays .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.qd-grand.paid { background: #0a8f8c; border-bottom-color: #3ed4ef; }
.inv-pays th { width: 40%; }
.inv-ways { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.inv-way { display: flex; gap: 12px; padding: 14px; border: 1px solid var(--qd-line); border-radius: 12px; background: #fbfcfd; break-inside: avoid; }
.inv-way-ic { width: 38px; height: 38px; border-radius: 10px; background: var(--qd-soft); color: var(--qd-teal); display: grid; place-items: center; flex: none; }
.inv-way-ic svg { width: 22px; height: 22px; }
.inv-way strong { display: block; color: var(--qd-navy); }
.inv-way p { margin: 3px 0 0; font-size: 13.5px; color: var(--qd-muted); line-height: 1.5; overflow-wrap: anywhere; }
.inv-paybtn { display: inline-block; margin-top: 8px; padding: 9px 16px; border-radius: 9px; background: #0a6fb0; color: #fff !important; font-weight: 700; text-decoration: none; font-size: 14px; }
.inv-paylink { display: none; margin-top: 4px; font-size: 12px; color: var(--qd-navy); overflow-wrap: anywhere; }
.inv-paynote { margin: 10px 0 0; font-size: 13.5px; color: var(--qd-muted); }
.inv-notes p { margin: 0 0 4px; font-size: 14px; }
@media (max-width: 700px) {
  .inv-head { padding: 22px 20px 0; } .inv-title { text-align: left; align-items: flex-start; }
  .inv-title dl div { justify-content: flex-start; } .inv-title dd { text-align: left; min-width: 0; }
  .inv-rule { margin: 18px 20px 0; } .inv-table { width: calc(100% - 40px); margin: 16px 20px 0; font-size: 13.5px; }
  .inv-table th:nth-child(3), .inv-table td:nth-child(3) { display: none; }
  .inv-ways { grid-template-columns: 1fr; }
}
@media print {
  .inv-head { padding: 20px 28px 0; flex-wrap: nowrap; } .inv-rule { margin: 16px 28px 0; }
  .inv-table { width: calc(100% - 56px); margin: 16px 28px 0; font-size: 13px; }
  .inv-table tr, .inv-ways, .inv-way { break-inside: avoid; }
  .inv-paybtn { display: none; } .inv-paylink { display: block; }
}

/* ---- Orden de trabajo ---- */
.wo-map a { color: var(--qd-teal); font-weight: 600; }
.wo-box { margin-top: 18px; }
.wo-access { border-left-color: var(--qd-teal); background: var(--qd-soft); }
.wo-special { border-left-color: #c98a12; background: #fcf3dc; }
.wo-box p { margin: 0 0 4px; font-size: 14.5px; white-space: pre-line; }
.wo-tasks { list-style: none; margin: 0; padding: 0; }
.wo-tasks li { display: flex; gap: 12px; align-items: flex-start; padding: 9px 4px; border-bottom: 1px solid var(--qd-line); font-size: 15px; break-inside: avoid; }
.wo-tasks li.wo-svc { padding-top: 14px; font-weight: 700; color: var(--qd-navy); border-bottom: 2px solid var(--qd-mint); }
.wo-check { width: 18px; height: 18px; border: 2px solid var(--qd-navy); border-radius: 4px; flex: none; margin-top: 2px; }
.wo-times { display: flex; flex-wrap: wrap; gap: 24px; margin: 6px 0 4px; font-size: 14px; color: var(--qd-muted); }
.wo-final { break-inside: avoid; }
.wo-doc .inv-title > strong { font-size: 24px; white-space: nowrap; }

/* ---- Registro del empleado (/join/…) ---- */
.jn-body { padding: 28px 44px 10px; }
.jn-body h1 { margin: 0 0 12px; color: var(--qd-navy); font-size: 28px; }
.jn-welcome { padding: 4px 0 4px 18px; border-left: 4px solid var(--qd-mint); }
.jn-welcome p { margin: 0 0 12px; font-size: 16px; line-height: 1.65; }
.jn-sign { color: var(--qd-teal); font-style: italic; font-weight: 600; }
.jn-lead { margin: 18px 0 0; font-size: 15px; line-height: 1.6; }
.jn-form { margin: 20px 0 0 !important; }
.jn-form h2 { margin: 0 0 10px; font-size: 18px; color: var(--qd-navy); }
.jn-form .jn-h { margin-top: 20px; }
.jn-form > div { margin-top: 10px; }
.jn-opt { font-weight: 400; color: #5d6b7a; font-size: 13px; }
.jn-hint { margin: 0 0 6px; font-size: 13.5px; color: #5d6b7a; }
.jn-done { margin: 20px 0 0 !important; }
.jn-install { margin: 22px 0 10px; padding: 18px 20px; border: 1px solid var(--qd-line); border-radius: 14px; }
.jn-install h2 { margin: 0 0 10px; font-size: 18px; color: var(--qd-navy); }
.jn-os { margin: 8px 0; padding: 10px 14px; border-radius: 10px; background: #f4f6f8; }
.jn-os.on { background: var(--qd-soft); outline: 2px solid var(--qd-mint); }
.jn-os ol { margin: 6px 0 0; padding-left: 20px; line-height: 1.7; }
.jn-os a { color: var(--qd-teal); font-weight: 600; }
@media (max-width: 700px) { .jn-body { padding: 22px 18px 6px; } }

/* ---- Reportes de la visita (base: North Crescent) ---- */
.rp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.rp-grid figure { margin: 0; break-inside: avoid; }
.rp-grid a { display: block; border-radius: 10px; overflow: hidden; background: #f4f6f8; aspect-ratio: 4 / 3; }
.rp-grid img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rp-grid figcaption { margin-top: 5px; font-size: 12px; font-weight: 700; color: var(--qd-muted); letter-spacing: .01em; }
.rp-empty { margin: 6px 0 0; color: var(--qd-muted); font-size: 14px; }
/* Oficina */
.rp-office .qd-foot { margin-top: 28px; }
.rp-ohead { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 26px 32px 16px; border-bottom: 3px solid var(--qd-teal); }
.rp-ohead img { width: 64px; height: 64px; object-fit: contain; }
.rp-ohead > div { display: grid; gap: 2px; }
.rp-ohead strong { font-size: 18px; color: var(--qd-navy); }
.rp-ohead b { font-size: 14px; color: var(--qd-teal); }
.rp-ohead span { font-size: 12px; color: var(--qd-muted); }
.rp-wo { justify-items: end; text-align: right; }
.rp-wo strong { font-size: 22px; }
.rp-chip { justify-self: end; padding: 3px 10px; border-radius: 6px; background: var(--qd-soft); color: #235668; font-weight: 800; font-size: 12px; }
.rp-chip.bad { background: #fbe3e1; color: #b4423a; }
.rp-wo em { font-style: normal; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #b4423a; }
.rp-details { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; margin: 18px 32px 0; }
.rp-details dt { font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--qd-muted); }
.rp-details dd { margin: 2px 0 0; font-size: 14.5px; }
.rp-time { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 10px; margin: 18px 32px 0; padding: 12px 14px; background: #f4f6f8; border-radius: 10px; }
.rp-time span { display: block; font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--qd-muted); }
.rp-time b { font-size: 14px; } .rp-time b.bad { color: #b4423a; }
.rp-flags { margin: 16px 32px 0; padding: 12px 16px; background: #fbe3e1; border-left: 4px solid #b4423a; border-radius: 8px; }
.rp-flags h3 { margin: 0 0 6px; color: #b4423a; font-size: 14.5px; }
.rp-flags ul { margin: 0; padding-left: 18px; font-size: 14px; display: grid; gap: 3px; }
.rp-stage { margin: 22px 32px 0; }
.rp-stage h3 { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: 0 0 10px; padding-bottom: 8px; border-bottom: 1.5px solid var(--qd-teal); font-size: 17px; color: var(--qd-navy); }
.rp-stage h3 small { font-size: 12.5px; font-weight: 500; color: var(--qd-muted); }
.rp-ans { width: 100%; border-collapse: collapse; margin-bottom: 14px; font-size: 14px; }
.rp-ans th { width: 46%; text-align: left; font-weight: 700; color: var(--qd-muted); padding: 7px 10px 7px 0; vertical-align: top; }
.rp-ans td { padding: 7px 0; white-space: pre-line; }
.rp-ans tr { border-bottom: 1px solid #dde3ea; }
.rp-ans tr.bad td { color: #b4423a; font-weight: 700; }
.rp-approved { margin: 18px 32px 0; color: var(--qd-teal); font-weight: 600; font-size: 14px; }
/* Cliente */
.rp-letter { margin: 22px 44px 0; }
.rp-letter h2 { margin: 0 0 10px; font-size: 22px; line-height: 1.25; color: var(--qd-navy); }
.rp-letter p { margin: 0; font-size: 15px; line-height: 1.6; color: #33414f; }
.rp-obs { padding: 14px 18px; background: var(--qd-soft); border-left: 4px solid var(--qd-teal); border-radius: 8px; }
.rp-obs p { margin: 0 0 8px; font-size: 15px; line-height: 1.55; white-space: pre-line; } .rp-obs p:last-child { margin: 0; }
.rp-guarantee { margin: 26px 44px 0; padding: 16px 20px; background: var(--qd-soft); border-left: 4px solid var(--qd-teal); border-radius: 10px; }
.rp-guarantee h3 { margin: 0 0 4px; font-size: 16px; color: var(--qd-navy); }
.rp-guarantee p { margin: 0; font-size: 15px; }
.rp-close { margin: 26px 44px 0; display: grid; gap: 4px; }
.rp-close p { margin: 0 0 8px; font-size: 15px; }
.rp-close strong { color: var(--qd-navy); } .rp-close span { color: var(--qd-muted); font-size: 14px; } .rp-close em { font-style: normal; font-weight: 700; color: var(--qd-teal); }
@media (max-width: 640px) {
  .rp-ohead { grid-template-columns: auto 1fr; padding: 18px 16px 12px; } .rp-wo { grid-column: 1 / -1; justify-items: start; text-align: left; }
  .rp-details, .rp-time, .rp-flags, .rp-stage, .rp-approved { margin-left: 16px; margin-right: 16px; }
  .rp-details { grid-template-columns: 1fr; } .rp-time { grid-auto-flow: row; grid-template-columns: 1fr 1fr; }
  .rp-letter, .rp-guarantee, .rp-close { margin-left: 20px; margin-right: 20px; }
  .rp-grid { gap: 8px; }
}
@media print { .rp-grid { gap: 10px; } .rp-stage h3, .qd-band { break-after: avoid; } .rp-flags, .rp-guarantee, .rp-time { break-inside: avoid; } }

/* ---- "Automation solutions by North C": pie de las páginas públicas, formularios y correos ---- */
.nc-powered { text-align: center; padding: 18px 12px 26px; font: 11px/1.4 Arial, Helvetica, sans-serif; }
.nc-powered a { color: #5E6B7A; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.nc-powered a:hover { color: #0a6fb0; }
.nc-powered img { display: block; width: 29px; height: 14px; border: 0; }
.login .nc-powered { padding: 14px 0 0; }
@media print { .nc-powered { padding-top: 8px; } }
