/* THIS IS FLORIDA: Free Rent vs Buy Calculator (additions to app.css) */
.rb-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; }
.rb-note { margin: 0 0 1rem; padding: .6rem .85rem; border-left: 4px solid var(--brand); background: #e6f2ec; max-width: 70ch; }
.rb-layout { display: flex; flex-wrap: wrap; gap: 1.25rem; align-items: flex-start; }
.rb-editor { flex: 999 1 520px; min-width: 0; }
.rb-side { flex: 1 1 340px; min-width: 0; }
.editor legend { font-size: 1.05rem; }
.rb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0 .9rem; align-items: end; }
.editor .rb-grid label { margin: .45rem 0; font-size: .92rem; }
.editor input[aria-invalid="true"] { border: 2px solid var(--bad); }
.rb-err { color: var(--bad); margin: .2rem 0; }
.rb-errs ul { padding-left: 1.2rem; }
.rb-empty { padding: .8rem 1rem; border: 1px dashed var(--line); border-radius: .6rem; background: var(--card); color: var(--muted); }
.rb-h2 { font-size: 1.25rem; margin: .6rem 0 .5rem; }
.rb-h3 { font-size: 1.05rem; margin: 1rem 0 .3rem; }
.rb-stat { border: 1px solid var(--line); border-radius: .6rem; background: var(--card); padding: .6rem .9rem; }
.rb-stat .k { margin: 0; font-size: .92rem; font-weight: 600; color: var(--muted); }
.rb-stat .v { margin: .1rem 0 0; font-size: 1.55rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.rb-stat .s { margin: 0; color: var(--muted); font-size: .9rem; }
.rb-dl { margin: 0; border: 1px solid var(--line); border-radius: .6rem; background: var(--card); padding: .2rem .9rem; }
.rb-dl div { display: flex; justify-content: space-between; gap: .6rem; padding: .3rem 0; border-top: 1px dashed var(--line); }
.rb-dl div:first-child { border-top: 0; }
.rb-dl dt { color: var(--muted); }
.rb-dl dd { margin: 0; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rb-dl .tot dt { color: var(--ink); font-weight: 700; }
.rb-verdict { margin: .9rem 0 0; padding: .6rem .85rem; border-left: 4px solid var(--brand); background: #e6f2ec; font-weight: 700; }
.rb-tablewrap { max-width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: .5rem; background: var(--card); }
.rb-tablewrap:empty { display: none; }
.rb-t { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; font-size: .95rem; }
.rb-cap { text-align: left; font-weight: 700; padding: .5rem .6rem; }
.rb-t th, .rb-t td { padding: .35rem .6rem; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
.rb-t thead th { background: #eef3f0; white-space: normal; min-width: 6.5em; vertical-align: bottom; }
.rb-t .n { text-align: right; }
#panel-years .toolbar { margin: 0 0 .6rem; }
.tips h2 { margin-top: 1.4rem; }
.tips ol { padding-left: 1.3rem; }

/* the one-page printed sheet (only shown when printing) */
#print-sheet { display: none; }
.ps { font-family: Arial, Helvetica, sans-serif; color: #111; font-size: 8.5pt; line-height: 1.25; }
.ps h2 { margin: 0 0 .1rem; font-size: 15pt; }
.ps p { margin: .2rem 0 .3rem; }
.ps-d { color: #444; font-size: 8pt; }
.ps-msg { font-weight: 700; font-size: 10pt; }
.ps-t { width: 100%; border-collapse: collapse; margin: .2rem 0 .3rem; }
.ps-t th, .ps-t td { border-bottom: 1px solid #ccc; padding: .05rem .3rem; text-align: left; vertical-align: bottom; }
.ps-t thead th { border-bottom: 2px solid #222; font-size: 7.5pt; }
.ps-t .n { text-align: right; white-space: nowrap; }
.ps-t tr { break-inside: avoid; }

@media print {
  body[data-print="rentbuy"] #panel-compare, body[data-print="rentbuy"] #print-sheet { display: block !important; }
}
