/* THIS IS FLORIDA: Free Break-Even and Profit Margin Calculator (additions to app.css) */
.cx-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; }
.cx-layout { display: flex; flex-wrap: wrap; gap: 1.25rem; align-items: flex-start; }
.cx-form { flex: 1 1 320px; min-width: 0; max-width: 560px; }
.cx-out { flex: 1.2 1 340px; min-width: 0; }
.editor .hint { margin: -.2rem 0 .6rem; font-size: .9rem; }
.cx-results { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .6rem; margin: 0 0 .8rem; }
.cx-stat { border: 1px solid var(--line); border-radius: .6rem; background: var(--card); padding: .6rem .9rem; }
.cx-stat .k { margin: 0; font-size: .92rem; font-weight: 600; color: var(--muted); }
.cx-stat .v { margin: .1rem 0 0; font-size: 1.5rem; font-weight: 800; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.cx-stat .s { margin: .15rem 0 0; font-size: .88rem; color: var(--muted); }
.cx-stat.big { border-color: var(--brand); background: #e6f2ec; }
.cx-msg { grid-column: 1 / -1; margin: 0; padding: .6rem .85rem; border-left: 4px solid var(--brand); background: #e6f2ec; }
.cx-msg.is-bad { border-left-color: var(--bad); background: #fbeeed; color: #7a1f1a; font-weight: 700; }
.cx-explain { margin-top: 1rem; border: 1px solid var(--line); border-radius: .6rem; background: var(--card); padding: .4rem 1rem .6rem; line-height: 1.55; }
.cx-explain h2, .cx-h2 { font-size: 1.2rem; margin: .8rem 0 .4rem; }
.cx-ct { font-weight: 600; font-size: .92rem; color: var(--muted); margin-left: .3rem; }
.cx-row { display: flex; flex-wrap: wrap; gap: 0 .7rem; align-items: flex-end; border-top: 1px dashed var(--line); padding: .2rem 0 .3rem; }
.cx-row:first-child { border-top: 0; }
.editor .cx-row label { margin: .35rem 0; font-size: .9rem; }
.cx-name { flex: 3 1 200px; min-width: 0; }
.cx-amt { flex: 1 1 110px; min-width: 0; }
.cx-row .danger { margin: .35rem 0; }
@media (max-width: 560px) { .cx-name { flex: 1 0 100%; } }
.cx-tbl-wrap { overflow-x: auto; max-width: 100%; border: 1px solid var(--line); border-radius: .6rem; background: var(--card); margin-bottom: .8rem; }
.cx-tbl { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; min-width: 560px; }
.cx-tbl th, .cx-tbl td { padding: .45rem .6rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.cx-tbl .n { text-align: right; white-space: nowrap; }
.cx-tbl thead th { padding: .2rem .25rem; }
.cx-tbl thead button { width: 100%; border: 0; background: transparent; text-align: inherit; padding: .4rem .45rem; }
.cx-tbl th[aria-sort="ascending"] button::after { content: " \25B2"; font-size: .75em; }
.cx-tbl th[aria-sort="descending"] button::after { content: " \25BC"; font-size: .75em; }
.cx-tbl .is-bad { color: var(--bad); font-weight: 700; }
.cx-tbl tfoot td, .cx-tbl tfoot th { font-weight: 700; border-top: 2px solid var(--line); }
.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: 10.5pt; line-height: 1.35; }
.ps h2 { margin: 0 0 .1rem; font-size: 16pt; }
.ps h3 { margin: .8rem 0 .3rem; font-size: 12pt; }
.ps-d { margin: .1rem 0 .6rem; color: #444; font-size: 8.5pt; }
.ps-t { width: 100%; border-collapse: collapse; margin: .2rem 0 .5rem; }
.ps-t th, .ps-t td { border-bottom: 1px solid #ccc; padding: .15rem .4rem; text-align: left; vertical-align: top; }
.ps-t thead th { border-bottom: 2px solid #222; font-size: 8.5pt; text-transform: uppercase; letter-spacing: .04em; }
.ps-t .n { text-align: right; white-space: nowrap; }
.ps-t tr.key th, .ps-t tr.key td { font-weight: 800; border-top: 2px solid #222; }
.ps-t tr { break-inside: avoid; }
.ps-msg { margin: .3rem 0 .6rem; font-weight: 700; }

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