:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;color:#19352f;background:#f3f5f1;font-synthesis:none;line-height:1.5;font-weight:400}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer;min-height:46px;border:1px solid #acbbb3;background:#fff;color:#244c41;border-radius:10px;padding:10px 16px;font-weight:650}button:hover{background:#edf3ee}button:disabled{opacity:.6;cursor:wait}a{color:inherit}header{min-height:76px;max-width:1056px;margin:auto;display:flex;align-items:center;justify-content:space-between;gap:24px;padding:20px 28px}header span{font-size:14px;max-width:50%;overflow-wrap:anywhere;color:#53645c}.operator-nav{max-width:620px;margin:0 auto;display:flex;gap:8px;padding:0 4px}.operator-nav a{display:grid;place-items:center;min-height:46px;flex:1;border:1px solid #cbd9ce;border-radius:10px;text-decoration:none;font-weight:700;background:#fff}.operator-nav a[aria-current=page]{background:#19594e;color:#fff;border-color:#19594e}.brand{text-decoration:none;letter-spacing:.16em;font-size:15px;white-space:nowrap}.brand strong{font-weight:800}main{max-width:620px;margin:22px auto 0;background:#fff;border:1px solid #dce4dc;border-radius:20px;padding:32px;box-shadow:0 10px 36px #1d433408}h1{font-size:28px;line-height:1.2;margin:4px 0 24px;letter-spacing:-.035em;font-weight:700}p{color:#526359}.eyebrow{font-size:11px;letter-spacing:.15em;color:#456957;font-weight:750;margin:0 0 8px}.heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.tag{font-size:11px;white-space:nowrap;border:1px solid #d4ded6;border-radius:20px;padding:5px 9px;margin-top:3px}fieldset{border:0;padding:0;margin:0;min-width:0}label{display:block;font-size:14px;font-weight:650;margin:14px 0 6px}input,select,textarea{width:100%;min-height:48px;padding:10px 12px;border:1px solid #9dad9f;border-radius:9px;background:#fff;color:#183b2e}select{padding-right:28px}textarea{resize:vertical}input::placeholder{color:#748278;opacity:1}small,.hint{display:block;font-size:12px;color:#59665e;margin:5px 0}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,[tabindex]:focus-visible{outline:3px solid #b46c1f;outline-offset:3px}.mode{display:grid;grid-template-columns:1fr 1fr;gap:4px;padding:4px;background:#edf1eb;border-radius:12px}.mode button{border:0;background:transparent;padding:9px 5px;font-size:14px}.mode [aria-pressed=true]{background:#fff;color:#124b3f;box-shadow:0 1px 4px #102e2220}.amount-entry{padding:8px 0 6px}#amount{font-size:32px;font-weight:700;letter-spacing:-.02em;height:64px}.payment{border-top:1px solid #e2e7e0;margin-top:14px;padding-top:2px}.customer-heading,.line-head{display:flex;align-items:center;justify-content:space-between;gap:8px}.customer-heading label,.line-head label{margin:8px 0}.text-button{border:0;background:transparent;font-size:13px;padding:8px}.save-area{margin-top:24px;padding-top:18px;border-top:1px solid #dbe4db}.save-area>div{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px;font-size:14px}#total{font-size:25px;font-weight:750}.primary{background:#19594e;color:#fff;border-color:#19594e;min-height:50px}.primary:hover{background:#10483d}#save,#another-sale,#expense-save,#another-expense,#setup .primary{width:100%}#setup .primary{margin-top:24px}footer{padding:22px 16px;font-size:11px;text-align:center;color:#57655b}#feedback:not(:empty){padding:12px 14px;margin-bottom:16px;color:#812d1e;background:#fff1e8;border:1px solid #d99578;border-radius:9px;font-size:14px}#feedback:empty{display:none}.line{margin-top:16px;border-bottom:1px solid #dbe4db;padding-bottom:12px}.line-values{display:grid;grid-template-columns:1fr 1.5fr;gap:12px}.line-total{display:block;text-align:right;font-weight:700;margin-top:10px}.actions{display:flex;flex-wrap:wrap;gap:8px;justify-content:space-between;margin-top:16px}.result{text-align:center}.result h1{margin:12px 0}.success-mark{display:inline-grid;place-items:center;background:#e4f1e5;color:#19594e;width:52px;height:52px;border-radius:50%;font-size:26px;margin-bottom:16px}.status{font-weight:750;color:#19594e}dl{text-align:left;margin:24px 0}dl>div{display:flex;justify-content:space-between;gap:16px;padding:12px 0;border-bottom:1px solid #e1e7df}dt{color:#506158;font-size:14px}dd{margin:0;font-weight:700;text-align:right;overflow-wrap:anywhere;max-width:60%}.outstanding{font-size:22px}.outstanding dt{font-weight:700;color:#19352f}.receipt-items{list-style:none;padding:0;font-size:14px;text-align:left}.receipt-items li{display:flex;justify-content:space-between;gap:12px;padding:6px 0}.receipt-items span{white-space:nowrap}.receivables h2,.repayment-result h2{font-size:18px;margin:24px 0 10px}.customer-list,.obligation-list{list-style:none;padding:0;margin:16px 0}.customer-list li,.obligation-list li{border-bottom:1px solid #e1e7df}.customer-list a{display:flex;justify-content:space-between;align-items:center;gap:16px;min-height:64px;padding:12px 4px;text-decoration:none}.customer-list span{font-weight:750;white-space:nowrap}.obligation-list li{display:flex;justify-content:space-between;gap:12px;padding:14px 0;overflow-wrap:anywhere}.obligation-list li strong{text-align:right}.empty-state{padding:24px 0}.back-link{display:inline-flex;align-items:center;min-height:44px;margin-bottom:12px;font-weight:650}.balance{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:18px 0;border-block:1px solid #dbe4db}.balance strong{font-size:24px;text-align:right}#repayment-form{margin-top:28px}#pay-full{margin-top:16px;width:100%}#repayment-save{width:100%;margin-top:10px}.result-link{display:grid;place-items:center;text-decoration:none;border-radius:10px;margin-top:22px}.history-list{list-style:none;padding:0;margin:16px 0 0}.history-entry{padding:18px 0;border-bottom:1px solid #e1e7df;overflow-wrap:anywhere}.history-top,.history-meta{display:flex;justify-content:space-between;gap:12px}.history-top strong:last-child{text-align:right}.history-entry p{margin:6px 0}.history-entry small,.history-entry time{display:block;color:#59665e;font-size:12px}.history-meta{align-items:baseline;margin-top:10px}.history-status{font-size:12px;font-weight:750;white-space:nowrap}.history-open{width:100%;margin-top:14px;text-align:left}.event-workflow h2{font-size:18px;margin:22px 0 8px}.event-workflow h3{font-size:16px;margin:8px 0}.event-workflow dl{margin:14px 0}.event-workflow dd{max-width:64%}.event-context{border:1px solid #dce4dc;border-radius:12px;padding:12px 16px;margin:18px 0}.event-context h2{margin:0}.event-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:22px}.event-actions button{min-width:0;min-height:50px}.back-button{border:0;padding-left:0;background:transparent;margin-bottom:12px}.edit-item{border:1px solid #dce4dc;border-radius:10px;padding:16px;margin:14px 0}.edit-item button{margin-top:12px}.heading>div:first-child{min-width:0}.heading-actions{display:flex;flex-direction:column;align-items:flex-end;flex-shrink:0;max-width:130px}.summary-entry{display:inline-flex;align-items:center;justify-content:flex-end;min-height:44px;font-size:13px;text-align:right;font-weight:650}.summary-date{display:block;color:#526359;margin-top:-12px}.summary-metrics{display:grid;gap:10px;margin:24px 0 18px}.summary-metrics>div{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:4px 16px;padding:14px 16px;border:1px solid #dce4dc;border-radius:10px}.summary-metrics dt{font-weight:600}.summary-metrics dd{max-width:100%;font-size:20px}.summary-note{font-size:13px}.utility-entry{display:flex;align-items:center;min-height:44px;margin-top:16px;font-size:13px;font-weight:650}.utility-block{border-top:1px solid #dbe4db;padding:22px 0 8px}.utility-block h2{margin:0 0 8px;font-size:20px}.utility-block p{margin:8px 0 16px}.utility-block .primary{width:100%}.privacy-note{font-size:13px}.utility-success,.utility-error{padding:12px 14px;border-radius:9px;overflow-wrap:anywhere}.utility-success{color:#145246;background:#e8f4ec}.utility-error{color:#812d1e;background:#fff1e8}.restore-preview{margin-top:20px;padding:18px;border:1px solid #dce4dc;border-radius:12px;overflow-wrap:anywhere}.restore-preview h3{margin:0 0 12px;font-size:17px}.restore-preview dl{display:grid;gap:8px;margin:16px 0}.restore-preview dl>div{display:flex;justify-content:space-between;gap:12px;border-bottom:1px solid #e1e7df}.restore-preview dd{margin:0;font-weight:700}.restore-warning{padding:14px;background:#fff1e8;color:#812d1e;border-radius:9px;font-weight:650}.restore-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}.restore-actions button{min-width:0}.danger{background:#892f24;color:#fff;border-color:#892f24}.danger:hover{background:#72251d}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.pwa-status-surface:not([hidden]){position:fixed;z-index:20;right:16px;bottom:16px;display:grid;gap:8px;width:min(360px,calc(100vw - 32px));max-height:calc(100dvh - 32px);overflow-y:auto}.pwa-status-panel{padding:14px 16px;border:1px solid #b7cbc0;border-radius:12px;background:#fff;box-shadow:0 8px 24px #19352f26}.pwa-status-panel strong{display:block;color:#19352f}.pwa-status-panel p{margin:4px 0 0;font-size:13px}.pwa-status-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:12px}.pwa-status-actions button{min-height:44px}.pwa-update-feedback{color:#812d1e}.report-controls{display:grid;gap:16px;margin-bottom:28px}.report-tabs,.report-periods{display:grid;gap:8px;grid-template-columns:repeat(2,minmax(0,1fr))}.report-tabs button,.report-periods button{min-width:0}.report-tabs [aria-pressed=true],.report-periods [aria-pressed=true]{background:#19594e;color:#fff;border-color:#19594e}.report-range{display:grid;gap:8px}.report-range label{font-weight:650;margin-top:4px}.report-range input,.report-range select{width:100%;min-width:0;min-height:46px;padding:10px;border:1px solid #acbbb3;border-radius:9px;background:#fff;color:#19352f}.report-range .primary{margin-top:8px}#print-report{width:100%}.report-document{border-top:2px solid #19594e;padding-top:22px;overflow-wrap:anywhere}.report-document-header{margin-bottom:20px}.report-document-header h2{font-size:24px;margin:4px 0 12px}.report-document-header p{margin:4px 0}.report-business-name{color:#19352f;font-weight:800;letter-spacing:.04em}.report-metrics{display:grid;gap:0;margin:18px 0}.report-metrics>div{display:flex;justify-content:space-between;gap:12px;padding:10px 0;border-bottom:1px solid #dce4dc}.report-metrics dt{font-weight:600}.report-metrics dd{margin:0;text-align:right;font-weight:750}.report-current,.report-current-balance{background:#edf3ee;padding-inline:10px!important}.report-current-balance{display:flex;justify-content:space-between;gap:12px;padding-block:14px;font-weight:650}.report-current-balance strong{text-align:right}.report-explanation{font-size:13px;line-height:1.5}.report-document h3{margin:24px 0 10px;font-size:18px}.report-entries{list-style:none;margin:0;padding:0}.report-entries li{padding:12px 0;border-bottom:1px solid #dce4dc;break-inside:avoid;page-break-inside:avoid}.report-entries li>div{display:flex;justify-content:space-between;gap:12px}.report-entries li>div span{text-align:right;font-weight:700}.report-entries time,.report-entries small{display:block;color:#526359;font-size:12px}.report-voided{background:#f8f1ed;padding-inline:8px!important}@media(max-width:640px){.pwa-status-surface:not([hidden]){right:12px;bottom:12px;width:calc(100vw - 24px);max-height:calc(100dvh - 24px)}.event-actions{grid-template-columns:1fr}.event-workflow dl>div{align-items:baseline}.event-workflow dd{max-width:58%}.operator-nav{margin:0 12px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}header{padding:16px 20px;min-height:64px;gap:12px}header span{font-size:12px}main{margin:16px 12px 0;border-radius:16px;padding:22px 18px}h1{font-size:25px;margin-bottom:20px}.heading{display:block;margin-bottom:6px}.heading h1{margin-bottom:4px}.heading-actions{display:block;max-width:none}.summary-entry{display:flex;width:100%;min-height:44px;justify-content:flex-start;padding:10px 12px;border:1px solid #dce4dc;border-radius:9px;background:#f8faf7;font-size:14px;text-align:left;text-decoration:none}.tag{display:none}small,.hint,.history-entry time,.history-status{font-size:13px}.save-area{margin-top:20px}footer{padding:16px 12px;font-size:12px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;animation:none!important;transition:none!important}}@media print{@page{margin:14mm}:root,body{background:#fff!important;color:#111!important}header,.operator-nav,footer,.reporting>.back-link,.report-controls,.pwa-status-surface,.pwa-status-panel{display:none!important}main{max-width:none;width:100%;margin:0;padding:0;border:0;border-radius:0;box-shadow:none}.reporting>h1,.reporting>.eyebrow{display:none}.report-document{border:0;padding:0;font-size:10pt;overflow:visible}.report-document-header,.report-document h3{break-after:avoid;page-break-after:avoid}.report-entries li{break-inside:avoid;page-break-inside:avoid}.report-metrics>div,.report-current-balance{break-inside:avoid;page-break-inside:avoid}.report-current,.report-current-balance,.report-voided{background:#eee!important;-webkit-print-color-adjust:exact;print-color-adjust:exact}}
