/* Owner 23 Nov 2026: Family Dues in the Amar theme (Amar blue #044c9d, white cards, Manrope). */
.cw .fd-summary{display:grid;grid-template-columns:repeat(3,minmax(150px,220px)) 1fr;gap:12px;align-items:stretch;padding:14px 20px;background:linear-gradient(180deg,#f3f8fe,#fff)}
.cw .fd-stat{background:#fff;border:1px solid #d6e4f2;border-radius:10px;padding:10px 14px;box-shadow:0 1px 2px #0b2a6612}
.cw .fd-stat small{display:block;color:#5b6f86;font-size:12px;font-weight:600;text-transform:uppercase;letter-spacing:.3px}
.cw .fd-stat b{display:block;color:#044c9d;font-size:21px;line-height:30px;font-variant-numeric:tabular-nums}
.cw .fd-stat span{color:#7a8ca1;font-size:12px}
.cw .fd-stat.fd-due{background:linear-gradient(135deg,#044c9d,#1a6fd0);border-color:#044c9d}
.cw .fd-stat.fd-due small,.cw .fd-stat.fd-due span{color:#d7e7fb}.cw .fd-stat.fd-due b{color:#fff}
.cw .fd-tip{margin:0;align-self:center;color:#36506d;font-size:13px;line-height:19px;padding-left:6px}
.cw .fd-headings{background:#fff;padding-left:72px;font-size:12.5px;text-transform:uppercase;letter-spacing:.3px}
.cw .fd-list{display:flex;flex-direction:column;gap:8px;padding:10px 14px 14px;background:#f6f9fc}
.cw .cw-family.fd-card{background:#fff;border:1px solid #d9e5f1;border-radius:12px;overflow:hidden;transition:box-shadow .15s,border-color .15s}
.cw .cw-family.fd-card:hover{border-color:#9cc3ec;box-shadow:0 3px 12px #0b2a6614}
.cw .cw-family.fd-card[open]{border-color:#044c9d;box-shadow:0 6px 20px #0b2a661f}
.cw .cw-family.fd-card>summary{padding:12px 46px 12px 16px;align-items:center;min-height:62px}
.cw .cw-family.fd-card>summary::before{content:none}
.cw .fd-who{display:flex;align-items:center;gap:11px;min-width:0}.cw .fd-who>span{min-width:0}
.cw .fd-who b,.cw .fd-who a{color:#044c9d;font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:block}
.cw .fd-avatar{flex:none;width:38px;height:38px;border-radius:50%;display:grid;place-items:center;font-style:normal;font-weight:800;font-size:13px;color:#fff;background:linear-gradient(135deg,#1a6fd0,#044c9d)}
.cw .fd-avatar.fd-sm{width:30px;height:30px;font-size:11px;background:linear-gradient(135deg,#5ea3e8,#2a6fc2)}
.cw .fd-phone a{color:#24384f;font-weight:600}.cw .fd-muted{color:#8796a8}
.cw .fd-chip{display:inline-block;font-style:normal;background:#e8f1fb;color:#1d4f86;border-radius:999px;padding:1px 9px;font-size:12px;font-weight:600}
.cw .fd-chip.fd-head{background:#044c9d;color:#fff}
.cw .fd-warn{font-style:normal;color:#b45309;font-weight:700}
.cw .fd-amount{text-align:right}.cw .fd-amount small{color:#5b6f86}
.cw .fd-card.fd-has-due .fd-amount>.cw-due-amount{font-size:16px}
.cw .fd-chevron{position:absolute;right:16px;top:50%;width:22px;height:22px;margin-top:-11px;border-radius:50%;background:#e8f1fb;transition:transform .2s}
.cw .fd-chevron::after{content:"";position:absolute;left:7px;top:6px;width:6px;height:6px;border-right:2px solid #044c9d;border-bottom:2px solid #044c9d;transform:rotate(45deg)}
.cw .fd-card[open] .fd-chevron{transform:rotate(180deg);background:#044c9d}.cw .fd-card[open] .fd-chevron::after{border-color:#fff}
.cw .fd-detail{border-top:1px solid #e3ecf5;background:#f8fbfe;padding:12px 16px 16px}
.cw .fd-house{border:0;padding:0}
.cw .fd-house-head{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin-bottom:10px}
.cw .fd-house-head>div:first-child{flex:1;min-width:180px}.cw .fd-house-head h3{margin:0;font-size:15px;color:#044c9d}
.cw .fd-house-total{text-align:right}.cw .fd-house-total small{display:block;color:#5b6f86;font-size:12px}.cw .fd-house-total b{font-size:16px}
.cw .fd-pay{background:#0b8a4f;border-color:#0b8a4f;color:#fff;font-weight:700;border-radius:8px;padding:8px 16px}
.cw .fd-pay:hover{background:#08703f}
.cw .fd-members{display:grid;grid-template-columns:repeat(auto-fill,minmax(380px,1fr));gap:10px}
.cw .cw-member.fd-member{background:#fff;border:1px solid #dbe6f1;border-left:4px solid #5ea3e8;border-radius:10px;padding:10px 12px;margin:0}
.cw .cw-member.fd-member.cw-matched{border-left-color:#f59e0b;background:#fffdf5}
.cw .fd-member header{display:flex;justify-content:space-between;gap:10px;align-items:center}
.cw .fd-member-due{white-space:nowrap;color:#2c4766}.cw .fd-member-due.fd-red{color:#b42318}
.cw .fd-bills{margin-top:8px;border-top:1px dashed #d6e2ee}
.cw .fd-bill{display:grid;grid-template-columns:auto auto 1fr auto;gap:10px;align-items:center;padding:7px 2px;border-top:0;border-bottom:1px solid #eef3f8}
.cw .fd-bill:last-child{border-bottom:0}
.cw .fd-bill-no{background:#e8f1fb;border-radius:6px;padding:1px 8px;font-weight:700;font-size:13px}
.cw .fd-bill-date{color:#4b5f76;font-size:13px}.cw .fd-bill-note{color:#6b7f95;font-size:12px;min-width:0}
.cw .fd-none{margin:8px 0 0;color:#7a8ca1;font-size:13px}.cw .fd-note{margin-top:8px;border-radius:8px}
@media(max-width:900px){.cw .fd-summary{grid-template-columns:repeat(3,1fr)}.cw .fd-tip{grid-column:1/-1;padding:0}}
@media(max-width:650px){.cw .fd-summary{grid-template-columns:1fr 1fr;padding:10px}.cw .fd-stat b{font-size:17px}.cw .fd-list{padding:8px}.cw .fd-members{grid-template-columns:1fr}.cw .fd-bill{grid-template-columns:auto 1fr auto}.cw .fd-bill-note{grid-column:1/-1}}
.cw .fd-member header{flex-wrap:nowrap}.cw .fd-member header>.fd-who{flex:1}
.cw .fd-bill{grid-template-columns:auto auto 1fr;grid-template-areas:"no date amt" "note note note";row-gap:2px}
.cw .fd-bill-no{grid-area:no}.cw .fd-bill-date{grid-area:date}.cw .fd-bill>strong{grid-area:amt;justify-self:end;margin:0}
.cw .fd-bill-note{grid-area:note}.cw .fd-bill-note:empty{display:none}
.cw .fd-headings{padding:9px 62px 9px 69px}
/* Sorting (owner 23 Nov 2026) */
.cw .fd-tools{display:flex;flex-direction:column;justify-content:center;gap:6px;min-width:0}
.cw .fd-sortby{display:flex;align-items:center;gap:8px;color:#36506d;font-weight:600;font-size:13px}
.cw .fd-sortby select{border:1px solid #b9d0e8;border-radius:8px;padding:6px 10px;background:#fff;color:#044c9d;font:600 13px Manrope,Arial,sans-serif;min-width:210px}
.cw .fd-headings .fd-sort{all:unset;cursor:pointer;color:#044c9d;font-weight:700;font-size:12.5px;text-transform:uppercase;letter-spacing:.3px;display:inline-flex;align-items:center;gap:6px;border-radius:6px;padding:2px 6px;margin-left:-6px}
.cw .fd-headings .fd-sort:last-child{justify-self:end}
.cw .fd-headings .fd-sort span{color:#8fb0d4;font-size:11px}
.cw .fd-headings .fd-sort.is-on{background:#e8f1fb}.cw .fd-headings .fd-sort.is-on span{color:#044c9d}
.cw .fd-headings .fd-sort:hover{background:#eef5fd}.cw .fd-headings .fd-sort:focus-visible{outline:2px solid #42a5f5}
@media(max-width:900px){.cw .fd-tools{grid-column:1/-1}}
.cw .fd-headings .fd-sort{justify-self:start;width:max-content}.cw .fd-headings .fd-sort:last-child{justify-self:end}
