/* THIS IS FLORIDA: Free Home Inventory */
.row2 { display: grid; gap: 0 .8rem; grid-template-columns: 1fr 1fr; }
@media (max-width: 560px) { .row2 { grid-template-columns: 1fr; } }
.hi-save { margin: 0 0 1rem; padding: .6rem .85rem; border-left: 4px solid var(--danger); background: #fbecea; max-width: 70ch; }
.hi-err { color: var(--danger); font-weight: 600; margin: .3rem 0; min-height: 1.2em; }
.hi-err:empty { min-height: 0; margin: 0; }
.hi-ph-h { font-weight: 700; margin: .6rem 0 .3rem; }
.app .filebtn { display: inline-flex; margin: 0; box-sizing: border-box; }
.hi-photos .toolbar { margin: .2rem 0 .5rem; }
.hi-nophotos .toolbar, .hi-nophotos .hi-thumbs { display: none; }
.hi-thumbs { display: flex; flex-wrap: wrap; gap: .6rem; margin: 0 0 .5rem; }
.hi-thumbs:empty { margin: 0; }
.hi-th { margin: 0; display: flex; flex-direction: column; gap: .3rem; width: 96px; }
.hi-th img { width: 96px; height: 96px; object-fit: cover; border-radius: .4rem; border: 1px solid var(--line); background: #eef3f0; }
.hi-th button { padding: .3rem .4rem; font-size: .9rem; }
.hi-sum p { margin: 0 0 .6rem; font-size: 1.05rem; }
.hi-filter { max-width: 360px; }
.hi-filter label { margin-top: 0; }
.hi-room { margin: 0 0 1rem; }
.hi-room-h { font-size: 1.15rem; margin: .6rem 0 .4rem; }
.hi-room-t { display: block; font-size: .9rem; font-weight: 600; color: var(--muted); margin-top: .15rem; }
.hi-items { list-style: none; margin: 0; padding: 0; }
.hi-item { display: flex; gap: .8rem; align-items: flex-start; border: 1px solid var(--line); border-radius: .6rem; background: var(--card); padding: .7rem .8rem; margin: 0 0 .6rem; }
.hi-item-ph { display: flex; flex-wrap: wrap; gap: .3rem; flex: 0 0 auto; max-width: 150px; }
.hi-item-ph img { width: 72px; height: 72px; object-fit: cover; border-radius: .35rem; border: 1px solid var(--line); background: #eef3f0; }
.hi-more { font-size: .85rem; color: var(--muted); align-self: center; }
.hi-item-main { flex: 1 1 auto; min-width: 0; }
.hi-item-name { font-weight: 700; margin: 0 0 .2rem; font-size: 1.05rem; overflow-wrap: anywhere; }
.hi-item-meta, .hi-item-notes { margin: 0 0 .25rem; color: var(--muted); font-size: .92rem; overflow-wrap: anywhere; }
.hi-item-money { margin: 0 0 .4rem; display: flex; flex-wrap: wrap; gap: .2rem 1rem; }
.hi-item .toolbar { margin: 0; }
@media (max-width: 480px) { .hi-item { flex-direction: column; } .hi-item-ph { max-width: none; } .hi-item-ph img { width: 64px; height: 64px; } }
.hi-empty { padding: 1rem; border: 1px dashed var(--line); border-radius: .6rem; }
.hi-roomrow { display: flex; flex-wrap: wrap; gap: .2rem .6rem; align-items: flex-end; border-top: 1px dashed var(--line); padding: .3rem 0 .5rem; }
.hi-roomrow:first-child { border-top: 0; }
.hi-roomrow label { flex: 1 1 160px; min-width: 0; margin: .3rem 0 0; }
#panel-items fieldset, #panel-totals fieldset, .layout > * { min-width: 0; }
.hi-roomct { color: var(--muted); font-size: .9rem; flex-basis: 100%; }
.hi-h2 { font-size: 1.2rem; margin: .3rem 0 .6rem; }
.hi-tablewrap { overflow-x: auto; max-width: 100%; }
.hi-t { width: 100%; border-collapse: collapse; background: var(--card); }
.hi-t th, .hi-t td { border: 1px solid var(--line); padding: .5rem .6rem; text-align: left; }
.hi-t thead th { background: #e6f2ec; }
.hi-t tfoot th, .hi-t tfoot td { font-weight: 700; background: #f1f5f3; }
.hi-t .n, .hi-rt .n { text-align: right; white-space: nowrap; }
.hi-cap { caption-side: bottom; text-align: left; color: var(--muted); font-size: .9rem; padding-top: .4rem; }
.hi-notice { border-left: 4px solid var(--brand); background: #e6f2ec; padding: .7rem .95rem; margin: 0 0 1rem; max-width: 80ch; }
.hi-notice p { margin: 0; line-height: 1.55; }
.hi-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: .8rem; margin: 0 0 .6rem; }
.hi-card { border: 1px solid var(--line); border-radius: .6rem; background: var(--card); padding: .8rem 1rem; }
.hi-card h2 { font-size: 1.05rem; margin: 0 0 .3rem; }
.hi-card p { margin: 0 0 .6rem; line-height: 1.5; }
.hi-storage { max-width: 80ch; margin: .6rem 0; }
.hi-storage p { margin: 0; }
.hi-danger { margin: .6rem 0 1.2rem; }
.hi-paper { font-family: Arial, Helvetica, sans-serif; font-size: 14px; max-width: 900px; padding: 1.4rem 1.5rem; }
.hi-rh { margin: 0 0 .2rem; font-size: 1.4rem; }
.hi-rd { margin: .2rem 0 .6rem; color: #444; font-size: .85rem; }
.hi-rtot { font-weight: 700; margin: 0 0 .6rem; }
.hi-rroom h3 { font-size: 1.05rem; margin: .9rem 0 .3rem; }
.hi-rroom h3 span { font-weight: 400; font-size: .9rem; color: #333; }
.hi-rt { width: 100%; border-collapse: collapse; table-layout: fixed; }
.hi-rt th, .hi-rt td { border: 1px solid #999; padding: .35rem .45rem; text-align: left; vertical-align: top; overflow-wrap: anywhere; }
.hi-rt th { background: #f1f5f3; }
.hi-rt th:nth-child(1) { width: 140px; }
.hi-rt th:nth-child(3), .hi-rt th:nth-child(4) { width: 100px; }
.hi-rph img { width: 64px; height: 64px; object-fit: cover; margin: 0 .2rem .2rem 0; border: 1px solid #bbb; }
.hi-rn { color: #444; }
@media (max-width: 560px) { .hi-paper { padding: 1rem .8rem; } .hi-rt th:nth-child(1) { width: 76px; } .hi-rt th:nth-child(3), .hi-rt th:nth-child(4) { width: 82px; } .hi-rph img { width: 56px; height: 56px; } }
@media print {
  body[data-print="report"] #panel-backup { display: block !important; }
  body[data-print="report"] .hi-paper { font-size: 12px; }
  body[data-print="report"] .hi-rroom { break-inside: auto; }
  body[data-print="report"] .hi-rt tr { break-inside: avoid; }
  body[data-print="report"] .hi-rroom h3 { break-after: avoid; }
}
