/* Printed documents, in real millimetres. Used for preview (scaled) and print. */
.d-page{width:210mm;height:297mm;padding:10mm 13mm 7mm;display:flex;flex-direction:column;background:#fff;color:#111a1b;
  font-family:"Public Sans",system-ui,sans-serif;font-size:9pt;line-height:1.3;overflow:hidden;position:relative;box-sizing:border-box}
.d-page *{box-sizing:border-box}
.d-logo{display:inline-flex;border:.7mm solid #12858a;font-weight:700;font-size:17pt;line-height:1;flex:none}
.d-logo b{background:#12858a;color:#fff;padding:1.6mm 2mm}.d-logo span{color:#12858a;padding:1.6mm 2mm}
.d-head{display:flex;align-items:center;gap:5mm;padding-bottom:2.6mm;border-bottom:.8mm solid #12858a}
.d-clinic strong{display:block;font-size:13pt;color:#12858a}
.d-clinic small{display:block;color:#55615f;font-size:7.8pt}
.d-title{font-family:"Source Serif 4",Georgia,serif;font-size:17.5pt;text-align:center;margin:3.4mm 0 .4mm;font-weight:700}
.d-sub{text-align:center;color:#55615f;font-size:8.2pt;margin-bottom:2.8mm;font-family:"IBM Plex Mono",monospace}
.d-who{display:grid;grid-template-columns:1fr 1fr;gap:1.1mm 8mm;border:.3mm solid #c9d3d3;padding:2.2mm 4mm;margin-bottom:2.6mm}
.d-who.photo{grid-template-columns:1fr 1fr 22mm}
.d-who>div{display:flex;flex-direction:column}
.d-who span{font-size:7.2pt;text-transform:uppercase;letter-spacing:.06em;color:#55615f}
.d-who b{font-size:9.8pt;font-weight:600}
.d-photo{grid-row:1/span 3;grid-column:3;width:22mm;height:27mm;object-fit:cover;border:.3mm solid #c9d3d3}
.d-sec{margin-bottom:2.2mm}
.d-sec h4{font-size:7.8pt;letter-spacing:.09em;text-transform:uppercase;color:#12858a;margin:0 0 1mm;border-bottom:.25mm solid #c9d3d3;padding-bottom:.8mm}
.d-t{width:100%;border-collapse:collapse}
.d-t th,.d-t td{border:.25mm solid #c9d3d3;padding:.45mm 2.4mm;text-align:left}
.d-t th{font-size:7.4pt;text-transform:uppercase;letter-spacing:.05em;color:#55615f;background:#eef5f5;font-weight:600}
.d-t tr:nth-child(odd) td{background:#fafcfc}
.d-t td:first-child{color:#3b4746;width:34%}
.d-t td.r{font-weight:600;color:#111a1b}
.d-t td.f{width:16mm;font-size:7.6pt;font-weight:700;letter-spacing:.04em}
.d-t td.n{width:30mm;color:#55615f;font-size:8.2pt}
.d-t .mono{font-family:"IBM Plex Mono",monospace}
.d-pair{display:grid;grid-template-columns:1.25fr 1fr;gap:5mm}
.d-pair .d-t td:first-child{width:30%}
.d-hl{font-weight:700;text-decoration:underline;text-underline-offset:.6mm}
.d-verdict{display:flex;align-items:center;gap:6mm;border:.8mm solid #111a1b;padding:2.4mm 5mm;margin:1.6mm 0 1.8mm}
.d-verdict .v{font-family:"Source Serif 4",Georgia,serif;font-size:17pt;font-weight:700;white-space:nowrap}
.d-verdict .vm{font-size:8.8pt;color:#55615f;display:flex;flex-direction:column;gap:.8mm}
.d-verdict .vm b{color:#111a1b}
.d-adv{font-size:9pt}.d-adv span{color:#55615f}
.d-body{font-family:"Source Serif 4",Georgia,serif;font-size:11.5pt;line-height:1.75;margin:3mm 0 4mm}
.d-body b{font-family:"Public Sans",sans-serif;font-size:10.5pt}
.d-void{margin-top:2mm;border:.6mm solid #b0281f;color:#b0281f;font-weight:700;text-align:center;padding:1.5mm;letter-spacing:.06em}
.d-grow{flex:1}
.d-decl{font-size:7.8pt;color:#55615f;border-top:.25mm dashed #c9d3d3;padding-top:1.4mm;display:flex;justify-content:space-between;gap:6mm;flex-wrap:wrap}
.d-decl span{color:#111a1b}
.d-foot{display:flex;justify-content:space-between;align-items:flex-end;padding-top:1.5mm;gap:6mm}
.d-qrbox{display:flex;align-items:center;gap:3.5mm}
.d-qr{width:22mm;height:22mm;flex:none}.d-qr svg{width:100%;height:100%;display:block}
.d-qr.empty{border:.3mm dashed #9aa7a7;color:#9aa7a7;font-size:6.6pt;display:flex;align-items:center;justify-content:center;text-align:center;padding:2mm}
.d-qrbox small{display:block;font-size:7.4pt;color:#55615f}
.d-qrbox code{display:block;font-family:"IBM Plex Mono",monospace;font-size:9.4pt;font-weight:600;margin:.5mm 0}
.d-sign{text-align:right;font-size:8.4pt;display:flex;flex-direction:column;align-items:flex-end}
.d-stamp{display:inline-block;border:.5mm solid #12858a;color:#12858a;font-weight:700;font-size:7.4pt;padding:.8mm 2.2mm;letter-spacing:.08em;transform:rotate(-4deg);margin-bottom:6mm}
.d-stamp.draft{border-color:#b0281f;color:#b0281f;margin-bottom:0}
.d-sigspace{height:16mm;width:60mm}
.d-siglabel{display:block;font-size:7pt;color:#55615f;text-transform:uppercase;letter-spacing:.06em;margin-bottom:.6mm}
.d-sigimg{max-height:15mm;max-width:50mm;margin:0 4mm 1mm 0;object-fit:contain}
.d-sline{border-top:.3mm solid #111a1b;padding-top:1mm;width:84mm}
.d-legal{margin-top:2mm;border-top:.25mm solid #c9d3d3;padding-top:1.2mm;font-size:7pt;color:#55615f;text-align:center}

/* pocket cards */
.c-sheet{padding:12mm 19mm;gap:7mm}
.c-sheethead{font-size:8.4pt;color:#55615f}.c-sheethead b{color:#111a1b}
.c-fold{display:flex;width:171.2mm;height:54mm;outline:.25mm solid #9aa7a7;background:#fff;color:#111a1b;font-family:"Public Sans",system-ui,sans-serif;flex:none}
.c-card{width:85.6mm;height:54mm;overflow:hidden;position:relative;display:flex;flex-direction:column;box-sizing:border-box}
.c-front{border-right:.3mm dashed #9aa7a7}
.c-band{background:#12858a;color:#fff;display:flex;align-items:center;gap:2.5mm;padding:2.2mm 3mm}
.c-band .d-logo{border-color:#fff;font-size:8.5pt}.c-band .d-logo b{background:#fff;color:#12858a;padding:.8mm 1mm}.c-band .d-logo span{color:#fff;padding:.8mm 1mm}
.c-band strong{display:block;font-size:8.6pt}.c-band small{display:block;font-size:6.2pt;opacity:.9}
.c-body{padding:2mm 3mm 0;flex:1}
.c-name{font-family:"Source Serif 4",Georgia,serif;font-weight:700;font-size:11.5pt;margin-bottom:1.2mm;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.c-grid{display:grid;grid-template-columns:auto 1fr;gap:.35mm 3mm;font-size:6.9pt}
.c-grid span{color:#55615f}.c-grid b{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.c-verd{display:flex;justify-content:space-between;align-items:center;padding:1.6mm 3mm;font-size:6.8pt}
.c-verd b{font-size:8pt;letter-spacing:.04em}
.c-verd.ok{background:#e1f3e8;color:#14532d}.c-verd.res{background:#fbefd9;color:#7a4504}.c-verd.no{background:#fbe3e0;color:#8a1c14}
.c-back{padding:2.6mm 3mm 2mm}
.c-top{display:flex;gap:3mm}
.c-qr{width:19mm;height:19mm;flex:none}.c-qr svg{width:100%;height:100%;display:block}
.c-h{font-size:6.4pt;text-transform:uppercase;letter-spacing:.07em;color:#12858a;font-weight:700;margin-bottom:.8mm}
.c-rest{margin-top:1.8mm;font-size:6.7pt;border-left:.6mm solid #b45309;padding:.4mm 0 .4mm 1.6mm;max-height:9mm;overflow:hidden}
.c-rest.ok{border-color:#1d7446;color:#55615f}
.c-foot{margin-top:auto;display:flex;justify-content:space-between;font-size:6.4pt;border-top:.2mm solid #c9d3d3;padding-top:1mm}
.c-foot span{display:block;color:#55615f}.c-foot b{font-family:"IBM Plex Mono",monospace;font-size:6.9pt}.c-foot .r{text-align:right}
.c-note{font-size:5.6pt;color:#7b8786;margin-top:.6mm}
.c-draft{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:14pt;color:rgba(176,40,31,.5);transform:rotate(-12deg);pointer-events:none;letter-spacing:.1em}

/* printing */
#print-root{display:none}
@page{size:A4;margin:0}
@media print{
  html,body{background:#fff!important;margin:0!important;padding:0!important}
  body>*:not(#print-root){display:none!important}
  #print-root{display:block!important}
  #print-root .d-page{page-break-after:always;break-after:page}
  #print-root .d-page:last-child{page-break-after:auto;break-after:auto}
  *{-webkit-print-color-adjust:exact;print-color-adjust:exact}
}
