.mh-tabs,.mh-acts { display:flex;flex-wrap:wrap;align-items:center;gap:.6rem;margin:.9rem 0; }
.mh-tabs { padding-bottom:1rem;border-bottom:1px solid var(--line); }
.mh-tabs .btn,.mh-acts .btn { white-space:normal;max-width:100%; }
.mh-filters,.mh-config { display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,12rem),1fr));gap:1rem;align-items:end;margin:1rem 0; }
.mh-filters .field,.mh-config .field { min-width:0; }
.mh-config .mh-acts,.mh-config p { grid-column:1/-1; }
.mh-cards { display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,19rem),1fr));gap:1rem; }
.mh-card { border:1px solid var(--line);border-radius:1rem;padding:1.1rem;min-width:0;background:var(--n-0); }
.mh-card-title { display:flex;flex-wrap:wrap;gap:.5rem;justify-content:space-between; }
.mh-card-title strong,.mh-card p { overflow-wrap:anywhere; }
.mh-value { font-size:1.3rem;font-weight:700;color:#174c93; }
#money-hub { min-width:0;max-width:100%; }
#money-hub table td { overflow-wrap:anywhere; }
@media(max-width:40rem){.mh-tabs .btn{flex:1 1 8rem;}.mh-acts .btn{flex:1 1 8rem;}.mh-filters{grid-template-columns:1fr 1fr;}.mh-filters .btn{grid-column:1/-1;} .mh-filters input,.mh-filters select{width:100%;min-width:0;}}
#money-hub .tbl { table-layout:fixed;width:100%; }
#money-hub .table-sort { white-space:normal; }
#money-hub .tbl td { white-space:normal;min-width:0; }
@media(max-width:760px){
 #money-hub .table-wrap { overflow-x:visible; }
 #money-hub .tbl,#money-hub .tbl tbody { display:block; }
 #money-hub .tbl thead { display:none; }
 #money-hub .tbl tbody tr { display:grid;grid-template-columns:1fr;border:1px solid var(--line);border-radius:.8rem;margin-bottom:1rem;padding:.6rem; }
 #money-hub .tbl tbody td { display:block;width:auto;text-align:left;padding:.55rem;border:0; }
 #money-hub .tbl tbody td::before { content:attr(data-label);display:block;font-size:.75rem;font-weight:700;color:var(--text-muted);margin-bottom:.3rem; }
}
