/* People → Members (templates/member/index.html.twig), after "Modern Church Members Dashboard". */
.mb { --mb-navy: #10385f; --mb-ink: #1e293b; --mb-muted: #64748b; --mb-line: #e2e8f0; --mb-blue: #1663d6; color: var(--mb-ink); }
.mb svg { width: 1.15em; height: 1.15em; flex: none; }
.mb-head { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.mb-title { display: flex; align-items: center; gap: 14px; }
.mb-title-icon { color: var(--mb-blue); font-size: 34px; display: flex; }
.mb-title h1 { margin: 0; font-size: 28px; font-weight: 700; }
.mb-title h1 span { font-size: 17px; font-weight: 500; color: #334155; }
.mb-title p { margin: 2px 0 0; color: var(--mb-muted); font-size: 13px; }
.mb-head-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.mb .mb-btn { display: inline-flex; align-items: center; gap: 8px; border: 1px solid #cbd5e1; background: #fff; color: var(--mb-ink); border-radius: 9px; padding: 9px 16px; font-weight: 500; text-decoration: none; white-space: nowrap; }
.mb .mb-btn:hover { border-color: #93c5fd; }
.mb .mb-btn.primary { background: var(--mb-blue); border-color: var(--mb-blue); color: #fff; font-weight: 600; }
.mb .mb-btn.primary:hover { background: #0f55bd; }

.mb-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; margin-bottom: 20px; }
.mb .mb-card { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 12px; text-decoration: none; color: var(--mb-ink); border: 2px solid transparent; transition: transform .1s; }
.mb .mb-card:hover { transform: translateY(-1px); }
.mb .mb-card.current { border-color: currentColor; }
.mb-card b { display: block; font-size: 26px; line-height: 1.1; }
.mb-card b + span { font-size: 14px; color: #334155; }
.mb-card-icon { width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 28px; flex: none; }
.mb-card.blue { background: #e3edfb; } .mb-card.blue .mb-card-icon { background: #c9dcf7; color: #1d5fc4; }
.mb-card.green { background: #e3f3e8; } .mb-card.green .mb-card-icon { background: #c8e7d1; color: #23843f; }
.mb-card.amber { background: #fdf1d9; } .mb-card.amber .mb-card-icon { background: #fadfa8; color: #d68a00; }
.mb-card.purple { background: #ede8f8; } .mb-card.purple .mb-card-icon { background: #dcd2f3; color: #4c2a9c; }
.mb-card.sky { background: #e2f0fb; } .mb-card.sky .mb-card-icon { background: #c7e2f7; color: #1e78c8; }
.mb .mb-card.current b + span { color: var(--mb-ink); font-weight: 600; }

.mb-filters { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.mb-search { flex: 1 1 280px; display: flex; align-items: center; gap: 10px; border: 1px solid #cbd5e1; background: #fff; border-radius: 9px; padding: 0 14px; color: #334155; margin: 0; }
.mb-search:focus-within { border-color: #86b7fe; box-shadow: 0 0 0 .2rem #0d6efd22; }
.mb-search input { border: 0; outline: 0; flex: 1; padding: 10px 0; min-width: 0; background: transparent; }
.mb-filter { display: flex; align-items: center; gap: 10px; margin: 0; color: #334155; }
.mb-filter .form-select { min-width: 150px; border-radius: 9px; border-color: #cbd5e1; }
.mb-filter .form-select.is-set { border-color: var(--mb-blue); }
/* Multi-value filters (templates/_multi_filter.html.twig): a <details> dropdown of checkboxes. */
.mb-multi { position: relative; }
.mb-multi > summary { list-style: none; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 240px; }
.mb-multi > summary::-webkit-details-marker { display: none; }
.mb-multi[open] > summary { border-color: #86b7fe; box-shadow: 0 0 0 .2rem #0d6efd22; }
.mb-multi-list { position: absolute; left: 0; top: calc(100% + 4px); z-index: 30; min-width: 100%; width: max-content; max-width: min(320px, calc(100vw - 32px)); max-height: 340px; overflow-y: auto; background: #fff; border: 1px solid var(--mb-line); border-radius: 9px; box-shadow: 0 10px 25px #0f172a22; padding: 6px; }
.mb-multi-list label { display: flex; align-items: center; gap: 9px; padding: 6px 8px; border-radius: 6px; cursor: pointer; margin: 0; color: var(--mb-ink); }
.mb-multi-list label:hover { background: #f1f5f9; }
.mb-multi-list input { width: 16px; height: 16px; flex: none; accent-color: var(--mb-blue); }
.mb-multi-group { padding: 8px 8px 4px; font-size: 12px; font-weight: 600; color: #64748b; text-transform: uppercase; letter-spacing: .04em; border-top: 1px solid var(--mb-line); margin-top: 4px; }
.mb-multi-foot { display: flex; justify-content: space-between; gap: 8px; position: sticky; bottom: -6px; background: #fff; border-top: 1px solid var(--mb-line); margin: 6px -6px -6px; padding: 8px; }
.mb .mb-btn.small { padding: 5px 12px; font-size: 13px; }

.mb-table-card { background: #fff; border-radius: 12px; box-shadow: 0 1px 3px #0f172a14, 0 1px 2px #0f172a0d; overflow: hidden; }
.mb-table-wrap { overflow-x: auto; }
.mb-table { width: 100%; border-collapse: collapse; }
.mb-table thead th { background: var(--mb-navy); color: #fff; font-weight: 600; padding: 13px 14px; white-space: nowrap; text-align: left; }
.mb-table thead th:first-child { padding-left: 24px; }
.mb .mb-table thead a { color: #fff; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.mb-sort { opacity: .65; font-size: 11px; display: inline-flex; }
.mb-sort.on { opacity: 1; }
.mb-table td { padding: 8px 14px; border-bottom: 1px solid #eef2f6; vertical-align: middle; }
.mb-table td:first-child { padding-left: 24px; }
.mb-table tbody tr:nth-child(even) { background: #f6f8fb; }
.mb-table tbody tr:hover { background: #eef4fc; }
.mb-member { display: flex; align-items: center; gap: 12px; }
.mb .mb-member a { font-weight: 600; color: var(--mb-blue); }
.mb-status { display: inline-flex; align-items: center; gap: 6px; padding: 3px 11px; border-radius: 20px; font-size: 13px; font-weight: 500; background: #f1f5f9; color: #475569; white-space: nowrap; }
.mb .mb-family { display: inline-flex; align-items: center; gap: 7px; color: var(--mb-blue); }
.mb-actions-col { text-align: center !important; }
.mb-actions { white-space: nowrap; text-align: center; }
.mb .mb-icon-btn { display: inline-flex; width: 32px; height: 32px; align-items: center; justify-content: center; border-radius: 7px; color: #334155; cursor: pointer; list-style: none; font-size: 18px; font-weight: 700; text-decoration: none; }
.mb .mb-icon-btn:hover { background: #e2e8f0; }
.mb-icon-btn::-webkit-details-marker { display: none; }
.mb-menu { display: inline-block; position: relative; }
.mb-menu-list { position: absolute; right: 0; top: 100%; z-index: 20; min-width: 170px; background: #fff; border: 1px solid var(--mb-line); border-radius: 9px; box-shadow: 0 10px 25px #0f172a22; padding: 5px; text-align: left; }
.mb-menu-list a, .mb-menu-list button { display: block; width: 100%; text-align: left; padding: 7px 10px; border-radius: 6px; color: var(--mb-ink); text-decoration: none; background: none; border: 0; font-size: 13px; }
.mb-menu-list a:hover, .mb-menu-list button:hover { background: #f1f5f9; }
.mb-menu-list form { margin: 0; border-top: 1px solid var(--mb-line); margin-top: 4px; padding-top: 4px; }
.mb-menu-list .danger { color: #b91c1c; }
.mb-empty { text-align: center; color: var(--mb-muted); padding: 28px !important; }

.mb-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 18px; flex-wrap: wrap; border-top: 1px solid var(--mb-line); }
.mb-pages { display: flex; gap: 6px; align-items: center; }
.mb .mb-pages a, .mb-pages span { min-width: 38px; height: 38px; padding: 0 8px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid #cbd5e1; border-radius: 8px; color: #334155; text-decoration: none; background: #fff; }
.mb .mb-pages a.current { background: var(--mb-blue); border-color: var(--mb-blue); color: #fff; font-weight: 600; }
.mb-pages .off { color: #cbd5e1; }
.mb-pages .gap { border: 0; min-width: 0; background: none; }
.mb-per { display: flex; align-items: center; gap: 10px; margin: 0; }
.mb-per label { color: #334155; white-space: nowrap; }
.mb-per .form-select { width: auto; border-radius: 8px; }

@media (max-width: 600px) {
    .mb-filter { flex: 1 1 100%; } .mb-filter .form-select { flex: 1; }
    .mb-multi { flex: 1; } .mb-multi > summary { max-width: none; }
    .mb-foot { justify-content: center; }
    .mb-title h1 { font-size: 23px; }
}

/* Families (templates/family/index.html.twig) reuses the list styles above. */
.mb-title-icon.boxed { width: 54px; height: 54px; border-radius: 12px; background: #e3edfb; justify-content: center; align-items: center; font-size: 30px; }
.mb-card-icon.square { border-radius: 12px; }
div.mb-card:hover { transform: none; }
.mb-family-icon { width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; flex: none; font-size: 18px; }
.mb-family-icon.blue { background: #e3edfb; color: #1d5fc4; }
.mb-family-icon.green { background: #dcf3e2; color: #23843f; }
.mb-family-icon.purple { background: #ede8f8; color: #6b3fd1; }
.mb-strong { font-weight: 600; }
.mb-badge { display: inline-block; background: #e3edfb; color: #1e3a5f; border-radius: 7px; padding: 2px 9px; font-weight: 500; font-variant-numeric: tabular-nums; }
.mb-with-icon { display: inline-flex; align-items: center; gap: 9px; }
.mb-with-icon svg { color: #1e3a5f; }
.mb-nowrap { white-space: nowrap; }
.mb .mb-phone { color: var(--mb-ink); text-decoration: none; }
.mb .mb-phone:hover { color: var(--mb-blue); text-decoration: underline; }
.mb-email { max-width: 240px; overflow-wrap: anywhere; }

/* Families → assignments (family/assignments.html.twig) */
.fa { display: grid; gap: 14px; }
.fa-load { display: flex; flex-wrap: wrap; gap: 8px; }
.fa-chip { display: grid; gap: 1px; padding: 8px 12px; border: 1px solid var(--sh-line, #e3e7ee); border-radius: 10px; background: #fff; color: inherit; text-decoration: none; font-size: 13px; min-width: 130px; }
.fa-chip span { color: #5b6577; font-size: 12px; font-variant-numeric: tabular-nums; }
.fa-chip:hover, .fa-chip.active { border-color: var(--sh-blue, #3271d1); }
.fa-chip.active { background: #eef4fd; }
.fa-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.fa-filters .form-control { flex: 1 1 200px; max-width: 280px; }
.fa-filters .form-select { flex: 0 1 220px; }
.fa-filters .form-check { margin: 0; display: flex; gap: 6px; align-items: center; }
.fa-spread { margin-left: auto; }
.fa-notice { margin: 0; padding: 10px 14px; border-radius: 8px; background: #fdf6e3; border: 1px solid #f1dfae; font-size: 13.5px; }
.fa-pick select { min-width: 200px; }
.fa tr.fa-suggested td { background: #fdf6e3; }
.fa-actions { display: flex; gap: 8px; }
.fa-chip.former { border-style: dashed; }
.fa-chip.former span { color: #9a5b00; }
