/* Receipts remain readable on folded phones and expand without losing input state. */
.receipts-module { width: min(100%, 980px); margin: 0 auto; padding: 18px 0 24px; display: grid; gap: 20px; min-width: 0; font-size: 14px; line-height: 1.6; }
.receipts-module *, .receipt-board-entry * { min-width: 0; }
.receipts-heading h1 { font-size: 24px; }
.receipts-heading p { margin-top: 6px; color: var(--muted); }
.receipts-module h2 { font-size: 18px; margin-bottom: 12px; }
.receipt-entry, .receipt-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px; }
.receipt-entry form, .receipt-card, .receipt-queue { display: grid; gap: 12px; }
.receipt-shop { margin-bottom: 12px; overflow-wrap: anywhere; }
.receipts-module label { display: grid; gap: 5px; font-size: 14px; }
.receipts-module input, .receipts-module select, .receipts-module textarea { width: 100%; min-height: 46px; font-size: 16px; }
.receipt-form-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.receipt-toolbar { display: flex; flex-wrap: wrap; align-items: end; gap: 8px; }
.receipt-toolbar label { flex: 1 1 150px; }
.receipt-toolbar .btn { flex: 0 0 auto; }
.receipts-module .btn { min-height: 46px; height: auto; white-space: normal; overflow-wrap: anywhere; font-size: 14px; }
.receipt-list { display: grid; gap: 14px; align-items: start; }
.receipt-card header { display: flex; align-items: start; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.receipt-card h3 { font-size: 17px; overflow-wrap: anywhere; flex: 1 1 110px; }
.receipt-status { padding: 4px 8px; border-radius: 8px; font-weight: 700; font-size: 14px; }
.receipt-status.pending, .receipt-pending-note { color: var(--amber); background: var(--sun-soft); }
.receipt-status.approved, .receipt-approved-note { color: var(--jade); background: var(--jade-soft); }
.receipt-status.rejected, .receipt-rejected-note { color: var(--red); background: var(--red-soft); }
.receipt-pending-note, .receipt-approved-note, .receipt-rejected-note { padding: 10px 12px; border-radius: 9px; font-size: 14px; }
.receipt-amount { font-size: clamp(22px, 5vw, 30px); font-variant-numeric: tabular-nums; line-height: 1.3; overflow-wrap: anywhere; }
.receipt-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; }
.receipt-facts dt { color: var(--muted); font-size: 14px; }
.receipt-facts dd { margin: 2px 0 0; font-weight: 650; overflow-wrap: anywhere; font-size: 14px; }
.receipt-booking { display: grid; gap: 4px; padding-top: 10px; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.receipt-booking strong { color: var(--muted); font-weight: 500; }
.receipt-copy { white-space: pre-wrap; overflow-wrap: anywhere; }
.receipt-id, .receipt-muted { color: var(--muted); font-size: 14px; overflow-wrap: anywhere; }
.receipt-reason { background: var(--surface-2); padding: 12px; border-radius: 9px; }
.receipt-warning { background: var(--sun-soft); color: var(--amber); border: 1px solid var(--sun); padding: 12px; border-radius: 10px; font-size: 14px; overflow-wrap: anywhere; }
.receipts-module .receipt-check { display: flex; align-items: start; gap: 10px; min-height: 44px; margin-top: 8px; cursor: pointer; }
.receipts-module .receipt-check input { min-height: 24px; width: 24px; height: 24px; flex: 0 0 24px; margin: 4px 0; }
.receipt-card details > summary { cursor: pointer; min-height: 46px; display: flex; align-items: center; color: var(--red); font-size: 14px; font-weight: 650; }
.receipt-card details textarea { margin-bottom: 10px; }
.receipt-card details .btn { width: 100%; }
.receipt-feedback, .receipt-error { overflow-wrap: anywhere; font-size: 14px; }
.receipt-feedback:not(:empty) { border: 1px solid var(--jade); border-radius: 10px; background: var(--jade-soft); padding: 12px; }
.receipt-feedback.is-error:not(:empty), .receipt-error:not(:empty) { color: var(--red); background: var(--red-soft); padding: 12px; border: 1px solid var(--red); border-radius: 10px; }
.receipt-feedback:empty, .receipt-error:empty { display: none; }
.receipt-empty { color: var(--muted); border: 1px dashed var(--line); padding: 28px 14px; border-radius: 12px; text-align: center; }
.receipts-module [hidden] { display: none !important; }
.receipt-more { width: 100%; }
.receipt-board-entry { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 12px 0 16px; padding: 14px; background: var(--jade-soft); border: 1px solid var(--jade); border-radius: 14px; min-height: 48px; text-decoration: none; color: var(--jade); }
.receipt-board-entry strong { display: block; font-size: 16px; }
.receipt-board-entry span { display: block; font-size: 14px; overflow-wrap: anywhere; }
.receipt-board-entry > svg { flex: 0 0 18px; }
@media (min-width: 600px) { .receipt-form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .receipt-entry { max-width: 690px; width: 100%; justify-self: center; } }
@media (min-width: 690px) { .receipt-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } .receipt-empty { grid-column: 1 / -1; } }
@media (prefers-reduced-motion: reduce) { .receipts-module * { scroll-behavior: auto; } }
