/* תוספות לכלכלת מעון */
.bar { display: inline-block; width: 100%; min-width: 80px; height: 10px; border-radius: 6px; background: var(--soft); overflow: hidden; vertical-align: middle; }
.bar i { display: block; height: 100%; border-radius: 6px; }
.bar i.good { background: #2f9e6e; }
.bar i.warn { background: #e0a100; }
.bar i.bad { background: #d64545; }
.bar i.time { background: #c9a27e; }
.bar i.muted { background: var(--line-2); }

.budget-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.bcard { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; color: inherit; text-decoration: none; }
a.bcard:hover { border-color: var(--accent); box-shadow: var(--shadow); }
.bcard h3 { margin: 0; font-size: 1.05rem; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.bcard h3 .pct { font-size: 1.25rem; font-weight: 800; }
.bcard .pct.bad { color: #c03434; }
.bcard .pct.warn { color: #b07d00; }
.bcard .pct.good { color: #24855b; }
.bcard dl { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; margin: 0; font-size: .9rem; }
.bcard dt { color: var(--muted); }
.bcard dd { margin: 0; text-align: left; direction: ltr; }
.time-row { display: flex; align-items: center; gap: 10px; font-size: .9rem; color: var(--muted); margin-bottom: 12px; }
.time-row .bar { max-width: 420px; }

.filters { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: end; }
.filters label { font-size: .82rem; }
.filters input[type=search] { min-width: 220px; }
a.sort { color: inherit; text-decoration: none; white-space: nowrap; }
a.sort:hover { text-decoration: underline; }
.pager { display: flex; gap: 10px; align-items: center; justify-content: center; padding: 12px; }
td.amt, th.amt { text-align: left; white-space: nowrap; }
td.c, th.c { text-align: center; }
tr.paid td { color: var(--muted); }
tr.problem td { background: var(--bad-soft); }
.reason { color: #b53030; font-size: .88rem; }
.st { display: inline-block; font-size: .78rem; padding: 1px 8px; border-radius: 10px; background: var(--soft); color: var(--muted); white-space: nowrap; }
.st.paid { background: var(--good-soft); color: var(--good); }
.st.topay { background: var(--warn-soft); color: var(--warn); }
.st.cancel { background: var(--bad-soft); color: var(--bad); text-decoration: line-through; }
.st.warn { background: var(--bad-soft); color: var(--bad); }
table.list tfoot td { font-weight: 700; background: var(--panel-2); }
.pivot td.amt, .pivot th.amt { font-size: .86rem; }
.pivot th { font-size: .82rem; }
.inv-form .form-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.month-note { font-size: .85rem; color: var(--accent-2); margin-top: 4px; }
.check-msg { font-size: .85rem; margin-top: 4px; }
.check-msg.ok { color: #23704d; }
.check-msg.err { color: #b53030; }
.day-group { margin-bottom: 18px; }
.day-group .card-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.sub-rows td { font-size: .85rem; color: var(--muted); padding-top: 2px; padding-bottom: 2px; }
.report-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.report-links a { display: block; padding: 14px 16px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); color: inherit; text-decoration: none; }
.report-links a:hover { border-color: var(--accent); }
.report-links b { display: block; margin-bottom: 4px; }
.report-links span { font-size: .87rem; color: var(--muted); }
@media print {
  .filters, .pager, .ph-actions, header.top { display: none !important; }
  .bar { border: 1px solid #999; }
}
