:root{--brand: #0ea5e9;--muted: #e5e7eb}*,html,body{touch-action:manipulation!important}body{font-family:system-ui,Segoe UI,Roboto,sans-serif;font-size:14px;line-height:1.5;margin:0;padding:0}.page{width:100%;max-width:8.5in;min-height:10.3in;margin:0 auto;padding:.35in;display:flex;flex-direction:column;gap:10px;justify-content:space-between;color:#1f2937;box-sizing:border-box}.mobile-view .page{max-width:100%!important;width:100%!important;padding:16px;min-height:auto}.header{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:8px}.header__logo img,.header__logo svg,.report-logo{max-height:48px;max-width:240px;object-fit:contain;vertical-align:middle}.header-right{text-align:right}.clinic-name{font-weight:700;font-size:14px}.visit-date{font-size:14px;color:#1f2937;font-weight:600}.patient-meta{font-size:13px;color:#6b7280;margin-top:6px;margin-bottom:8px}.content{flex:1;display:flex;flex-direction:column;gap:12px}.content>.card.modern-style:not(:last-child):after{content:"";display:block;height:1px;background:linear-gradient(to right,transparent,#e5e7eb 20%,#e5e7eb 80%,transparent);margin-top:16px}.card{border:1px solid var(--muted);border-left:4px solid var(--brand);padding:10px 12px}.card h2{font-size:15px;margin:0 0 6px;color:var(--brand);font-weight:600}.twocol{columns:2;column-gap:16px}.twocol li{margin:2px 0;break-inside:avoid}ul{list-style:disc;padding-left:16px;margin:0}table{width:100%;border-collapse:collapse;font-size:13px}th,td{padding:6px 8px;text-align:left;border-bottom:1px solid var(--muted);line-height:1.2}th{font-weight:600;background:#f9fafb}td:last-child{text-align:right;white-space:nowrap}.red-flags{border-left-color:#dc2626;background:#fef2f2}.red-flags h2{color:#dc2626}.footer{display:flex;justify-content:space-between;align-items:center;font-size:11px;color:#374151;margin-top:8px;font-weight:500}.pdf-footer .pdf-page-number{visibility:hidden}.actions{position:fixed;top:20px;right:20px;display:flex;gap:8px;z-index:1000}.btn{padding:8px 16px;border:none;border-radius:4px;background:var(--brand);color:#fff;cursor:pointer;font-size:12px}.btn:hover{opacity:.9}.card.modern-style{border:none;border-left:4px solid var(--brand);border-radius:8px;padding:12px 14px;background:#fff;box-shadow:0 1px 3px #0000001a,0 1px 2px #0000000f}.card.modern-style.tooth-chart{border-left-color:#3b82f6;background:linear-gradient(to right,#eff6ff,#fff);box-shadow:0 2px 4px #3b82f61a,0 1px 2px #0000000f}.card.modern-style.findings{border-left-color:#f97316;background:linear-gradient(to right,#fff7ed,#fff)}.card.modern-style.treatments{border-left-color:#10b981;background:linear-gradient(to right,#f0fdf4,#fff)}.card.modern-style.aftercare{border-left-color:#8b5cf6;background:linear-gradient(to right,#faf5ff,#fff)}.card.modern-style.next-steps{border-left-color:#06b6d4;background:linear-gradient(to right,#ecfeff,#fff)}.card.modern-style h2{font-size:17px;font-weight:600;margin-bottom:8px;color:#1f2937;letter-spacing:-.01em;display:flex;align-items:center;gap:8px}.card.modern-style.tooth-chart h2{color:#1e40af}.card.modern-style.findings h2{color:#c2410c}.card.modern-style.treatments h2{color:#047857}.card.modern-style.aftercare h2{color:#6d28d9}.card.modern-style.next-steps h2{color:#0e7490}.card.modern-style.red-flags{border-left-color:#ef4444;background:linear-gradient(to right,#fef2f2,#fff);box-shadow:0 2px 4px #ef444426,0 1px 2px #0000000f}.card.modern-style.red-flags h2{color:#dc2626}.card.modern-style p[style*=italic]{color:#9ca3af;font-size:13px;padding:8px 0}.card.modern-style ul{padding-left:20px}.card.modern-style li{margin-bottom:4px;line-height:1.5;font-size:14px;page-break-inside:avoid}.card.modern-style{page-break-inside:avoid}.mobile-view .page{max-width:100%;width:100%;padding:20px;min-height:auto}.mobile-view body{font-size:16px;line-height:1.6}.mobile-view .card.modern-style h2{font-size:19px}.mobile-view .card.modern-style li{font-size:16px;line-height:1.7;margin-bottom:8px}.mobile-view .header{flex-direction:column;gap:12px}.mobile-view .header-right{text-align:left}.mobile-view .twocol{columns:1}.mobile-view .card{max-width:100%;overflow-x:auto}.mobile-view table{font-size:14px;max-width:100%}.mobile-view th,.mobile-view td{padding:4px 6px}@media print{@page{size:letter;margin:.35in}body{margin:0}.actions{display:none!important}.card.modern-style{box-shadow:none;border:1px solid #e5e7eb;page-break-inside:avoid}.card.modern-style.tooth-chart{page-break-after:always}.card.modern-style.tooth-chart,.card.modern-style.findings,.card.modern-style.treatments,.card.modern-style.aftercare,.card.modern-style.next-steps,.card.modern-style.red-flags{background:#fff}.content{page-break-inside:auto}.content>.card.modern-style:not(:last-child):after{display:none}}.report-root{width:8.5in;min-height:11in}.report-root.compact{font-size:12px;line-height:1.25}.report-root.compact h1,.report-root.compact h2,.report-root.compact h3{margin:4px 0}.report-root.compact .card,.report-root.compact .section{padding:6px;margin:6px 0;border-radius:6px}.report-root.compact table{border-collapse:collapse;width:100%}.report-root.compact th,.report-root.compact td{padding:3px 4px;border-top:1px solid #eee;vertical-align:top}.report-root.compact .two-col{columns:2;column-gap:16px}.report-root.compact ul{margin:0;padding-left:16px}.report-root.compact .muted{opacity:.85}@media print{.report-root{box-shadow:none}}#report-root,.report-root{width:var(--page-width);margin:0 auto;box-sizing:border-box;overflow:visible}img,svg{max-width:100%;height:auto}.report-logo{max-height:48px;max-width:240px;object-fit:contain;vertical-align:middle}.section,.card,table,ul,li{break-inside:avoid}@page{size:Letter;margin:.35in}:root{--page-width: 7.8in}html,body{width:8.5in}#report-root,.report-root{width:var(--page-width);margin:0 auto;box-sizing:border-box;padding:0!important}*{-webkit-print-color-adjust:exact;print-color-adjust:exact}.section,.card,h1,h2,h3{margin:6px 0!important}p,li{margin:4px 0!important;line-height:1.25!important}table{width:100%;border-collapse:collapse}table td,table th{padding:4px 6px!important}@media print{.actions,.action-buttons,#header-actions,[data-actions],.no-print{display:none!important}}@media screen{.no-screen{display:none!important}}@media screen{*,html,body{touch-action:manipulation!important}.actions,.action-buttons,#header-actions,[data-actions]{display:inline-flex!important;gap:8px;align-items:center;pointer-events:auto!important;visibility:visible!important}#header-actions{position:fixed;top:16px;right:16px;z-index:99999}}#print-root,#report-root,.report-root{padding-bottom:0!important}#print-root .print-footer-fixed,#report-root .print-footer-fixed,.print-footer-fixed{display:none!important}
