/* My money, Family, Group and Event or activity (Prompt 2610): households.html, household-space.html, household-invitation.html. */
.hh-card, .hh-section { overflow-wrap: anywhere; min-width: 0; }
.hh-card { border: 1px solid var(--border, #d8dee9); border-radius: 8px; padding: 0.8rem 1rem; margin: 0.7rem 0; background: var(--surface, #fff); }
.hh-card h3, .hh-card h4 { margin: 0 0 0.3rem; }
.hh-waiting { border-color: #1C3672; background: var(--bg, #f6f8fb); }
.hh-section { margin: 1.4rem 0; }
.hh-section > h3, .hh-subsection > h4 { margin: 0 0 0.5rem; }
.hh-subsection { margin: 1.1rem 0; }
.hh-meta { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.25rem 0 0.4rem; }
.hh-chip { display: inline-block; padding: 0.1rem 0.55rem; border-radius: 999px; background: #eef1f7; color: #1C3672; font-size: 0.85rem; }
.hh-kind { background: #1C3672; color: #fff; }
.hh-wait { background: #fff4d6; color: #5c4400; }
.hh-warn { background: #fff4d6; border: 1px solid #e6c860; border-radius: 6px; padding: 0.6rem 0.8rem; color: #5c4400; margin: 0.6rem 0; }
.hh-line { font-weight: 600; margin: 0.4rem 0 0.8rem; }
.hh-text { margin: 0.35rem 0; }
.hh-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 0.6rem; align-items: center; }
.hh-actions button, .hh-card button, .hh-form button, .hh-tab, a.hh-open { min-height: 44px; }
a.hh-open { display: inline-flex; align-items: center; padding: 0 1rem; border: 1px solid #1C3672; border-radius: 6px; text-decoration: none; }
.hh-fieldset { border: 0; padding: 0; margin: 0 0 0.8rem; min-width: 0; }
.hh-fieldset legend { font-weight: 600; padding: 0; margin-bottom: 0.3rem; }
.hh-form label.hh-radio { display: flex; align-items: flex-start; gap: 0.5rem; margin: 0.4rem 0; font-weight: 400; }
.hh-form label.hh-radio input { width: auto; margin: 0.25rem 0 0; flex: 0 0 auto; }
.hh-field { margin: 0 0 0.8rem; }
.hh-field label { display: block; font-weight: 600; margin-bottom: 0.25rem; }
.hh-form input[type="text"], .hh-form input[type="email"], .hh-form input[type="date"], .hh-form select { width: 100%; max-width: 28rem; box-sizing: border-box; }
.hh-details { margin: 0.8rem 0; }
.hh-details > summary { cursor: pointer; font-weight: 600; min-height: 44px; display: flex; align-items: center; }
.hh-tabs { display: flex; flex-wrap: wrap; gap: 0.4rem; border-bottom: 1px solid var(--border, #d8dee9); margin: 0.6rem 0 1rem; }
.hh-tab { background: transparent; color: #1C3672; border: 1px solid transparent; border-bottom: 0; border-radius: 6px 6px 0 0; padding: 0 1rem; }
.hh-tab-on { background: #fff; border-color: var(--border, #d8dee9); font-weight: 600; box-shadow: inset 0 -3px 0 #3CBDC0; }
.hh-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 1rem; padding: 0.7rem 0; border-top: 1px solid var(--border, #d8dee9); min-width: 0; }
.hh-row:first-child { border-top: 0; }
.hh-row-main { flex: 1 1 14rem; min-width: 0; overflow-wrap: anywhere; }
.hh-row-main p { margin: 0.15rem 0; }
.hh-hidden .hh-row-title { opacity: 0.6; }
.hh-inline { width: 100%; }
.hh-seat { margin: 0.15rem 0; }
.hh-notice-row { padding: 0.7rem 0; border-top: 1px solid var(--border, #d8dee9); }
.hh-notice-row:first-of-type { border-top: 0; }
.hh-notice-row p { margin: 0.3rem 0; overflow-wrap: anywhere; }
.hh-unread strong::before { content: "New - "; color: #1C3672; }
#hh-msg p { margin: 0.4rem 0; }
@media (max-width: 480px) { .hh-tab { flex: 1 1 auto; } .hh-actions { width: 100%; } }

/* Entries (part 2) */
.hh-entry-bar { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; margin: 0.6rem 0; }
.hh-entry-bar > button, .hh-add { min-height: 44px; }
.hh-add { font-weight: 600; }
.hh-month { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.hh-month-label { min-width: 8rem; text-align: center; }
.hh-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.hh-chipbtn { min-height: 44px; padding: 0 0.9rem; background: transparent; color: #1C3672; border: 1px solid var(--border, #d8dee9); border-radius: 999px; }
.hh-chipbtn.hh-on { background: #1C3672; color: #fff; }
.hh-search { min-height: 44px; flex: 1 1 12rem; max-width: 22rem; box-sizing: border-box; }
.hh-totals-grid { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 0.6rem 0; }
.hh-total { flex: 1 1 8rem; border: 1px solid var(--border, #d8dee9); border-radius: 8px; padding: 0.5rem 0.8rem; background: var(--bg, #f6f8fb); }
.hh-total dt { font-size: 0.85rem; margin: 0; }
.hh-total dd { margin: 0; font-weight: 700; }
.hh-day h4 { margin: 1rem 0 0.3rem; }
.hh-entry { border: 1px solid var(--border, #d8dee9); border-radius: 8px; padding: 0.6rem 0.8rem; margin: 0.4rem 0; overflow-wrap: anywhere; min-width: 0; }
.hh-entry-top { display: flex; justify-content: space-between; gap: 0.8rem; align-items: baseline; }
.hh-amount { font-weight: 700; white-space: nowrap; }
.hh-line2 { margin: 0.15rem 0; }
.hh-history { border-top: 1px solid var(--border, #d8dee9); margin-top: 0.5rem; padding-top: 0.4rem; }
.hh-hist-row p { margin: 0.15rem 0; }
.hh-entry-form { border: 1px solid #1C3672; border-radius: 8px; padding: 0.8rem 1rem; margin: 0.8rem 0; background: var(--surface, #fff); }
.hh-kindbox { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 0.8rem; }
.hh-kindopt { flex: 1 1 6rem; display: flex; align-items: center; justify-content: center; gap: 0.4rem; min-height: 48px; border: 1px solid #1C3672; border-radius: 8px; cursor: pointer; font-weight: 600; }
.hh-kindopt input { margin: 0; }
.hh-form input[type="search"], .hh-form input[inputmode="decimal"] { width: 100%; max-width: 28rem; box-sizing: border-box; }
#hh-e-amount { font-size: 1.4rem; min-height: 52px; }
.hh-sticky { position: sticky; bottom: 0; background: var(--surface, #fff); padding: 0.6rem 0; }
@media (max-width: 480px) { .hh-sticky button { flex: 1 1 100%; } .hh-entry-top { flex-wrap: wrap; } .hh-month { width: 100%; justify-content: space-between; } }
.hh-kindopt { position: relative; text-align: center; padding: 0 0.3rem; }
.hh-kindopt input { position: absolute; opacity: 0; width: 100%; height: 100%; inset: 0; margin: 0; cursor: pointer; }
.hh-kindopt:has(input:checked) { background: #1C3672; color: #fff; }
.hh-kindopt:has(input:focus-visible) { outline: 3px solid #3CBDC0; outline-offset: 2px; }

/* Plan and trial */
.hh-plan-list { margin: 0.4rem 0; }
.hh-plan-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.2rem 1rem; padding: 0.5rem 0; border-top: 1px solid var(--border, #d8dee9); }
.hh-plan-row:first-child { border-top: 0; }
.hh-plan-row dt { font-weight: 600; margin: 0; flex: 1 1 12rem; min-width: 0; overflow-wrap: anywhere; }
.hh-plan-row dd { margin: 0; flex: 1 1 10rem; min-width: 0; overflow-wrap: anywhere; }
.hh-plan-full dd::before { content: "Full - "; font-weight: 700; }

/* Delete, cancel, download (H9) */
.hh-danger { border-color: #c4452f; border-width: 2px; }
.hh-danger-btn { background: #c4452f; border-color: #c4452f; color: #fff; }
.hh-danger-btn:disabled { opacity: 0.5; }
.hh-delete-banner { border-width: 2px; }
.hh-file { display: inline-block; margin: 0.3rem 0.6rem 0.3rem 0; }
.hh-file p { margin: 0.2rem 0; }

/* H6b reports */
.hh-chipgroup { width: 100%; }
.hh-chipgroup > p { margin: 0.3rem 0; font-weight: 600; }
.hh-weekrow { border-top: 1px solid var(--border, #d8dee9); padding: 0.5rem 0; }
.hh-weekrow:first-of-type { border-top: 0; }
.hh-day-card { border: 1px solid var(--border, #d8dee9); border-radius: 8px; padding: 0.5rem 0.8rem; margin: 0.4rem 0; overflow-wrap: anywhere; }
.hh-day-card.hh-worked { border-color: #1C3672; background: var(--bg, #f6f8fb); }
.hh-loss { color: #9b2c1c; font-weight: 700; }

/* Split and balances (H13) */
.hh-split { border: 1px dashed var(--border, #d8dee9); border-radius: 8px; padding: 0.6rem 0.8rem; margin: 0.6rem 0; }
.hh-split-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.8rem; min-height: 44px; }
.hh-split-row input[type="text"] { width: 8rem; max-width: 100%; box-sizing: border-box; min-height: 44px; }
.hh-split-line { font-style: italic; }
.hh-bal-owed { color: #1d6b3a; font-weight: 700; }
.hh-bal-owes { color: #9b2c1c; font-weight: 700; }
.hh-bal-settled { font-weight: 600; }
.hh-bal-sugg, .hh-bal-rec, .hh-bal-recs { margin: 1rem 0; }
.hh-rec-removed, .hh-rec-declined { opacity: 0.75; }

/* H14 temporary spaces */
.hh-state-badge { font-weight: 700; }
.hh-state-settling { background: #fff4d6; color: #5c4400; }
.hh-state-closed { background: #e4e8f1; color: #1C3672; }
.hh-state-archived { background: #e9e9e9; color: #444; }
.hh-state-banner { border-width: 2px; }
.hh-closebox { margin: 0.8rem 0; }

/* Events (Prompt 783): the Summary tab, the ticket form, claims and the fund. Cards and lines only, so a phone never scrolls sideways. */
.hh-ev { min-width: 0; }
.hh-ev-top { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 0.6rem 0; }
.hh-ev-tile { flex: 1 1 9rem; border: 1px solid var(--border, #d8dee9); border-radius: 8px; padding: 0.6rem 0.9rem; background: var(--bg, #f6f8fb); min-width: 0; }
.hh-ev-k { margin: 0; font-size: 0.85rem; }
.hh-ev-v { margin: 0; font-weight: 700; font-size: 1.15rem; overflow-wrap: anywhere; }
.hh-ev-good .hh-ev-v { color: #1d6b3a; }
.hh-ev-short .hh-ev-v { color: #9b2c1c; }
.hh-ev-tie { margin: 0.6rem 0; padding: 0.5rem 0.8rem; border-radius: 6px; font-weight: 600; }
.hh-ev-tie-ok { background: #e4f4ea; border: 1px solid #9ccfae; color: #1d5b33; }
.hh-ev-tie-bad { background: #fde8e6; border: 1px solid #e0a39c; color: #8b2418; }
.hh-ev-lines { list-style: none; margin: 0.3rem 0; padding: 0; }
.hh-ev-lines li { display: flex; justify-content: space-between; gap: 0.8rem; padding: 0.25rem 0; border-bottom: 1px solid var(--border, #e6eaf1); }
.hh-ev-lines li span { min-width: 0; overflow-wrap: anywhere; }
.hh-ev-lines li strong { white-space: nowrap; }
.hh-ev-lines li.hh-ev-sub { border-bottom: 0; padding-top: 0; }
.hh-ev-org, .hh-ev-sug { border-top: 1px solid var(--border, #e6eaf1); padding: 0.5rem 0; }
.hh-ev-org h5, .hh-ev-suggest h5 { margin: 0 0 0.2rem; }
.hh-ev-suggest { border: 2px dashed #c9a63a; border-radius: 8px; padding: 0.6rem 0.8rem; margin: 0.6rem 0; background: #fffaf0; }
.hh-claim-line { font-weight: 600; }
.hh-claim { color: #1a4f8a; }
.hh-gift { color: #555; }
.hh-claim-explain { margin: 0.4rem 0; }
.hh-ev-fundform { border: 1px solid var(--border, #d8dee9); border-radius: 8px; padding: 0.7rem 1rem; margin: 0.7rem 0; }
@media (max-width: 480px) { .hh-ev-tile { flex: 1 1 100%; } .hh-ev-lines li { flex-wrap: wrap; } }

/* Cash held by a person (Prompt 814) */
.hh-cash-line { color: var(--text); }
.hh-cash-block .hh-cash-line { margin: 4px 0; }
.hh-cash-explain, .hh-cash-held { margin: 6px 0 10px; }
.hh-cash-form { margin-top: 10px; }
.hh-cash-person dl { margin: 6px 0; }
