/* tools/receipt_scanner.css — the free receipt scanner (/receipt-scanner,
   templates/tools/receipt_scanner.html).

   Loaded after calculator.css, which gives the page frame (.calc), the
   heading block and the button (.calc__go), and generator.css for the
   closing CTA. This file adds the drop area and the results: a table on a
   wide screen, and on a phone each row drawn as a card from its cells'
   data-label. Every colour is a token from the public shell. */

/* One centred column. The calculators fill .calc's 1180px with a form beside
   its answer; this page has a single block, which would sit against the left
   edge of that frame with the right half empty. */
.calc.rscan { max-width: 800px; }
.rscan .calc__head, .rscan .calc__examples, .rscan .calc__faq { max-width: none; }
/* The marketing shell pads every bare <section> as a full-width page band
   (chippie-marketing.css); these are blocks inside one column. */
.rscan .calc__examples, .rscan .calc__faq, .rscan__results { padding: 0; }
.rscan .calc__examples { margin-top: 32px; }
.rscan .calc__examples h2 { margin: 28px 0 10px; }
.rscan .calc__examples h2:first-child { margin-top: 0; }

.rscan__drop {
    padding: 22px; text-align: center;
    background: var(--white); border: 2px dashed var(--border); border-radius: 14px;
}
.rscan__drop.is-over { border-color: var(--orange); background: var(--sandstone); }
.rscan__drop-title { font-size: 18px; font-weight: 600; margin-bottom: 4px; }
.rscan__drop-hint, .rscan__privacy { font-size: 13px; color: var(--text-2); }
.rscan__buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 14px 0; }
.rscan__input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.rscan__status { font-weight: 600; margin: 0 0 10px; }
.rscan__privacy { margin: 0; }
/* The camera button is for a phone; a wide screen has the drop area. */
.rscan__snap { display: none; }

.rscan__results { margin-top: 28px; }
.rscan__results-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.rscan__count { font-size: 13px; color: var(--text-2); }
.rscan__table { width: 100%; border-collapse: collapse; margin: 10px 0 16px; }
.rscan__table th {
    font-size: 13px; font-weight: 600; color: var(--text-2); text-align: left; padding: 6px 8px;
}
.rscan__table td { padding: 10px 8px; border-top: 1px solid var(--border); vertical-align: top; }
.rscan__money { white-space: nowrap; font-variant-numeric: tabular-nums; }
.rscan__check { font-size: 13px; color: var(--text-2); }
.rscan__remove {
    border: none; background: none; padding: 0; color: var(--orange); font-weight: 600; cursor: pointer;
}
.rscan__sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.rscan__pitch {
    margin-top: 24px; padding: 18px;
    background: var(--sandstone); border: 1px solid var(--border); border-radius: 14px;
}
.rscan__pitch p { color: var(--text-2); margin-bottom: 12px; }

@media (max-width: 640px) {
    .rscan__snap { display: inline-block; }
    .rscan__drop-title { display: none; }
    .rscan__table thead { display: none; }
    .rscan__table, .rscan__table tbody, .rscan__row, .rscan__row td { display: block; }
    .rscan__row {
        padding: 12px; margin-bottom: 10px;
        background: var(--white); border: 1px solid var(--border); border-radius: 12px;
    }
    .rscan__row td { border: none; padding: 3px 0; }
    .rscan__row td[data-label]::before {
        content: attr(data-label) ": "; font-size: 13px; font-weight: 600; color: var(--text-2);
    }
    .rscan__row td:empty { display: none; }
}
