/* THIS IS FLORIDA: Free Receipt Organizer (additions to app.css) */
.app [hidden] { display: none !important; }
.ro-save { margin: 0 0 1rem; padding: .6rem .85rem; border: 2px solid var(--bad); border-radius: .5rem; background: #fbeeed; color: #7a1f1a; font-weight: 700; max-width: 70ch; }
.ro-warn { border-color: #b7791f; background: #fff6e5; color: #5c3d05; }
.ro-layout { display: flex; flex-wrap: wrap; gap: 1.25rem; align-items: flex-start; }
.ro-editor { flex: 1 1 340px; min-width: 0; max-width: 520px; }
.ro-main { flex: 999 1 520px; min-width: 0; }
.ro-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 .8rem; }
@media (max-width: 420px) { .ro-grid { grid-template-columns: 1fr; } }
.ro-photo { margin: .6rem 0; }
.ro-ph-h { font-weight: 600; font-size: .95rem; margin: .4rem 0 .35rem; }
.editor .ro-photo .filebtn { display: inline-flex; align-items: center; margin: 0; }
.ro-thumb { display: block; max-width: 100%; max-height: 240px; margin: .6rem 0 .2rem; border: 1px solid var(--line); border-radius: .4rem; }
.ro-small { font-size: .9rem; margin: .4rem 0 0; }
.ro-err { color: var(--bad); font-weight: 700; margin: .3rem 0 .6rem; min-height: 1.2em; }
.ro-filters { display: flex; flex-wrap: wrap; gap: 0 .8rem; border: 1px solid var(--line); border-radius: .6rem; padding: .3rem 1rem .6rem; margin: 0 0 .8rem; background: var(--card); }
.ro-filters legend { font-weight: 700; padding: 0 .3rem; }
.ro-filters label { flex: 1 1 140px; min-width: 0; margin: .35rem 0; font-weight: 600; font-size: .95rem; }
.ro-filters select { display: block; width: 100%; box-sizing: border-box; margin-top: .25rem; min-height: 44px; padding: .5rem .6rem; border: 1px solid #8fa79c; border-radius: .4rem; font: inherit; font-weight: 400; background: #fff; color: var(--ink); }
.ro-totals { display: flex; flex-wrap: wrap; gap: .6rem; margin: 0 0 .6rem; }
.ro-stat { flex: 1 1 130px; border: 1px solid var(--line); border-radius: .6rem; background: var(--card); padding: .5rem .85rem; }
.ro-stat .k { margin: 0; font-size: .9rem; font-weight: 600; color: var(--muted); }
.ro-stat .v { margin: .1rem 0 0; font-size: 1.45rem; font-weight: 800; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.ro-scroll { max-width: 100%; overflow-x: auto; margin: .4rem 0 .6rem; border: 1px solid var(--line); border-radius: .5rem; background: var(--card); }
.ro-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.ro-table th, .ro-table td { padding: .4rem .55rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.ro-table thead th { font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); background: var(--bg); }
.ro-table .n { text-align: right; white-space: nowrap; }
.ro-table .nw { white-space: nowrap; }
.ro-table td.nw button { margin: .15rem 0; }
.ro-sum th, .ro-sum td { font-weight: 800; border-top: 2px solid var(--line); }
.ro-note { color: var(--muted); font-size: .88rem; }
.ro-none { color: var(--muted); font-size: .9rem; }
.ro-mini { display: block; width: 52px; height: 52px; object-fit: cover; border: 1px solid var(--line); border-radius: .3rem; background: var(--bg); }
.ro-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; align-items: start; }
@media (max-width: 900px) { .ro-two { grid-template-columns: 1fr; } }
.ro-h2 { font-size: 1.2rem; margin: .4rem 0 .3rem; }
.ro-cats { list-style: none; margin: 0 0 .6rem; padding: 0; }
.ro-cats li { display: flex; justify-content: space-between; align-items: center; gap: .6rem; padding: .25rem 0; border-top: 1px dashed var(--line); }
.ro-cats li:first-child { border-top: 0; }
.ro-cats span { overflow-wrap: anywhere; min-width: 0; }
.tips h2 { margin-top: 1.4rem; }
.tips ol { padding-left: 1.3rem; }

/* printed report (only shown when printing) */
#print-sheet { display: none; }
.ps { font-family: Arial, Helvetica, sans-serif; color: #111; font-size: 9.5pt; line-height: 1.3; }
.ps h2 { margin: 0 0 .1rem; font-size: 16pt; }
.ps h3 { margin: .7rem 0 .2rem; font-size: 11pt; }
.ps-d { margin: .1rem 0 .4rem; color: #444; font-size: 8.5pt; }
.ps-f { margin: .2rem 0 .5rem; font-size: 10.5pt; }
.ps-t { width: 100%; border-collapse: collapse; }
.ps-t th, .ps-t td { border-bottom: 1px solid #ccc; padding: .12rem .35rem; text-align: left; vertical-align: top; }
.ps-t thead th { border-bottom: 2px solid #222; font-size: 8pt; text-transform: uppercase; letter-spacing: .04em; }
.ps-t .n { text-align: right; white-space: nowrap; }
.ps-t .nw { white-space: nowrap; }
.ps-t tr { break-inside: avoid; }
.ps-tot th, .ps-tot td { border-top: 2px solid #222; font-weight: 800; }
.ps-c { width: auto; min-width: 60%; }
.ps-note { color: #444; font-size: 8pt; }
.ps-img { display: block; max-width: 64px; max-height: 64px; border: 1px solid #ccc; }

@media print {
  body[data-print="report"] #panel-receipts, body[data-print="report"] #print-sheet { display: block !important; }
  body[data-print="report"] .ps-t thead { display: table-header-group; }
}
