/* THIS IS FLORIDA: Electric Bill Appliance Cost Calculator (additions to app.css) */
.u-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; }
.u-layout { display: flex; flex-wrap: wrap; gap: 1.25rem; align-items: flex-start; }
.u-editor { flex: 1 1 380px; min-width: 0; max-width: 640px; }
.u-side { flex: 999 1 340px; min-width: 0; }
.u-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0 .8rem; align-items: end; }
.editor .u-grid label { margin: .4rem 0; }
.editor input[aria-invalid="true"] { border-color: var(--bad); background: #fbeeed; }
.u-bad { color: var(--bad); font-weight: 700; margin: .2rem 0; }
.u-item { border-top: 1px dashed var(--line); padding: .5rem 0 .3rem; }
.u-item:first-child { border-top: 0; padding-top: 0; }
.u-item-h { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .4rem; margin: .2rem 0; }
.u-item-h h3 { margin: 0; font-size: 1.05rem; }
.u-line { margin: .2rem 0 .3rem; font-weight: 600; color: var(--brand); font-variant-numeric: tabular-nums; }
.u-stats { display: flex; flex-wrap: wrap; gap: .6rem; margin: 0 0 .8rem; }
.u-stat { flex: 1 1 150px; border: 1px solid var(--line); border-radius: .6rem; background: var(--card); padding: .6rem .9rem; min-width: 0; }
.u-stat .k { margin: 0; font-size: .92rem; font-weight: 600; color: var(--muted); }
.u-stat .v { margin: .1rem 0 0; font-size: 1.4rem; font-weight: 800; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.u-stat .d { margin: .25rem 0 0; font-size: .88rem; color: var(--muted); overflow-wrap: anywhere; }
.u-stat.is-main { flex-basis: 100%; border-color: var(--brand); background: #e6f2ec; }
.u-stat.is-main .v { font-size: 1.8rem; }
.u-msg { margin: 0 0 .8rem; padding: .55rem .85rem; border-left: 4px solid var(--brand); background: #e6f2ec; max-width: 70ch; }
.u-msg.is-bad { border-left-color: var(--bad); background: #fbeeed; color: #7a1f1a; font-weight: 700; }
.u-h2 { font-size: 1.2rem; margin: 1rem 0 .4rem; }
.u-tbl { overflow: auto; max-height: 26rem; border: 1px solid var(--line); border-radius: .5rem; background: var(--card); margin: 0 0 .8rem; }
.u-tbl:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.u-tbl table { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
.u-tbl th, .u-tbl td { padding: .4rem .6rem; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
.u-tbl thead th { position: sticky; top: 0; background: #e6f2ec; z-index: 1; font-size: .9rem; }
.u-tbl .n { text-align: right; }
.u-tbl tr.is-best td, .u-tbl tr.is-best th { background: #eef7f1; font-weight: 700; }
.u-tag { display: inline-block; font-size: .8rem; font-weight: 700; padding: .1rem .5rem; border-radius: 999px; background: #fdf6e3; border: 1px solid #c9a227; color: #5c4a0c; }
.u-tag.is-best { background: var(--brand); border-color: var(--brand); color: #fff; }
.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: 10pt; line-height: 1.3; }
.ps h2 { margin: 0 0 .1rem; font-size: 16pt; }
.ps h3 { margin: .7rem 0 .2rem; font-size: 11.5pt; }
.ps-d { margin: .1rem 0 .5rem; color: #444; font-size: 8.5pt; }
.ps-sum { border-collapse: collapse; margin: .2rem 0 .4rem; font-size: 11pt; }
.ps-sum th { text-align: left; font-weight: 400; padding: .1rem 1.2rem .1rem 0; }
.ps-sum td { text-align: right; font-weight: 700; padding: .1rem 0; }
.ps-t { width: 100%; border-collapse: collapse; }
.ps-t th, .ps-t td { border-bottom: 1px solid #ccc; padding: .1rem .35rem; 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 { break-inside: avoid; }
.ps-t tr.is-best td, .ps-t tr.is-best th { font-weight: 700; }
.ps ul { margin: .2rem 0 .5rem 1.2rem; padding: 0; }
@media print {
  body[data-print="sheet"] #print-sheet { display: block !important; }
  body[data-print="sheet"] .ps-t thead { display: table-header-group; }
}
.u-ex-note { margin: 0 0 .8rem; padding: .55rem .85rem; border-left: 4px solid #c9a227; background: #fdf6e3; }
.u-side .editor label { margin: 0 0 .8rem; max-width: 22rem; }
.u-editor { flex-basis: 440px; }
