/* Preview page scenes. Colours from mock.css only; the PDF pages are paper, whatever the scheme. */

/* a passing note, as the app shows it: words only */
.m-win .pv-toast { padding: 7px 16px; bottom: 36px; }

/* crop: the shape button is a plain button until its list is open */
.m-win .m-lt .dd.pv-shape { background: var(--btn); }
.m-win .m-lt .dd.pv-shape.on { background: var(--lit); color: var(--teal); }
/* the cropped copy, drawn from the same picture */
.m-win .pv-cutbox { width: 100%; }
.m-win .pv-cut { display: block; width: 100%; background-repeat: no-repeat; box-shadow: 0 2px 10px rgb(0 0 0 / .3); }

/* editor: the save button is the main one while there is something to save */
.m-win .m-ph .b.pv-go { background: var(--teal-btn); color: var(--on-teal); }
.m-win .pv-edit .m-ph { gap: 10px; }
.m-win .pv-edit .m-ph .b { padding: 2px 10px; font-size: 13px; }
.m-win .pv-edit .m-code { font-size: 13px; line-height: 20px; padding: 6px 0; }
.m-win .pv-edit .m-code .l { grid-template-columns: 34px 1fr; }
.m-win .pv-edit .m-code .caret { height: 16px; }
.m-win .pv-num { color: var(--num); }

/* tables: headings to the left, words to the left, numbers to the right, rows banded */
.m-win .pv-table .m-csv { background: var(--pane); }
.m-win .pv-table .m-csv th { text-align: left; font-weight: 600; background: var(--chrome); height: 28px; padding: 0 12px; border-right: 1px solid var(--line-soft); }
.m-win .pv-table .m-csv th:first-child { background: var(--chrome); }
.m-win .pv-table .m-csv td { height: 22px; line-height: 22px; border-right: 1px solid var(--line-soft); }
.m-win .pv-table .m-csv td:first-child { background: transparent; color: var(--faint); border-right: 1px solid var(--line-soft); }
.m-win .pv-table .m-csv th:nth-child(2), .m-win .pv-table .m-csv td:nth-child(2) { text-align: right; }
.m-win .pv-table .m-csv td.l, .m-win .pv-table .m-csv th:nth-child(n) { text-align: left; }
.m-win .pv-table .m-csv tr:nth-child(odd) td { background: var(--pane-off); }
.m-win .pv-table .m-csv tr:nth-child(odd) td:first-child { background: var(--pane-off); }
.m-win .pv-table { grid-template-rows: 36px minmax(0, 1fr); }
.m-win .pv-table.pv-book { grid-template-rows: 36px minmax(0, 1fr) 32px; }
.m-win .pv-table.pv-book.pv-noted { grid-template-rows: 36px 30px minmax(0, 1fr) 32px; }
.m-win .pv-note { display: flex; align-items: center; padding: 0 14px; background: var(--orange-row); color: var(--text); font-size: 13.5px; white-space: nowrap; overflow: hidden; }
.m-win .pv-sheets { background: var(--pane); }
.m-win .pv-sheets span { border-radius: 0; }
.m-win .pv-sheets span.on { background: none; box-shadow: none; color: var(--text); }

/* PDF: the page fills the width, read from its top */
.m-win .pv-pdf .m-pdf { justify-content: stretch; padding: 14px 18px; }
.m-win .pv-page { background: #fbfaf7; color: #222; aspect-ratio: 210 / 297; border-radius: 2px; box-shadow: 0 3px 14px rgb(0 0 0 / .3); padding: 8% 9%; font: 12px/1.45 Georgia, serif; }
.m-win .pv-page.scan { background: #f1efe9; }
.m-win .pv-page .ln { display: block; height: 6px; background: #d4d1ca; margin: 8px 0; border-radius: 2px; }
.m-win .pv-page.scan .ln { background: #c9c6be; }
.m-win .pv-row { display: flex; justify-content: space-between; align-items: start; margin-bottom: 14px; }
.m-win .pv-h { font: 700 26px/1.1 Georgia, serif; display: block; }
.m-win .pv-h.sm { font-size: 19px; margin-bottom: 4px; }
.m-win .pv-r { text-align: right; color: #555; }
.m-win .pv-small { color: #555; margin: 0 0 10px; }
.m-win .pv-small.r { text-align: right; }
.m-win .pv-gap { height: 14px; }
.m-win .pv-tbl { margin: 22px 0; border-top: 1.5px solid #333; }
.m-win .pv-tbl div { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px solid #ddd; }
.m-win .pv-tbl .tot { font-weight: 700; border-bottom: 1.5px solid #333; }
.m-win .pv-plan { display: block; width: 100%; height: auto; margin-top: 18px; }
.m-win .pv-crop .m-img .pic { width: 100%; }
.m-win .pv-crop .m-img img { width: 100%; height: auto; }
.m-win .m-ph .b.pv-wait { opacity: .6; }
