:root{color:#0f172a;font-synthesis:none;background:#e2e8f0;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}*{box-sizing:border-box}body{background:#f8fafc;min-width:320px;min-height:100vh;margin:0}button,input{font:inherit}button{cursor:pointer}button:disabled{cursor:default;opacity:.45}.app-shell{width:min(100%,480px);min-height:100vh;padding:max(18px, env(safe-area-inset-top)) 16px calc(88px + env(safe-area-inset-bottom));margin:0 auto}.topbar{justify-content:space-between;align-items:center;gap:16px;display:flex}.eyebrow{letter-spacing:.16em;color:#64748b;margin:0 0 3px;font-size:11px;font-weight:800}h1,h2{margin:0;line-height:1.15}h1{font-size:22px}h2{font-size:21px}.network{flex:none;font-size:12px;font-weight:800}.network.online{color:#166534}.network.offline{color:#b45309}.device-note{color:#64748b;margin:10px 0 18px;font-size:13px}.reading-card,.screen-card{background:#fff;border:1px solid #e2e8f0;border-radius:18px;gap:16px;padding:18px;display:grid;box-shadow:0 8px 30px #0f172a12}label{color:#334155;gap:7px;font-size:13px;font-weight:750;display:grid}input{color:#0f172a;background:#fff;border:1px solid #cbd5e1;border-radius:11px;outline:none;width:100%;min-height:48px;padding:11px 13px}input:focus{border-color:#0f172a;box-shadow:0 0 0 3px #0f172a1a}.reading-grid{grid-template-columns:1fr 1fr;gap:12px;display:grid}.number-input{letter-spacing:-.03em;min-height:64px;font-size:28px;font-weight:800}.calculation{border:1px solid #cbd5e1;border-radius:14px;overflow:hidden}.calculation>div:not(.warning){border-top:1px solid #e2e8f0;justify-content:space-between;gap:12px;padding:11px 13px;font-size:14px;display:flex}.calculation>div:first-child:not(.warning){border-top:0}.calculation .total{color:#fff;background:#0f172a;align-items:center;padding-block:14px}.calculation .total strong{font-size:24px}.warning{color:#9a3412;background:#fff7ed;gap:3px;padding:12px 13px;font-size:13px;display:grid}.capture-button{color:#0f172a;cursor:pointer;background:#f8fafc;border:2px dashed #94a3b8;border-radius:12px;justify-content:center;align-items:center;min-height:52px;font-weight:850;display:flex}.evidence-note{color:#64748b;margin:-8px 2px 0;font-size:12px;line-height:1.45}.visually-hidden{clip:rect(0,0,0,0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.save-message{color:#334155;background:#f1f5f9;border-radius:10px;margin:0;padding:10px 12px;font-size:13px}.save-button,.secondary-button{letter-spacing:.03em;border-radius:13px;min-height:54px;font-weight:900}.save-button{color:#fff;background:#0f172a;border:0}.secondary-button{color:#0f172a;background:#fff;border:1px solid #cbd5e1}.save-button:disabled{opacity:.55;cursor:default}.section-heading{justify-content:space-between;align-items:flex-start;gap:12px;display:flex}.section-heading>strong{text-align:center;background:#e2e8f0;border-radius:999px;min-width:38px;padding:8px}.section-heading span{color:#64748b;margin-top:4px;font-size:12px;display:block}.search-input{background:#f8fafc}.folder-list{gap:10px;display:grid}.folder-row{text-align:left;background:#fff;border:1px solid #e2e8f0;border-radius:14px;grid-template-columns:1fr auto;align-items:center;gap:12px;width:100%;padding:14px;display:grid}.folder-row>div{gap:3px;display:grid}.folder-row span{color:#64748b;font-size:12px}.folder-meta{text-align:right}.folder-meta span{color:#b45309}.record-list{gap:12px;display:grid}.record-row{border:1px solid #e2e8f0;border-radius:14px;grid-template-columns:1fr auto;gap:12px;padding:14px;display:grid}.record-row>div{gap:3px;display:grid}.record-row span{color:#64748b;font-size:12px}.record-amount{text-align:right}.status-flagged{font-weight:800;color:#b45309!important}.status-paid{font-weight:900;color:#166534!important}.status-unpaid{font-weight:900;color:#b45309!important}dl{border-top:1px solid #e2e8f0;grid-column:1/-1;grid-template-columns:repeat(3,1fr);gap:8px;margin:4px 0 0;padding-top:10px;display:grid}dl div{gap:2px;display:grid}dt{color:#64748b;font-size:11px}dd{margin:0;font-weight:800}.record-actions{grid-column:1/-1;grid-template-columns:1fr 1fr;gap:8px!important;display:grid!important}.record-actions button{color:#0f172a;background:#f8fafc;border:1px solid #cbd5e1;border-radius:10px;min-height:42px;font-size:11px;font-weight:850}.back-button{color:#475569;background:0 0;border:0;justify-self:start;min-height:38px;padding:0;font-size:12px;font-weight:850}.empty-state{text-align:center;color:#64748b;background:#f8fafc;border-radius:12px;margin:12px 0;padding:24px 12px}.summary-grid{grid-template-columns:1fr 1fr;gap:10px;display:grid}.summary-grid div{background:#f1f5f9;border-radius:12px;gap:4px;padding:12px;display:grid}.summary-grid span{color:#64748b;font-size:11px}.summary-grid strong{font-size:18px}.print-button{background:#fff;border:1px solid #cbd5e1;border-radius:10px;min-height:42px;padding:0 12px;font-size:12px;font-weight:800}.table-wrap{overflow-x:auto}table{border-collapse:collapse;width:100%;min-width:760px;font-size:12px}th,td{text-align:left;white-space:nowrap;border-bottom:1px solid #e2e8f0;padding:9px 8px}th{color:#475569;background:#f8fafc}.receipt-card{gap:14px}.receipt-header{border-bottom:2px solid #0f172a;gap:3px;padding-bottom:14px;display:grid}.receipt-header span{color:#64748b;font-size:12px}.receipt-info{gap:10px;display:grid}.receipt-info div{grid-template-columns:110px 1fr;gap:12px;font-size:13px;display:grid}.receipt-info span,.receipt-breakdown span,.collection-panel>span{color:#64748b}.receipt-breakdown{border:1px solid #cbd5e1;border-radius:14px;overflow:hidden}.receipt-breakdown>div{border-top:1px solid #e2e8f0;justify-content:space-between;gap:14px;padding:11px 13px;font-size:13px;display:flex}.receipt-breakdown>div:first-child{border-top:0}.receipt-breakdown .receipt-total{color:#fff;background:#0f172a;align-items:center}.receipt-breakdown .receipt-total span{color:#fff}.receipt-breakdown .receipt-total strong{font-size:23px}.collection-panel{background:#f8fafc;border-radius:12px;grid-template-columns:1fr auto;gap:4px 12px;padding:12px;font-size:13px;display:grid}.collection-panel small{color:#64748b;grid-column:1/-1}.receipt-note{color:#64748b;margin:0;font-size:11px;line-height:1.5}.receipt-actions{grid-template-columns:1fr 1fr;gap:8px;display:grid}.receipt-actions button{color:#0f172a;background:#fff;border:1px solid #cbd5e1;border-radius:11px;min-height:46px;font-size:11px;font-weight:900}.receipt-actions button:first-child{color:#fff;background:#0f172a;border-color:#0f172a}.bottom-nav{z-index:10;width:min(100%,480px);padding:8px 12px calc(8px + env(safe-area-inset-bottom));-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);background:#f8fafcf2;border-top:1px solid #e2e8f0;grid-template-columns:repeat(3,1fr);display:grid;position:fixed;bottom:0;left:50%;transform:translate(-50%)}.bottom-nav button{color:#64748b;background:0 0;border:0;border-radius:10px;min-height:48px;font-size:13px;font-weight:750}.bottom-nav button.active{color:#0f172a;background:#e2e8f0}@media (width<=360px){.reading-grid,.receipt-actions,.folder-row{grid-template-columns:1fr}.folder-meta{text-align:left}}@media print{body{background:#fff}.app-shell{width:100%;max-width:none;padding:0}.no-print{display:none!important}.screen-card{box-shadow:none;border:0;padding:0}.receipt-card{width:100%;max-width:165mm;margin:0 auto}.receipt-note{margin-top:8px}table{min-width:0;font-size:9px}@page{size:A4 landscape;margin:12mm}}.global-message{color:#334155;background:#eef2ff;border-radius:10px;margin:0 0 14px;padding:10px 12px;font-size:13px}.meter-emphasis{letter-spacing:.02em;font-weight:900;color:#0f172a!important}.filter-bar{grid-template-columns:repeat(3,1fr);gap:8px;display:grid}.filter-bar button{color:#475569;background:#f8fafc;border:1px solid #cbd5e1;border-radius:10px;min-height:40px;font-size:11px;font-weight:900}.filter-bar button.active{color:#fff;background:#0f172a;border-color:#0f172a}.receipt-shell{background:#f8fafc}.receipt-card{background:#fff;border:1px solid #e2e8f0;border-radius:14px;gap:14px;padding:18px;display:grid}.receipt-status{letter-spacing:.05em;border-radius:999px;justify-self:start;margin-top:7px;padding:5px 10px;font-size:12px}.receipt-status.paid{color:#166534;background:#dcfce7}.receipt-status.unpaid{color:#9a3412;background:#ffedd5}.payment-evidence,.meter-evidence{background:#f8fafc;border-radius:12px;gap:6px;padding:12px;font-size:12px;display:grid}.payment-evidence>strong,.meter-evidence>strong{letter-spacing:.08em;color:#475569;font-size:11px}.meter-evidence img{object-fit:contain;background:#e2e8f0;border-radius:9px;width:100%;max-height:300px}.receipt-footnote{color:#64748b;text-align:center;margin:0;font-size:10px;line-height:1.5}@media (width<=360px){.filter-bar{grid-template-columns:1fr}}@media print{.receipt-shell{background:#fff}.receipt-card{border:0;padding:0}.meter-evidence img{max-height:180px}}.record-void{opacity:.72;background:#f8fafc;border-style:dashed}.status-void,.audit-void{font-weight:900;color:#991b1b!important}.audit-edited{font-weight:900;color:#7c3aed!important}.audit-reason{color:#475569;background:#f8fafc;border-radius:9px;grid-column:1/-1;margin:0;padding:8px 10px;font-size:12px}.record-actions{grid-template-columns:repeat(2,minmax(0,1fr))}.record-actions .danger-button{color:#991b1b;background:#fff1f2;border-color:#fecaca}.audit-panel,.void-panel{border-radius:12px;gap:4px;padding:12px;font-size:12px;display:grid}.audit-panel{color:#5b21b6;background:#f5f3ff}.void-panel{color:#991b1b;background:#fff1f2}.audit-panel small{opacity:.8}.receipt-status.void{color:#991b1b}@media (width<=360px){.record-actions{grid-template-columns:1fr}}.pilot-launcher{z-index:30;color:#0f172a;background:#fff;border:1px solid #cbd5e1;border-radius:999px;align-items:center;gap:8px;min-height:38px;padding:0 11px;font-size:10px;font-weight:900;display:flex;position:fixed;top:14px;right:14px;box-shadow:0 6px 20px #0f172a1a}.pilot-launcher span{color:#64748b;font-weight:800}.pilot-overlay{z-index:60;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);background:#0f172a8c;place-items:end center;padding:18px;display:grid;position:fixed;inset:0}.pilot-panel{background:#fff;border-radius:20px;gap:16px;width:min(100%,520px);max-height:92vh;padding:18px;display:grid;overflow:auto;box-shadow:0 20px 60px #0f172a4d}.pilot-heading{justify-content:space-between;align-items:flex-start;gap:12px;display:flex}.pilot-close{background:#fff;border:1px solid #cbd5e1;border-radius:10px;min-height:38px;padding:0 10px;font-size:11px;font-weight:900}.pilot-version{background:#f1f5f9;border-radius:12px;justify-content:space-between;align-items:center;gap:12px;padding:11px 12px;font-size:12px;display:flex}.pilot-version span{color:#475569;font-weight:800}.pilot-safety,.pilot-restore{background:#f8fafc;border:1px solid #e2e8f0;border-radius:14px;gap:12px;padding:14px;display:grid}.pilot-safety>div,.pilot-restore>div{gap:3px;display:grid}.pilot-safety span,.pilot-restore span{color:#64748b;font-size:12px;line-height:1.4}.backup-ok,.backup-warning{border-radius:10px;margin:0;padding:10px 11px;font-size:12px;font-weight:800}.backup-ok{color:#166534;background:#ecfdf5}.backup-warning{color:#9a3412;background:#fff7ed}.pilot-panel select,.history-status-select{color:#0f172a;width:100%;min-height:48px;font:inherit;background:#fff;border:1px solid #cbd5e1;border-radius:11px;padding:10px 12px}.restore-file{cursor:pointer;background:#fff;border:2px dashed #94a3b8;border-radius:11px;justify-content:center;align-items:center;min-height:48px;font-size:12px;font-weight:900;display:flex}.restore-file input{opacity:0;pointer-events:none;width:1px;height:1px;position:absolute}.history-tools{grid-template-columns:1fr 150px;gap:10px;display:grid}.history-status-select{font-size:13px;font-weight:800}.history-filter-note{color:#64748b;margin:-6px 0 0;font-size:11px}.field-identity-banner{z-index:20;color:#1e3a8a;background:#eff6fff5;border:1px solid #dbeafe;border-radius:10px;justify-content:space-between;gap:10px;width:min(100% - 32px,480px);padding:8px 12px;font-size:11px;display:flex;position:fixed;top:66px;left:50%;transform:translate(-50%);box-shadow:0 4px 14px #0f172a12}.field-identity-banner span{color:#475569}.field-identity-receipt{border-top:1px solid #e2e8f0;grid-template-columns:1fr 1fr;gap:8px;margin-top:8px;padding-top:10px;display:grid}.field-identity-receipt div{gap:2px;display:grid}.field-identity-receipt span{color:#64748b;font-size:10px}.field-identity-receipt strong{color:#0f172a;font-size:12px}html[data-history-status=pending] .folder-meta,html[data-history-status=paid] .folder-meta,html[data-history-status=void] .folder-meta{display:none}.folder-row:after{letter-spacing:.04em;border-radius:999px;justify-self:end;padding:5px 8px;font-size:10px;font-weight:900;display:none}html[data-history-status=pending] .folder-row:after{content:"PENDING MATCH";color:#9a3412;background:#fff7ed;display:block}html[data-history-status=paid] .folder-row:after{content:"PAID MATCH";color:#166534;background:#ecfdf5;display:block}html[data-history-status=void] .folder-row:after{content:"VOID MATCH";color:#991b1b;background:#fff1f2;display:block}html[data-secure-context=false] .receipt-actions:after{content:"Native Share activates on the HTTPS pilot deployment. Save Receipt and Email can still be tested here.";color:#64748b;text-align:center;grid-column:1/-1;font-size:10px;line-height:1.4}html[data-secure-context=false] .receipt-actions button[title*=HTTPS]{color:#94a3b8;background:#f8fafc}@media (width<=420px){.pilot-launcher{top:auto;bottom:76px;right:12px}.history-tools{grid-template-columns:1fr}.pilot-overlay{padding:10px}.pilot-panel{border-radius:16px;max-height:95vh}.field-identity-banner{flex-direction:column;gap:2px;top:60px}.field-identity-receipt{grid-template-columns:1fr}.folder-row:after{justify-self:start}}@media print{.pilot-launcher,.pilot-overlay,.field-identity-banner{display:none!important}}.app-dialog-backdrop{z-index:100;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);background:#0f172a9e;place-items:center;padding:18px;display:grid;position:fixed;inset:0}.app-dialog{background:#fff;border:1px solid #dbe3ee;border-radius:20px;gap:14px;width:min(100%,430px);padding:20px;display:grid;box-shadow:0 22px 70px #0f172a59}.app-dialog h2{font-size:22px}.app-dialog-message{white-space:pre-line;color:#334155;margin:0;font-size:14px;line-height:1.55}.app-dialog input{font-size:16px}.app-dialog-actions{grid-template-columns:1fr 1fr;gap:10px;margin-top:2px;display:grid}.app-dialog-actions button{min-height:50px}.app-dialog .eyebrow{margin-bottom:-7px}@media (width<=360px){.app-dialog-actions{grid-template-columns:1fr}.app-dialog{border-radius:16px;padding:17px}}
