.document-progress[hidden] { display: none; }
.document-progress { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 20px; background: rgba(15, 35, 26, .57); backdrop-filter: blur(3px); }
.document-progress-card { width: min(100%, 390px); padding: 31px; border-radius: 16px; background: white; box-shadow: 0 24px 70px rgba(8, 28, 14, .25); text-align: center; }
.document-progress-icon { display: grid; place-items: center; width: 45px; height: 45px; margin: 0 auto 15px; border-radius: 12px; background: #e4f3e8; color: #247447; font-size: 27px; }
.document-progress-card strong { display: block; font: 800 18px Manrope, Arial, sans-serif; color: #193e2b; }
.document-progress-card p { color: #687d70; font-size: 12px; line-height: 1.5; margin: 9px 0 20px; }
.document-progress-track { height: 7px; overflow: hidden; border-radius: 9px; background: #e3eee6; }
.document-progress-track span { display: block; width: 38%; height: 100%; border-radius: 9px; background: #2b8a53; animation: receipt-progress 1.4s ease-in-out infinite; }
@keyframes receipt-progress { from { transform: translateX(-110%); } to { transform: translateX(300%); } }
@media (prefers-reduced-motion: reduce) { .document-progress-track span { animation: none; width: 100%; } }

body.receipt-fullscreen, body.receipt-fullscreen .shell { height: 100dvh; min-height: 0; overflow: hidden; }
body.receipt-fullscreen .sidebar, body.receipt-fullscreen .topbar { display: none; }
body.receipt-fullscreen .main { height: 100dvh; min-width: 0; }
body.receipt-fullscreen .content { position: relative; display: flex; flex-direction: column; height: 100dvh; max-width: none; padding: 0; overflow: hidden; }
body.receipt-fullscreen .content > .notice { position: absolute; z-index: 4; top: 82px; right: 18px; max-width: 380px; box-shadow: 0 8px 25px rgba(18, 50, 30, .12); }
.receipt-viewer { display: flex; flex-direction: column; width: 100%; height: 100%; min-height: 0; }
.receipt-toolbar { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 11px 20px; border-bottom: 1px solid #dce6dc; background: white; }
.receipt-toolbar-title { display: grid; gap: 1px; min-width: 0; }
.receipt-toolbar-title small { font-size: 9px; font-weight: 800; letter-spacing: 1.4px; color: #2a7950; }
.receipt-toolbar-title strong { font-size: 17px; color: #183a27; }
.receipt-toolbar-title span { overflow: hidden; color: #728478; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.receipt-toolbar-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 7px; }
.receipt-toolbar-actions form { margin: 0; }
.receipt-toolbar-actions .button { min-height: 36px; padding: 0 11px; gap: 5px; }
.receipt-canvas { position: relative; display: grid; flex: 1; min-height: 0; place-items: center; overflow: hidden; padding: 14px; background: #e7ebe6; }
.receipt-frame-wrap { position: relative; flex: none; background: white; box-shadow: 0 15px 45px rgba(25, 51, 35, .22); }
.receipt-frame { position: absolute; top: 0; left: 0; width: 595px; height: 842px; border: 0; background: white; transform-origin: top left; }
.receipt-preview-loading[hidden] { display: none; }
.receipt-preview-loading { position: absolute; z-index: 2; width: min(280px, 80%); padding: 20px; border: 1px solid #dce8dd; border-radius: 12px; background: rgba(255,255,255,.97); box-shadow: 0 12px 32px rgba(18, 49, 30, .14); text-align: center; }
.receipt-preview-loading strong, .receipt-preview-loading span { display: block; }
.receipt-preview-loading strong { color: #214632; font-size: 13px; }
.receipt-preview-loading > span { margin: 5px 0 14px; color: #778a7b; font-size: 11px; }
@media (max-width: 760px) { .receipt-toolbar { align-items: flex-start; flex-direction: column; gap: 7px; padding: 9px 12px; } .receipt-toolbar-title strong { font-size: 14px; } .receipt-toolbar-actions { justify-content: flex-start; } .receipt-toolbar-actions .button { min-height: 32px; font-size: 10px; } .receipt-canvas { padding: 8px; } }
