/* Public report links and QR presentation — v27.05 */
.rasid-public-report-link{color:inherit;text-decoration:none;cursor:pointer}
.compact-report-head .report-barcode-box{
  width:84px!important;min-width:84px!important;display:grid!important;justify-items:center!important;gap:3px!important;
  padding:4px!important;border:1px solid #dce5e1!important;border-radius:9px!important;background:#fff!important;
}
.compact-report-head .report-qr-code{display:block!important;width:58px!important;height:58px!important;background:#fff!important}
.compact-report-head .report-barcode-box small{font-size:6.5px!important;line-height:1.25!important;text-align:center!important;color:#40544a!important;white-space:normal!important}
.approved-header-barcode .approved-report-qr,.approved-header-barcode .lab-report-qr{
  width:84px!important;min-width:84px!important;display:grid!important;justify-items:center!important;gap:3px!important;
}
.approved-header-barcode .approved-report-qr-svg{display:block!important;width:58px!important;height:58px!important;padding:3px!important;background:#fff!important;border:1px solid #dce5e1!important;border-radius:8px!important}
.approved-header-barcode .approved-report-qr small{font-size:7.5px!important;line-height:1.25!important;text-align:center!important;white-space:normal!important;max-width:82px!important;color:#40544a!important}

body.public-report-mode{margin:0;background:#eef4f1;min-height:100vh;overflow:auto}
body.public-report-mode>#login,body.public-report-mode>#shell{display:none!important}
.public-report-root{min-height:100vh;padding:18px;direction:rtl}
.public-report-toolbar{max-width:1080px;margin:0 auto 14px;padding:12px 16px;border:1px solid #d5e2dc;border-radius:12px;background:#fff;display:flex;align-items:center;justify-content:space-between;gap:12px;box-shadow:0 7px 24px rgba(0,77,53,.08)}
.public-report-brand{display:flex;align-items:center;gap:10px;color:#004d35}.public-report-brand img{width:48px;height:42px;object-fit:contain}.public-report-brand b{display:block;font-size:16px}.public-report-brand small{display:block;color:#64756c;margin-top:2px}
.public-report-status{padding:7px 11px;border-radius:999px;background:#e8f3ef;color:#006c45;font-weight:800;font-size:12px;white-space:nowrap}
.public-report-content{max-width:1080px;margin:0 auto}
.public-report-content .compact-visit-report,.public-report-content .approved-lab-report{margin:0 auto!important}
.public-report-content .report-actions,.public-report-content .module-toolbar,.public-report-content [data-page-jump],.public-report-content [data-print],.public-report-content [data-save-lab-report],.public-report-content [data-open-lab-report-window]{display:none!important}
.public-report-loading,.public-report-error{max-width:760px;margin:12vh auto;padding:28px;border-radius:16px;background:#fff;border:1px solid #d5e2dc;text-align:center;box-shadow:0 12px 36px rgba(0,77,53,.09)}
.public-report-loading img,.public-report-error img{width:90px;height:76px;object-fit:contain}.public-report-loading h2,.public-report-error h2{color:#004d35;margin:12px 0 6px}.public-report-loading p,.public-report-error p{color:#66766e;line-height:1.8}.public-report-error{border-color:#efc3c3}.public-report-error h2{color:#8b1e1e}
.public-report-note{max-width:1080px;margin:12px auto 0;padding:9px 13px;border-radius:9px;background:#fff8e7;border:1px solid #ead69b;color:#6b5720;font-size:12px;line-height:1.7}
@media(max-width:720px){
  .public-report-root{padding:8px}.public-report-toolbar{padding:9px 11px;border-radius:9px;position:sticky;top:0;z-index:20}.public-report-brand img{width:38px;height:34px}.public-report-brand b{font-size:14px}.public-report-brand small{font-size:10px}.public-report-status{font-size:10px;padding:6px 8px}
  .public-report-content{overflow-x:auto;-webkit-overflow-scrolling:touch}.public-report-content .compact-visit-report,.public-report-content .approved-lab-report{min-width:760px;transform-origin:top right}
  .compact-report-head .report-barcode-box{width:76px!important;min-width:76px!important}.compact-report-head .report-qr-code{width:54px!important;height:54px!important}
}
@media print{.public-report-toolbar,.public-report-note{display:none!important}.public-report-root{padding:0!important;background:#fff!important}}


/* v27.05: compact QR codes that stay inside report headers */
.compact-report-head .report-barcode-box{width:84px!important;min-width:84px!important;max-width:84px!important;padding:3px!important;align-self:start!important}
.compact-report-head .report-qr-code{width:58px!important;height:58px!important}
.approved-header-barcode .approved-report-qr,.approved-header-barcode .lab-report-qr{width:84px!important;min-width:84px!important;max-width:84px!important;top:0!important}
.approved-header-barcode .approved-report-qr-svg{width:58px!important;height:58px!important;padding:2px!important}
.approved-header-barcode .approved-report-qr small{max-width:82px!important;font-size:6.5px!important}
@media(max-width:720px){.compact-report-head .report-barcode-box{width:76px!important;min-width:76px!important;max-width:76px!important}.compact-report-head .report-qr-code{width:54px!important;height:54px!important}.approved-header-barcode .approved-report-qr,.approved-header-barcode .lab-report-qr{width:76px!important;min-width:76px!important;max-width:76px!important}.approved-header-barcode .approved-report-qr-svg{width:54px!important;height:54px!important}}
@media print{.compact-report-head .report-barcode-box{width:80px!important;min-width:80px!important;max-width:80px!important}.compact-report-head .report-qr-code{width:56px!important;height:56px!important}.approved-header-barcode .approved-report-qr,.approved-header-barcode .lab-report-qr{width:80px!important;min-width:80px!important;max-width:80px!important;top:0!important}.approved-header-barcode .approved-report-qr-svg{width:56px!important;height:56px!important}}
