.receipt-intake{margin:20px 0 26px;border:1px solid #dce9e2;border-radius:10px;overflow:hidden;background:#f9fcfa}
.modal-header{position:sticky;top:0;background:white;z-index:2}
.receipt-heading{padding:14px 16px;display:flex;justify-content:space-between;gap:10px;color:#3c6652;font-size:14px}
.receipt-heading>span{color:#8b9c90;font-size:14px}
.receipt-drop{margin:0 16px;border:2px dashed #b8cfc1;border-radius:8px;padding:24px 14px;display:flex;align-items:center;flex-direction:column;gap:8px;color:#688a76;transition:background .15s,border-color .15s}
.receipt-drop strong{font-size:14px;font-weight:600}
.receipt-drop>span:not(.receipt-drop-icon){font-size:14px;text-align:center}
.receipt-drop small{font-size:14px;color:#8c9f91}
.receipt-drop-icon{font-size:26px;line-height:1.2}
.receipt-drop.drag-over{background:#e0f2e8;border-color:#2b8363}
.receipt-drop.has-file{padding:13px;flex-direction:row;justify-content:center;flex-wrap:wrap;gap:10px}
.receipt-drop.has-file .receipt-drop-icon,.receipt-drop.has-file>span:not(.receipt-drop-icon),.receipt-drop.has-file small{display:none}
.receipt-drop.has-file strong{font-size:14px;font-weight:400}
.receipt-file{position:absolute;width:1px;height:1px;opacity:0;overflow:hidden;pointer-events:none}
.receipt-drop:has(.receipt-file:focus-visible){outline:2px solid #2b8363}
.receipt-preview{margin:0 16px 15px;border:1px solid #e0e7e1;border-radius:7px;background:white;overflow:hidden}
.receipt-preview-bar{display:flex;align-items:center;justify-content:space-between;padding:9px 12px;border-bottom:1px solid var(--line);gap:10px;font-size:14px;color:#7d9282}
.receipt-preview-bar>span{min-width:0;overflow-wrap:anywhere}
.receipt-image-box{position:relative;background:#eef2ef;padding-bottom:48px}
.receipt-preview img{display:block;max-height:310px;max-width:100%;width:100%;object-fit:contain;padding:12px}
.receipt-preview-actions{position:absolute;right:10px;bottom:9px;display:flex;gap:6px}
.receipt-preview-actions .btn{background:#fff;box-shadow:0 1px 4px #173d3310}
.receipt-viewer{width:calc(100% - 40px);max-width:1200px;height:calc(100dvh - 40px);max-height:calc(100dvh - 40px);overflow:hidden;background:#fff}
.receipt-viewer[open]{display:flex;flex-direction:column}
.receipt-viewer-header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:15px 20px;border-bottom:1px solid #e0e7e1;color:#355847}
.receipt-viewer-header strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px}
.receipt-viewer-header button{flex-shrink:0}
.receipt-viewer-toolbar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:10px 20px;border-bottom:1px solid #e0e7e1}
.receipt-viewer-toolbar output{min-width:48px;font-size:14px;color:#32664e;font-variant-numeric:tabular-nums}
.receipt-viewer-toolbar span{margin-left:auto;font-size:14px;color:#82978a}
.receipt-viewer-toolbar [aria-pressed=true]{border-color:#2c8365;background:#eaf5ef;color:#22654e}
.receipt-viewer-stage{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;background:#eef2ef;padding:20px;cursor:grab;touch-action:none;user-select:none}
.receipt-viewer-stage.dragging{cursor:grabbing}
.receipt-viewer-stage:focus-visible{outline:2px solid #2b8363;outline-offset:-3px}
.receipt-viewer-stage img{display:block;max-width:none;height:auto;margin:0 auto;background:#fff;box-shadow:0 2px 12px #183d3215;pointer-events:none}
.receipt-pages{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:10px 12px;font-size:14px;color:#789381}
.receipt-pages select{padding:6px;border:1px solid #dce7df;border-radius:4px;background:white;color:#4b6b59}
.receipt-tools{display:flex;align-items:center;gap:8px;margin:10px 16px;font-size:14px;color:#728978;flex-wrap:wrap}
.receipt-tools>span{flex:1;min-width:100px;overflow-wrap:anywhere}
.receipt-status{margin:13px 16px 16px;font-size:14px;line-height:1.7;color:#537e65}
.receipt-status.error{color:#b35046}
.receipt-auto-note{color:#2b8363;font-size:14px;line-height:1.5}
.receipt-results{padding:17px 16px;background:white;border-top:1px solid #e1e9e3}
.receipt-result-heading{display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap;color:#426c54;font-size:14px}
.receipt-result-heading>span{font-size:14px;font-weight:400;color:#8b9b8f}
.receipt-ocr-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:17px 0}
.receipt-ocr-row{min-width:0;display:grid;gap:5px}
.receipt-ocr-row>input{border:1px solid #dce7df;background:#fff;border-radius:5px;padding:9px 10px;color:#41594b;font-size:14px;width:100%}
.receipt-ocr-row>input:read-only{background:#f5f7f5;color:#9ca89e}
.receipt-ocr-row small{font-size:14px;color:#b47e45}
.receipt-warnings{margin:10px 0;padding-left:18px;color:#aa7b43;font-size:14px;line-height:1.8}
.receipt-apply{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:16px 0}
.receipt-apply>span{font-size:14px;color:#91a095}
.receipt-text{font-size:14px;color:#799180;border-top:1px solid #e6ece8;padding-top:12px}
.receipt-text summary{cursor:pointer}
.receipt-text pre{white-space:pre-wrap;overflow-wrap:anywhere;max-height:230px;overflow:auto;padding:13px;background:#f5f8f5;line-height:1.7;color:#57715e}
.receipt-intake [hidden]{display:none!important}
.saved-evidence .receipt-drop,.saved-evidence .receipt-tools{display:none!important}.saved-evidence-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:-12px;margin-bottom:24px}.saved-evidence-actions button{overflow-wrap:anywhere;max-width:100%;text-align:left}
@media(min-width:760px){.receipt-intake.has-results{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.has-results>.receipt-heading{grid-column:1/-1}.has-results>.receipt-preview{grid-column:1;grid-row:2;margin-right:0}.has-results>.receipt-drop{grid-column:1;grid-row:3;margin-right:0}.has-results>.receipt-tools{grid-column:1;grid-row:4}.has-results>.receipt-status{grid-column:1;grid-row:5}.has-results>.receipt-results{grid-column:2;grid-row:2/6;margin-left:16px;border-top:0;border-left:1px solid #e1e9e3}.has-results .receipt-result-heading{flex-direction:column}.has-results .receipt-result-heading>span{line-height:1.6}.has-results .receipt-preview img{max-height:360px}.has-results .receipt-ocr-row .check{font-size:14px}}
@media(max-width:650px){.receipt-heading{padding:13px;flex-wrap:wrap}.receipt-drop,.receipt-preview{margin-inline:12px}.receipt-drop strong{font-size:14px}.receipt-drop>span:not(.receipt-drop-icon){font-size:14px}.receipt-ocr-fields{grid-template-columns:1fr}.receipt-pages{align-items:flex-start;flex-direction:column}.receipt-preview img{max-height:260px}.receipt-result-heading{flex-direction:column}.receipt-result-heading>span{line-height:1.6}}
@media(max-width:650px){.receipt-viewer{width:calc(100% - 16px);height:calc(100dvh - 16px);max-height:calc(100dvh - 16px)}.receipt-viewer-header{padding:12px}.receipt-viewer-toolbar{padding:8px 12px;gap:6px}.receipt-viewer-toolbar span{width:100%;margin-left:0}.receipt-viewer-stage{padding:12px}}
