/* #1042 phone_report_view: the finished report on the screen. Used only while window.PhoneReportView has the screen open
   (#report-view exists); nothing here matches anything else in the app. */
.ph-report-view { position: fixed; inset: 0; z-index: 10002; display: flex; flex-direction: column; background: var(--bg, #f4f7f6); }
.ph-report-view-bar { display: flex; align-items: center; gap: 12px; padding: calc(8px + env(safe-area-inset-top)) 14px 8px; background: var(--brand, #0f2e2d); }
/* by id: the app's looks (Nest, premium) colour every h2 dark, and this one sits on the dark bar */
#report-view #report-view-title { flex: 1; min-width: 0; margin: 0; font-size: 1rem; color: #f4f7f6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ph-report-view-bar button { flex: none; width: auto; min-height: 44px; margin: 0; padding: 8px 16px; }
/* the pane the frame sits in: at a larger size the FRAME is enlarged (the page inside keeps its own width) and slides sideways here;
   up and down the page scrolls inside the frame, as at the ordinary size. A printed sheet (#1251) is laid out at its own
   width (--report-view-width) and the same scale shrinks it to fit the pane at the start */
.ph-report-view-pane { flex: 1; min-height: 0; overflow-x: auto; overflow-y: hidden; background: #fff; -webkit-overflow-scrolling: touch; }
#report-view-frame { display: block; width: var(--report-view-width, 100%); height: calc(100% / var(--report-view-size, 1)); border: 0; background: #fff; transform: scale(var(--report-view-size, 1)); transform-origin: 0 0; }
.ph-report-view-sheet { width: calc(var(--report-view-width, 100%) * var(--report-view-size, 1)); height: 100%; overflow: hidden; }
#report-view-smaller, #report-view-larger { min-width: 44px; padding: 8px 0; font-size: 1.25rem; line-height: 1; }
.ph-report-view-bar button:disabled { opacity: .45; }
/* the ready screen's main button opens the report to READ it: a page, not the share arrow (the Nest look draws its icons this way) */
html[data-phone-nest][data-app-design="flow"][data-nest-after="ready"] body #view #view-link[data-reads]::before { -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 3h7l4 4v14H7z'/%3E%3Cpath d='M14 3v4h4M10 12h5M10 16h5'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 3h7l4 4v14H7z'/%3E%3Cpath d='M14 3v4h4M10 12h5M10 16h5'/%3E%3C/svg%3E") center / contain no-repeat; }
.ph-report-view-actions { display: flex; flex-wrap: wrap; gap: 8px; padding: 8px 14px max(8px, env(safe-area-inset-bottom)); background: var(--bg, #f4f7f6); border-top: 1px solid rgba(0, 0, 0, .12); }
.ph-report-view-actions button { flex: 1 1 140px; width: auto; min-height: 44px; margin: 0; }
html[data-report-view="on"] body { overflow: hidden; }
