/* Bill scanner page. Builds on app.css. */
body.scan-page { padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
.back-link { display: inline-block; margin: 0 0 10px; font-weight: 600; font-size: .92rem; text-decoration: none; min-height: 44px; line-height: 44px; }
.scan-actions { display: grid; gap: 8px; margin-bottom: 12px; }
.scan-actions .btn { width: 100%; margin: 0; }
.pages { list-style: none; margin: 0 0 8px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; }
.pages:empty { display: none; }
.page-card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.page-card img { display: block; width: 100%; height: 132px; object-fit: cover; background: #EEF2FA; }
.page-card .pdf { height: 132px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: .75rem; color: var(--ink2); padding: 6px; text-align: center; overflow-wrap: anywhere; }
.page-card .pdf b { font: 800 1.1rem 'Syne', 'Inter', sans-serif; color: var(--blue-dark); }
.page-card .num { position: absolute; left: 6px; top: 6px; background: rgba(15, 23, 42, .75); color: #fff; font-size: .72rem; font-weight: 700; border-radius: 999px; padding: 2px 8px; }
.page-card .rm { position: absolute; right: 4px; top: 4px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--red); font-size: 1.3rem; line-height: 1; cursor: pointer; }
.enhance { margin: 10px 0 18px; font-size: .88rem; }
.progress { height: 8px; background: #E6ECF8; border-radius: 999px; margin-top: 12px; overflow: hidden; }
.progress i { display: block; height: 100%; width: 0; background: var(--blue); transition: width .2s; }
@media (min-width: 560px) { .scan-actions { grid-template-columns: 1fr 1fr; } }
