/* Live integrations only. The approved visual rules live in invoice-design.css. */
#routepilot-invoice-redesign { line-height: normal; -webkit-text-size-adjust: 100%; }
#routepilot-invoice-redesign button { cursor: pointer; }
#routepilot-invoice-redesign [hidden] { display: none !important; }
#routepilot-invoice-redesign .rp-side-row { border: 0; background: transparent; text-align: left; font-family: inherit; }
#routepilot-invoice-redesign .rp-back-mark { padding: 0; flex: 0 0 auto; cursor: pointer; }
#routepilot-invoice-redesign .rp-phone-actions .rp-delete { border-color: light-dark(#edc7cb, #71333d); background: light-dark(#fff7f7, #351923); color: light-dark(#b4232f, #ff9ca5); }
#routepilot-invoice-redesign .rp-phone-actions button:not(.rp-delete) { border-color: light-dark(#d7e0eb, #314159); background: light-dark(#fff, #17253a); color: light-dark(#2b405f, #ccd9ea); }
#routepilot-invoice-redesign .rp-lower-block button { border: 0; padding: 0; background: transparent; color: inherit; text-align: left; font-size: 10.5px; font-weight: 800; }
#routepilot-invoice-redesign .rp-paper-title h2 { font-weight: 700; }
#routepilot-invoice-redesign .rp-operations { padding: 0 24px 24px; display: grid; gap: 10px; }
#routepilot-invoice-redesign .rp-operations .collection-entry-card > div:first-child { display: grid; grid-template-columns: minmax(0,1fr) auto; }
#routepilot-invoice-redesign .rp-operations .collection-entry-card > div:first-child small { grid-column: 1 / -1; font-size: 12px; line-height: 1.5; }
#routepilot-invoice-redesign .rp-operations .collection-entry-card > .collection-field { display: grid; }
#routepilot-invoice-redesign .payment-radio-group { grid-template-columns: repeat(4,minmax(0,1fr)); }
#routepilot-invoice-redesign .payment-radio-group label { position: relative; }
#routepilot-invoice-redesign .payment-radio-group input { width: 1px; height: 1px; left: 0; top: 0; }
#routepilot-invoice-redesign .payment-radio-group label:focus-within { outline: 2px solid var(--blue); outline-offset: 2px; }
#routepilot-invoice-redesign .rp-operations:empty { display: none; }
#routepilot-invoice-redesign .invoice-correction-card { scroll-margin-top: 80px; }
#routepilot-invoice-redesign .invoice-correction-error { color: light-dark(#b4232f,#ff9ca5); font-size: 14px; font-weight: 650; }
#routepilot-invoice-redesign #rp-edit:has(.invoice-admin-tools:empty) { display: none; }
#routepilot-invoice-redesign .rp-operations { --ink: light-dark(#14213d,#edf4ff); --muted: light-dark(#66758d,#9aacc2); --blue: light-dark(#245aa7,#a8c8ff); }
#routepilot-invoice-redesign .rp-operations :is(.invoice-report-card,.employee-collection-entry,.invoice-small-details,.invoice-correction-card,.collection-entry-card) { border-color: light-dark(#dfe6ef,#2a3a50); background: light-dark(#fff,#142134); color: inherit; border-radius: 12px; }
#routepilot-invoice-redesign .rp-operations :is(h2,h3) { font-size: 13px; font-weight: 700; color: inherit; }
#routepilot-invoice-redesign .rp-operations :is(.invoice-report-head > div > span,.meta span,.collection-entry-card span,.atm-reconciliation-card p,.atm-reconciliation-head small) { color: light-dark(#66758d,#9aacc2); }
#routepilot-invoice-redesign .rp-operations :is(.invoice-small-details summary,.employee-collection-entry summary) { color: light-dark(#245aa7,#a8c8ff); font-size: 12px; font-weight: 850; }
#routepilot-invoice-redesign .rp-operations :is(.collection-entry-card label,.collection-field,.atm-reconciliation-grid > div,.atm-match-row > div) { background: light-dark(#f6f8fb,#19273b); }
#routepilot-invoice-redesign .rp-operations :is(.collection-entry-card input,.collection-entry-card select,.meta strong,.atm-reconciliation-grid strong,.atm-match-row strong,.atm-reconciliation-head strong) { color: inherit; }
#routepilot-invoice-redesign .rp-operations :is(.collection-entry-card > div,.ach-note) { background: light-dark(#eaf8ef,#123426); }
#routepilot-invoice-redesign .rp-operations .atm-reconciliation-card { border-color: light-dark(#dfe6ef,#2a3a50); border-radius: 12px; background: light-dark(#fff,#142134); }
#routepilot-invoice-redesign .rp-operations .atm-reconciliation-card.flagged { border-color: light-dark(#f3d7ae,#795c33); background: light-dark(#fffaf3,#2b241b); }
#routepilot-invoice-redesign .rp-invoice-sheet { container-type: inline-size; }
@container (max-width: 650px) { #routepilot-invoice-redesign .rp-equation-grid { grid-template-columns: 1fr; } }
#routepilot-invoice-redesign .rp-operational-panel { border: 1px solid light-dark(#dfe6ef, #2a3a50); border-radius: 12px; padding: 12px; background: light-dark(#fff, #142134); }
#routepilot-invoice-redesign .rp-operational-panel h3 { margin: 0 0 10px; font-size: 13px; }
#routepilot-invoice-redesign .rp-operational-panel p { font-size: 11px; color: light-dark(#66758d, #9aacc2); line-height: 1.5; }
#routepilot-invoice-redesign .rp-info-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
#routepilot-invoice-redesign .rp-info-grid span { display: block; font-size: 9px; color: light-dark(#76849a, #8da0b8); }
#routepilot-invoice-redesign .rp-info-grid strong { display: block; margin-top: 3px; font-size: 12px; }
#routepilot-invoice-redesign .rp-report-link { display: block; margin-top: 8px; border: 0; background: transparent; color: light-dark(#2858a5, #9bc1ff); text-align: left; font-size: 12px; }
#routepilot-invoice-redesign .rp-phone-menu { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 6px; padding: 8px 10px; background: light-dark(#fff,#142134); }
#routepilot-invoice-redesign[data-live="true"][data-mode="mobile"] .rp-topbar { display: none; }
#routepilot-invoice-redesign[data-live="true"] .rp-mobile-view { padding: 0; min-height: 0; }
#routepilot-invoice-redesign[data-live="true"] .rp-phone { width: 100%; border: 0; border-radius: 0; box-shadow: none; }
#routepilot-invoice-redesign[data-live="true"] .rp-phone-nav { position: sticky; top: 0; z-index: 5; }
#routepilot-invoice-redesign[data-live="true"][data-mode="mobile"] .rp-shell { min-height: 100vh; border: 0; border-radius: 0; box-shadow: none; }
#routepilot-invoice-redesign .rp-phone-scroll > .rp-operations { padding: 0; }
#routepilot-invoice-redesign .rp-phone-scroll > .rp-lower-grid { padding: 0; grid-template-columns: 1fr; }
/* Larger, compact screen typography. PDF styles are intentionally unchanged. */
#routepilot-invoice-redesign .rp-phone-nav strong { font-size: 15px; }
#routepilot-invoice-redesign .rp-phone-nav small { font-size: 16px; font-weight: 750; color: light-dark(#172741,#edf3fc); }
#routepilot-invoice-redesign .rp-back-copy span { font-size: 12px; }
#routepilot-invoice-redesign .rp-back-copy strong { font-size: 19px; }
#routepilot-invoice-redesign .rp-location-name { font-size: 24px; }
#routepilot-invoice-redesign .rp-phone-summary header span { font-size: 11px; }
#routepilot-invoice-redesign .rp-phone-summary header strong { font-size: 16px; }
#routepilot-invoice-redesign .rp-phone-summary .rp-phone-due strong { font-size: 23px; }
#routepilot-invoice-redesign .rp-phone-meta { margin-top: 10px; display: grid; gap: 6px; }
#routepilot-invoice-redesign .rp-phone-meta p { display: flex; justify-content: space-between; gap: 8px; margin: 0; white-space: nowrap; }
#routepilot-invoice-redesign .rp-phone-meta span { font-size: 12px; text-transform: none; font-weight: 500; }
#routepilot-invoice-redesign .rp-phone-meta b { font-weight: 700; }
#routepilot-invoice-redesign .rp-phone-actions button { font-size: 12px; min-height: 40px; padding: 8px 3px; }
#routepilot-invoice-redesign .rp-phone-actions.rp-employee-actions { grid-template-columns: repeat(2,minmax(0,1fr)); }
#routepilot-invoice-redesign .rp-phone-ledger > div { grid-template-columns: minmax(0,1fr) minmax(112px,.7fr); gap: 8px; padding: 7px 0; font-size: 13px; }
#routepilot-invoice-redesign .rp-phone-ledger b { font-size: 14px; }
#routepilot-invoice-redesign .rp-phone-ledger .rp-phone-total { font-size: 15px; padding: 9px 8px; }
#routepilot-invoice-redesign .rp-phone-ledger .rp-phone-total b { font-size: 16px; }
#routepilot-invoice-redesign .rp-ledger > div { font-size: 13px; gap: 8px; }
#routepilot-invoice-redesign .rp-ledger b { font-size: 14px; }
#routepilot-invoice-redesign .rp-ledger { width: 100%; max-width: 390px; justify-self: end; }
#routepilot-invoice-redesign .rp-ledger .rp-ledger-total, #routepilot-invoice-redesign .rp-ledger-total b { font-size: 17px; }
#routepilot-invoice-redesign .rp-phone-section-title > strong { font-size: 15px; }
#routepilot-invoice-redesign .rp-phone-section-title > div > span, #routepilot-invoice-redesign .rp-expand-all { font-size: 11px; }
#routepilot-invoice-redesign .rp-machine-item header, #routepilot-invoice-redesign .rp-machine-list > .rp-reading-total { grid-template-columns: 112px minmax(0,1fr); }
#routepilot-invoice-redesign .rp-machine-summary b { font-size: 14px; }
#routepilot-invoice-redesign .rp-reading-total-values b { font-size: 15px; }
#routepilot-invoice-redesign .rp-phone-machine header, #routepilot-invoice-redesign .rp-phone-scroll > .rp-reading-total { grid-template-columns: 86px minmax(0,1fr); gap: 5px; padding: 8px; }
#routepilot-invoice-redesign .rp-phone-machine header strong { font-size: 10px; letter-spacing: -.025em; }
#routepilot-invoice-redesign .rp-phone-machine .rp-terminal-key { gap: 2px; }
#routepilot-invoice-redesign .rp-phone-machine .rp-source-verified { width: 12px; height: 12px; font-size: 8px; flex: 0 0 12px; }
#routepilot-invoice-redesign .rp-phone-machine .rp-machine-summary b { font-size: 12px; }
#routepilot-invoice-redesign .rp-phone-scroll > .rp-reading-total .rp-reading-total-values b { font-size: 13px; }
#routepilot-invoice-redesign .rp-phone-machine .rp-machine-summary small, #routepilot-invoice-redesign .rp-phone-scroll > .rp-reading-total small { font-size: 10px; }
/* Expanded phone readings: one shared set of In / Out / Net columns. */
#routepilot-invoice-redesign .rp-phone-scroll > .rp-reading-entry { min-width: 0; }
#routepilot-invoice-redesign .rp-phone-machine:has(.rp-mobile-reading-grid:not([hidden])) header { display: block; min-height: 0; padding: 9px 10px; }
#routepilot-invoice-redesign .rp-phone-machine:has(.rp-mobile-reading-grid:not([hidden])) header strong { font-size: 13px; letter-spacing: 0; }
#routepilot-invoice-redesign .rp-phone-machine:has(.rp-mobile-reading-grid:not([hidden])) .rp-machine-summary { display: none; }
#routepilot-invoice-redesign .rp-mobile-reading-scroll { min-width: 0; max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; }
#routepilot-invoice-redesign .rp-mobile-reading-table { width: 100%; table-layout: fixed; border-collapse: separate; border-spacing: 0; font-variant-numeric: tabular-nums; }
#routepilot-invoice-redesign .rp-mobile-reading-table .rp-reading-row-label { width: 62px; }
#routepilot-invoice-redesign .rp-mobile-reading-table :is(th,td) { padding: 8px 6px; text-align: right; white-space: nowrap; border: 0; }
#routepilot-invoice-redesign .rp-mobile-reading-table thead th { padding-top: 6px; padding-bottom: 6px; font-size: 12px; font-weight: 750; color: light-dark(#5b6d86,#a6b8d0); background: light-dark(#f6f8fb,#19273b); }
#routepilot-invoice-redesign .rp-mobile-reading-table tr > th:first-child { position: sticky; left: 0; z-index: 1; text-align: left; background: light-dark(#fff,#142134); }
#routepilot-invoice-redesign .rp-mobile-reading-table thead tr > th:first-child { background: light-dark(#f6f8fb,#19273b); }
#routepilot-invoice-redesign .rp-mobile-reading-table tbody th { font-size: 12px; font-weight: 650; color: light-dark(#5b6d86,#a6b8d0); }
#routepilot-invoice-redesign .rp-mobile-reading-table td b { display: block; font-size: 15px; font-weight: 650; color: light-dark(#223651,#d9e6f5); }
#routepilot-invoice-redesign .rp-mobile-reading-table .rp-mobile-final > :is(th,td) { border-top: 1px solid light-dark(#d8e4f5,#344c6a); background: light-dark(#edf4ff,#1d304d); }
#routepilot-invoice-redesign .rp-mobile-reading-table .rp-mobile-final > th:first-child { background: light-dark(#edf4ff,#1d304d); }
#routepilot-invoice-redesign .rp-mobile-reading-table .rp-mobile-final th { font-size: 12px; font-weight: 800; color: light-dark(#204c8d,#bdd8ff); }
#routepilot-invoice-redesign .rp-mobile-reading-table .rp-mobile-final b { font-size: 16px; font-weight: 800; color: light-dark(#204c8d,#bdd8ff); }
#routepilot-invoice-redesign .rp-mobile-reading-table .rp-mobile-final td:last-child b:not(.rp-negative) { color: light-dark(#126a3e,#83dfa8); }
#routepilot-invoice-redesign .rp-reading-scroll-hint { margin: 0; padding: 5px 8px; text-align: right; font-size: 10px; color: light-dark(#5b6d86,#a6b8d0); }
#routepilot-invoice-redesign .rp-lower-block > span, #routepilot-invoice-redesign .rp-lower-block p, #routepilot-invoice-redesign .rp-lower-block button { font-size: 12px; }
#routepilot-invoice-redesign .rp-lower-block > strong { font-size: 14px; }
#routepilot-invoice-redesign .rp-invoice-menu { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px; background: light-dark(#fff,#142134); border: 1px solid light-dark(#dfe6ef,#2a3a50); border-radius: 10px; }
#routepilot-invoice-redesign .rp-invoice-menu .rp-action { font-size: 12px; }
#routepilot-invoice-redesign .rp-actions { position: relative; }
#routepilot-invoice-redesign .rp-actions > .rp-invoice-menu { position: absolute; top: calc(100% + 8px); right: 0; width: 280px; z-index: 20; box-shadow: 0 8px 24px #0002; }
#routepilot-invoice-redesign .rp-topbar { grid-template-columns: minmax(0,1fr) auto; }
#routepilot-invoice-redesign .rp-shell { overflow: clip; }
#routepilot-invoice-redesign .rp-topbar { z-index: 20; }
#routepilot-invoice-redesign .rp-brand-logo { width: 180px; max-width: 100%; height: 60px; object-fit: contain; border-radius: 6px; background: #fff; }
#routepilot-invoice-redesign .rp-brand { flex-wrap: wrap; }
#routepilot-invoice-redesign .rp-side { display: none; }
#routepilot-invoice-redesign[data-mode="app"] .rp-shell { display: flex; flex-direction: column; height: calc(100dvh - var(--rp-workspace-top, 0px) - 16px); min-height: 0; }
#routepilot-invoice-redesign[data-mode="app"] .rp-topbar { flex-shrink: 0; }
#routepilot-invoice-redesign .rp-app-view { display: grid; grid-template-columns: minmax(0,1.65fr) minmax(320px,1fr); align-items: stretch; padding: 18px; gap: 18px; flex: 1; min-height: 0; }
#routepilot-invoice-redesign[data-source-hidden="true"] .rp-app-view { grid-template-columns: minmax(0,1fr); }
#routepilot-invoice-redesign .rp-main { padding: 0; min-height: 0; overflow: auto; overscroll-behavior: contain; border-radius: 16px; }
#routepilot-invoice-redesign .rp-invoice-sheet { max-width: none; }
#routepilot-invoice-redesign .rp-accounting { grid-template-columns: minmax(160px,.8fr) minmax(0,1.2fr); gap: 18px; }
#routepilot-invoice-redesign .rp-machine-overview { align-self: start; min-width: 0; padding-right: 14px; border-right: 1px solid light-dark(#dfe6ef,#2a3a50); }
#routepilot-invoice-redesign .rp-machine-overview h3 { margin: 0 0 12px; font-size: 14px; }
#routepilot-invoice-redesign .rp-machine-overview h3 small { display: block; font-size: 11px; font-weight: 500; margin-top: 4px; color: light-dark(#607189,#a6b8d0); }
#routepilot-invoice-redesign .rp-machine-overview > div { margin-top: 12px; }
#routepilot-invoice-redesign .rp-machine-overview span { display: block; font-size: 11px; color: light-dark(#607189,#a6b8d0); }
#routepilot-invoice-redesign .rp-machine-overview strong { display: block; margin-top: 3px; font-size: 20px; font-variant-numeric: tabular-nums; white-space: nowrap; }
#routepilot-invoice-redesign .rp-overview-net { color: light-dark(#187244,#83dfa8); }
#routepilot-invoice-redesign .rp-reading-review { align-self: start; }
#routepilot-invoice-redesign .rp-reading-review h3 { margin: 0 0 10px; font-size: 14px; }
#routepilot-invoice-redesign .rp-review-counts { display: flex; gap: 20px; margin-bottom: 14px; }
#routepilot-invoice-redesign .rp-review-counts strong { display: block; font-size: 24px; color: light-dark(#187244,#83dfa8); }
#routepilot-invoice-redesign .rp-review-counts span { display: block; font-size: 12px; margin-top: 3px; color: light-dark(#607189,#a6b8d0); }
#routepilot-invoice-redesign .rp-review-attention strong { color: light-dark(#995a08,#ffc36b); }
#routepilot-invoice-redesign .rp-reading-review > small { display: block; margin-top: 8px; font-size: 11px; color: light-dark(#607189,#a6b8d0); }
#routepilot-invoice-redesign .rp-terminal-button { border: 0; background: none; padding: 0; text-align: left; font-family: inherit; cursor: pointer; }
#routepilot-invoice-redesign .rp-terminal-button:hover strong { text-decoration: underline; }
#routepilot-invoice-redesign[data-review-active="true"] [data-rp-needs-review="true"], #routepilot-invoice-redesign .rp-selected-reading { outline: 2px solid light-dark(#e6ab46,#c89030); outline-offset: -2px; }
#routepilot-invoice-redesign .rp-source-panel { position: relative; min-width: 0; min-height: 0; z-index: 6; }
#routepilot-invoice-redesign .rp-source-card { display: flex; flex-direction: column; height: 100%; min-height: 0; padding: 8px; border: 1px solid light-dark(#dfe6ef,#2a3a50); border-radius: 12px; background: light-dark(#fff,#142134); box-shadow: 0 6px 24px #14213d08; }
#routepilot-invoice-redesign .rp-source-card > :not(.rp-source-viewport) { flex-shrink: 0; }
#routepilot-invoice-redesign .rp-source-card > header { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
#routepilot-invoice-redesign .rp-source-card > header > div { display: flex; align-items: center; gap: 6px; }
#routepilot-invoice-redesign .rp-source-readings { border: 0; padding: 4px; font-size: 11px; font-weight: 700; color: light-dark(#245aa7,#a8c8ff); background: none; }
#routepilot-invoice-redesign .rp-source-card h3 { margin: 0; font-size: 16px; }
#routepilot-invoice-redesign .rp-source-card small { display: block; margin-top: 4px; font-size: 12px; color: light-dark(#607189,#a6b8d0); }
#routepilot-invoice-redesign .rp-source-close { border: 0; background: none; color: inherit; width: 28px; height: 28px; font-size: 25px; }
#routepilot-invoice-redesign .rp-source-select-label { margin-top: 5px; }
#routepilot-invoice-redesign .rp-source-card select { width: 100%; min-width: 0; border: 1px solid light-dark(#d0dce9,#3a4d67); border-radius: 6px; padding: 5px 7px; background: light-dark(#f8fafc,#19273b); color: light-dark(#192842,#edf3fc); font-family: inherit; font-size: 12px; }
#routepilot-invoice-redesign .rp-source-context { min-height: 0; margin: 7px 0 0; font-size: 11px; color: light-dark(#995a08,#ffc36b); }
#routepilot-invoice-redesign .rp-source-context:empty { display: none; }
#routepilot-invoice-redesign .rp-source-tools { display: flex; flex-wrap: wrap; gap: 4px; margin: 6px 0; }
#routepilot-invoice-redesign .rp-source-tools .rp-action { font-size: 11px; min-height: 28px; padding: 4px 6px; }
#routepilot-invoice-redesign .rp-source-tools [aria-pressed="true"] { background: light-dark(#edf4ff,#213f66); border-color: light-dark(#9cbce8,#5582ba); }
#routepilot-invoice-redesign .rp-source-tools button:disabled { opacity: .4; cursor: default; }
#routepilot-invoice-redesign .rp-source-pages { display: flex; justify-content: space-between; align-items: center; gap: 6px; margin-bottom: 8px; font-size: 11px; }
#routepilot-invoice-redesign .rp-source-pages button { padding: 5px 7px; font-size: 10px; }
#routepilot-invoice-redesign .rp-source-viewport { position: relative; flex: 1; min-height: 80px; overflow: hidden; overscroll-behavior: contain; background: light-dark(#e9edf3,#0d1625); border-radius: 9px; border: 1px solid light-dark(#dce3ed,#29394f); }
#routepilot-invoice-redesign .rp-source-viewport.rp-image-ready { touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none; }
#routepilot-invoice-redesign .rp-source-viewport.rp-is-panning { cursor: grabbing; }
#routepilot-invoice-redesign .rp-source-viewport .rp-report-image { position: absolute; top: 0; left: 0; display: block; max-width: none; transform-origin: 0 0; pointer-events: none; -webkit-user-drag: none; }
#routepilot-invoice-redesign .rp-source-viewport iframe { display: block; width: 100%; height: 100%; border: 0; background: #fff; }
#routepilot-invoice-redesign .rp-source-map { position: absolute; right: 10px; bottom: 10px; width: 70px; max-height: 110px; padding: 0; overflow: hidden; border: 2px solid #fff; border-radius: 5px; box-shadow: 0 2px 12px #0006; background: #fff; cursor: crosshair; touch-action: none; }
#routepilot-invoice-redesign .rp-source-map img { display: block; width: 100%; max-height: 106px; pointer-events: none; }
#routepilot-invoice-redesign .rp-source-map span { position: absolute; border: 2px solid #246fe5; background: #246fe530; pointer-events: none; }
#routepilot-invoice-redesign .rp-source-gesture-hint { margin: 4px 0 0; text-align: center; font-size: 10px; color: light-dark(#607189,#a6b8d0); }
#routepilot-invoice-redesign .rp-source-card .rp-reading-review { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 4px 8px; width: 100%; padding-top: 6px; margin-top: 5px; border-top: 1px solid light-dark(#dfe6ef,#2a3a50); }
#routepilot-invoice-redesign .rp-source-card .rp-reading-review h3 { font-size: 14px; margin: 0; align-self: center; }
#routepilot-invoice-redesign .rp-source-card .rp-review-counts { grid-row: 2; margin: 0; gap: 16px; }
#routepilot-invoice-redesign .rp-source-card .rp-review-counts strong { font-size: 18px; }
#routepilot-invoice-redesign .rp-source-card .rp-review-counts span { font-size: 11px; }
#routepilot-invoice-redesign .rp-source-card .rp-reading-review > .rp-action { grid-column: 2; grid-row: 2; align-self: center; font-size: 11px; padding: 7px 9px; }
#routepilot-invoice-redesign .rp-source-card .rp-reading-review > small { grid-column: 2; grid-row: 1; text-align: right; margin: 0; font-size: 10px; }
#routepilot-invoice-redesign .rp-source-message { padding: 24px 18px; font-size: 13px; text-align: center; color: light-dark(#607189,#a6b8d0); }
#routepilot-invoice-redesign .rp-source-footer { display: flex; justify-content: space-between; padding-top: 4px; }
#routepilot-invoice-redesign .rp-source-footer button { border: 0; padding: 4px 0; background: none; color: light-dark(#245aa7,#a8c8ff); font-size: 12px; font-weight: 700; }
#routepilot-invoice-redesign .rp-source-empty { padding: 48px 8px; text-align: center; font-size: 14px; }
#routepilot-invoice-redesign .rp-source-empty p { font-size: 12px; line-height: 1.5; color: light-dark(#607189,#a6b8d0); }
#routepilot-invoice-redesign .rp-mobile-report-link { display: flex; justify-content: space-between; gap: 5px; }
#routepilot-invoice-redesign .rp-mobile-report-link .rp-action { font-size: 11px; padding: 7px 8px; }
#routepilot-invoice-redesign .rp-source-panel.rp-source-fullscreen, #routepilot-invoice-redesign[data-mode="mobile"] .rp-source-panel { position: fixed; inset: 12px; z-index: 10000; }
#routepilot-invoice-redesign .rp-source-panel.rp-source-fullscreen .rp-source-card, #routepilot-invoice-redesign[data-mode="mobile"] .rp-source-card { height: 100%; min-height: 0; max-height: none; box-shadow: 0 0 0 100vmax #0007; box-sizing: border-box; }
@container (max-width: 650px) {
  #routepilot-invoice-redesign .rp-parties { grid-template-columns: 1fr; gap: 14px; }
  #routepilot-invoice-redesign .rp-accounting { grid-template-columns: 1fr; }
  #routepilot-invoice-redesign .rp-machine-overview { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; padding: 0 0 14px; border-right: 0; border-bottom: 1px solid light-dark(#dfe6ef,#2a3a50); }
  #routepilot-invoice-redesign .rp-machine-overview h3 { grid-column: 1 / -1; display: flex; justify-content: space-between; margin: 0; }
  #routepilot-invoice-redesign .rp-machine-overview > div { margin: 0; }
  #routepilot-invoice-redesign .rp-ledger { max-width: none; }
  #routepilot-invoice-redesign .rp-lower-grid { grid-template-columns: 1fr; }
}
#routepilot-invoice-redesign .rp-actions .rp-action:not(.rp-primary) { display: inline-flex; }
@media screen and (max-width: 350px) {
  #routepilot-invoice-redesign .rp-phone-meta span { font-size: 10.5px; }
  #routepilot-invoice-redesign .rp-phone-actions button { font-size: 11px; }
  #routepilot-invoice-redesign .rp-phone-machine header, #routepilot-invoice-redesign .rp-phone-scroll > .rp-reading-total { grid-template-columns: 76px minmax(0,1fr); }
  #routepilot-invoice-redesign .rp-phone-machine header strong { font-size: 9px; }
  #routepilot-invoice-redesign .rp-phone-machine .rp-source-verified { width: 10px; height: 10px; flex-basis: 10px; }
}
#routepilot-invoice-redesign .rp-negative { color: light-dark(#b4232f,#ff9ca5) !important; }
#routepilot-invoice-redesign .rp-money-fit { display: inline-block; max-width: 100%; font-variant-numeric: tabular-nums; white-space: nowrap; }
#routepilot-invoice-redesign .rp-document-view { overflow: auto; }
#routepilot-invoice-redesign .rp-paper-table tr { break-inside: avoid; }
#routepilot-invoice-redesign .rp-paper-table thead { display: table-header-group; }
#routepilot-invoice-redesign .rp-paper-reading-total { break-inside: avoid; }
#routepilot-invoice-redesign .rp-paper-summary { break-inside: avoid; }
#routepilot-invoice-redesign .rp-document-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; position: sticky; top: 0; z-index: 10; background: light-dark(#fff,#142134); border-bottom: 1px solid light-dark(#dfe6ef,#2a3a50); }
#routepilot-invoice-redesign .rp-document-toolbar > div { display: flex; gap: 7px; }
body.rp-invoice-page .screen { padding: 0 0 76px; max-width: none; }
body.rp-invoice-page .screen > .topbar, body.rp-invoice-page .screen > .ios-status { display: none; }
body.rp-invoice-page .tab-content.active { margin: 0; padding: 0; max-width: none; }
@media screen and (min-width: 761px) { body.rp-invoice-page .screen { padding: 18px 20px 94px; } }
@media screen and (min-width: 901px) {
  body.rp-invoice-page { overflow: hidden; }
  body.rp-invoice-page .screen { padding-bottom: 16px !important; height: 100dvh; min-height: 0; overflow: clip; }
}
@media screen and (max-height: 650px) {
  #routepilot-invoice-redesign .rp-source-card { padding: 10px; }
  #routepilot-invoice-redesign .rp-source-card > header small, #routepilot-invoice-redesign .rp-source-gesture-hint { display: none; }
  #routepilot-invoice-redesign .rp-source-select-label { margin-top: 7px; }
  #routepilot-invoice-redesign .rp-source-card .rp-reading-review { padding-top: 7px; margin-top: 7px; gap: 4px; }
  #routepilot-invoice-redesign .rp-source-footer { padding-top: 4px; }
}
@media screen and (max-width: 760px) {
  #routepilot-invoice-redesign .rp-phone-scroll .rp-lower-block { min-height: 0; }
  #routepilot-invoice-redesign .rp-operations { padding: 0; }
}
@media print {
  @page { size: letter; margin: 12mm; }
  html, body { margin: 0; background: #fff; }
  #routepilot-invoice-redesign { color-scheme: light; }
  #routepilot-invoice-redesign .rp-topbar, #routepilot-invoice-redesign .rp-document-toolbar, #routepilot-invoice-redesign .rp-app-view, #routepilot-invoice-redesign .rp-mobile-view { display: none !important; }
  #routepilot-invoice-redesign .rp-shell { min-height: 0; border: 0; border-radius: 0; box-shadow: none; overflow: visible; }
  #routepilot-invoice-redesign .rp-document-view { display: block !important; padding: 0; min-height: 0; background: #fff; overflow: visible; }
  #routepilot-invoice-redesign .rp-paper { width: 100%; padding: 0; margin: 0; box-shadow: none; }
  #routepilot-invoice-redesign * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
