/* Houses (Story 5682, 2026-11-02). The board and the record page wear the Vehicles look
   (vehicles.css is loaded first); this sheet adds only what a house has that a vehicle
   does not: the breadcrumb over the title, the clickable figures, and the cards of the
   Mortgage, Property Tax, Insurance, Log and House Facts tabs. */

/* ---- the header: the Houses trail over the title ---- */
.hs-titles { display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto; }
.hs-titles h1 { flex: 0 0 auto; }
.hs-titles nav.pcr { --pcr-ink: #C9D3E0; --pcr-ink-hover: #fff; }

/* ---- the House tab: the figures are buttons that open their tab ---- */
button.hs-kpi { font: inherit; text-align: left; cursor: pointer; color: inherit; }
button.hs-kpi:hover { background: #EEF4FB; border-color: #C9D8EC; }

/* ---- the five list tabs ---- */
.hs-list { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.hs-filter { min-width: 170px; }
.hs-foldall { font-size: 15px; line-height: 1; padding: 4px 10px; }
.hs-foldall[hidden] { display: none; }
.hs-more { margin: 12px auto 0; display: block; }

.hs-card { border: 1px solid #E7E7EC; border-left: 4px solid #0A66C2; border-radius: 8px; background: #fff; }
.hs-card-head {
    display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; padding: 9px 12px;
    cursor: pointer; user-select: none;
}
.hs-chev { width: 0; height: 0; border-left: 5px solid transparent; border-right: 5px solid transparent;
           border-top: 6px solid #0A66C2; transition: transform .15s; align-self: center; }
.hs-card.collapsed .hs-chev { transform: rotate(-90deg); }
.hs-card.collapsed > .hs-card-body { display: none; }
.hs-card-title { font-size: 14px; font-weight: 600; color: #1B1B1F; flex: 1 1 160px; min-width: 0; overflow-wrap: anywhere; }
.hs-card-badge { font-size: 11px; font-weight: 600; color: #1F4E8C; background: #E5F0FF; border-radius: 999px; padding: 1px 8px; }
.hs-card-amount { font-size: 13px; font-weight: 600; color: #1B1B1F; }
.hs-card-body { padding: 0 12px 10px 27px; }
.hs-card-rows { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 4px 16px; }
.hs-card-rows div { min-width: 0; }
.hs-card-rows dt { font-size: 11px; color: #667; text-transform: uppercase; letter-spacing: .3px; }
.hs-card-rows dd { margin: 0; font-size: 13px; color: #222; white-space: pre-wrap; overflow-wrap: anywhere; }
.hs-card-btns { display: flex; gap: 6px; justify-content: flex-end; margin-top: 8px; }
.hs-card-btns .ed-btn { padding: 4px 10px; font-size: 11px; }

/* The Sale tab's summary of the sale, above its closing costs (Story 5684). */
.hs-sale-head { margin-top: 10px; border-left-color: #2E7D32; background: #F6FBF6; }
.hs-sale-head .hs-chev { border-top-color: #2E7D32; }

/* A grouped list (Property Tax by year): a folding band per group, its cards inside. */
.hs-group { border: 1px solid #D5DEEA; border-radius: 10px; background: #F6F9FD; }
.hs-group-head {
    display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; padding: 9px 12px;
    cursor: pointer; user-select: none;
}
.hs-group.collapsed .hs-group-head > .hs-chev { transform: rotate(-90deg); }
.hs-group.collapsed > .hs-group-body { display: none; }
.hs-group-title { font-size: 15px; font-weight: 700; color: #1B1B1F; flex: 1 1 120px; }
.hs-group-amount { font-size: 14px; font-weight: 700; color: #1B1B1F; }
.hs-group-body { display: flex; flex-direction: column; gap: 8px; padding: 0 10px 10px; }
.hs-group.is-closed { border-left: 4px solid #2E9E5B; }
.hs-group.is-closed > .hs-group-head .hs-card-badge { color: #15803D; background: #E3F5EA; }

/* The Transactions tab: linked accounts (tap one to show only its postings) and the postings. */
.ht-accts { display: flex; flex-direction: column; gap: 6px; }
.ht-acct { display: flex; align-items: center; gap: 8px; border: 1px solid #E7E7EC; border-radius: 8px; background: #fff; padding: 4px 8px 4px 4px; }
.ht-acct.is-on { border-color: #0A66C2; box-shadow: inset 4px 0 0 #0A66C2; }
.ht-acct-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 1px;
                font: inherit; text-align: left; background: none; border: 0; padding: 6px 8px; cursor: pointer; color: inherit; }
.ht-acct-name { font-size: 14px; font-weight: 600; color: #1B1B1F; overflow-wrap: anywhere; }
.ht-acct-meta { font-size: 12px; color: #667; }
.ht-unlink { padding: 4px 10px; font-size: 11px; flex: 0 0 auto; }
.ht-rows { display: flex; flex-direction: column; }
.ht-row { display: grid; grid-template-columns: 92px 1fr auto auto; gap: 4px 12px; align-items: center; padding: 8px 6px;
          border-bottom: 1px solid #EEF0F4; background: #fff; }
.ht-date { font-size: 13px; color: #445; }
.ht-desc { font-size: 13px; color: #1B1B1F; min-width: 0; overflow-wrap: anywhere; display: flex; flex-direction: column; }
.ht-sub { font-size: 11px; color: #667; }
.ht-amt { font-size: 13px; font-weight: 600; text-align: right; white-space: nowrap; }
.ht-amt.is-neg { color: #B42318; }
.ht-btns { display: flex; gap: 6px; }
.ht-btns .ed-btn { padding: 4px 10px; font-size: 11px; }
.ht-empty { font-size: 13px; color: #556; padding: 6px 4px; }
@media (max-width: 640px) {
    .ht-row { grid-template-columns: 1fr auto; }
    .ht-date { grid-column: 1 / -1; font-size: 12px; }
    .ht-btns { grid-column: 1 / -1; justify-content: flex-end; }
}

/* A finished thing (a paid-off loan, an ended policy, a paid tax year): a green edge, a tick
   and a quieter title -- never struck through. */
.hs-card.is-closed { border-left-color: #2E9E5B; }
.hs-card.is-closed .hs-card-title { color: #4B5563; font-weight: 500; }
.hs-card.is-closed .hs-card-badge { color: #15803D; background: #E3F5EA; }
.hs-tick { color: #15803D; font-weight: 700; }

@media print {
    .hs-card.collapsed > .hs-card-body, .hs-group.collapsed > .hs-group-body { display: block !important; }
    .hs-card-btns, .hs-chev, .hs-foldall, .hs-filter, .hs-more, .ht-btns, .ht-unlink { display: none !important; }
}

/* The Repairs tab: who did each repair, and its tied postings in a band that folds. */
.hs-rep { margin-top: 8px; display: flex; flex-direction: column; gap: 8px; }
.hs-rep-who { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.hs-rep-label { font-size: 11px; color: #667; text-transform: uppercase; letter-spacing: .3px; margin-right: 4px; }
.hs-rep-chips { display: inline-flex; flex-wrap: wrap; gap: 6px; flex: 1 1 200px; min-width: 0; }
.hs-rep-chip { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; background: #F1F3F8; border: 1px solid #DDE1EA;
               border-radius: 999px; padding: 2px 4px 2px 10px; overflow-wrap: anywhere; }
.hs-rep-chip-kind { font-size: 10px; color: #667; text-transform: uppercase; }
.hs-rep-chip-x { border: 0; background: transparent; color: #8A1C1C; font-size: 15px; line-height: 1; cursor: pointer; padding: 0 4px; }
.hs-rep-none { font-size: 12px; color: #889; }
.hs-rep-who .ed-btn, .hs-rep-sub .ed-btn { padding: 3px 9px; font-size: 11px; }
.hs-rep-sub { border: 1px solid #E7E7EC; border-radius: 6px; background: #FAFAFC; }
.hs-rep-sub-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; padding: 6px 10px; cursor: pointer; user-select: none; }
.hs-rep-sub-title { font-size: 13px; font-weight: 600; flex: 1 1 120px; }
.hs-rep-sub.collapsed .hs-chev { transform: rotate(-90deg); }
.hs-rep-sub.collapsed > .hs-rep-sub-body { display: none; }
.hs-rep-sub-body { padding: 0 10px 8px 10px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.hs-rep-sub-body > div { align-self: stretch; }
.hs-rep-post { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; padding: 5px 0; border-top: 1px solid #EEE; }
.hs-rep-post-text { flex: 1 1 220px; min-width: 0; font-size: 12px; overflow-wrap: anywhere; }
.hs-rep-post-btns { display: inline-flex; gap: 4px; }

/* The board: the note that Owned is hiding the houses you sold (2026-11-02). */
.hs-hidden-note { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: #8A5A00; }
.hs-hidden-note[hidden] { display: none; }
.hs-hidden-note .vh-chip { cursor: pointer; }
