@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');
* { box-sizing: border-box; }
body { margin: 0; font-family: 'Manrope', 'Segoe UI', system-ui, -apple-system, Arial, sans-serif; background: #f3f5f9; color: #1b2437; }
a { color: #2f5bea; }
h1 { margin-top: 0; }
.muted { color: #666; font-size: 13px; }

/* Forms */
label { display: block; margin: 14px 0 6px; font-weight: bold; font-size: 14px; }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=date], select, textarea {
    width: 100%; padding: 10px; border: 1px solid #ccc; border-radius: 4px; font: inherit; background: #fff;
}
input[type=file] { width: 100%; padding: 8px; border: 1px dashed #aaa; border-radius: 4px; background: #fff; font: inherit; }
button { padding: 10px 16px; background: #2f5bea; color: #fff; border: 0; border-radius: 4px; font-size: 15px; cursor: pointer; }
button:hover { background: #2447c4; }
.error { background: #fde8e8; color: #b42318; padding: 10px 10px 10px 28px; border-radius: 4px; }
p.error { padding: 10px; }
.success { background: #e6f4ec; color: #17663a; padding: 10px; border-radius: 4px; }

/* Login */
.login-page { display: flex; align-items: center; justify-content: center; min-height: 100vh; }
.login-box { background: #fff; width: 100%; max-width: 360px; padding: 30px; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,.1); }
.login-box h1 { margin-top: 0; }
.login-box button { width: 100%; margin-top: 20px; padding: 11px; font-size: 16px; }

/* Registration page */
.form-card { background: #fff; max-width: 780px; margin: 30px auto; padding: 30px; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,.1); }
.form-card h2 { margin: 28px 0 0; padding-bottom: 6px; border-bottom: 1px solid #e5e7eb; font-size: 18px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.kid { background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 6px; padding: 14px 16px 18px; margin-top: 16px; }
.kid-head { display: flex; justify-content: space-between; align-items: center; }
.link-btn { background: none; color: #b42318; padding: 0; font-size: 14px; }
.link-btn:hover { background: none; text-decoration: underline; }
.btn-outline { background: #fff; color: #2f5bea; border: 1px solid #2f5bea; margin-top: 16px; }
.btn-outline:hover { background: #e8edff; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: normal; margin-top: 24px; }
.check input { margin-top: 3px; }
.submit-btn { display: block; width: 100%; margin-top: 20px; padding: 13px; font-size: 16px; }
.hp { position: absolute; left: -9999px; }

.content { padding: 28px 32px 48px; max-width: 1180px; margin: 0 auto; }
body.admin .content { max-width: none; margin: 0; flex: 1; min-width: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.icon { flex-shrink: 0; vertical-align: -3px; }
:focus-visible { outline: 2px solid #2f5bea; outline-offset: 2px; }

/* Admin shell: dark sidebar + light canvas */
.admin-shell { display: flex; min-height: 100vh; }
.sidebar { width: 236px; flex-shrink: 0; transition: width .2s ease; background: #101a33; color: #c9d4f5; display: flex; flex-direction: column; padding: 22px 14px; position: sticky; top: 0; height: 100vh; }
.brand { display: flex; align-items: center; gap: 10px; padding: 0 8px 22px; }
.brand-mark { width: 34px; height: 34px; border-radius: 9px; background: #2f5bea; color: #fff; font-weight: 800; display: grid; place-items: center; }
.brand-name { color: #fff; font-weight: 800; font-size: 17px; line-height: 1.1; display: flex; flex-direction: column; }
.brand-name small { font-weight: 500; font-size: 12px; color: #8d9bc7; }
.side-nav { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.side-nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 8px; color: #c9d4f5; text-decoration: none; font-weight: 600; font-size: 14.5px; }
.side-nav a:hover { background: rgba(255,255,255,.07); color: #fff; }
.side-nav a.active { background: #2f5bea; color: #fff; }
.side-user { display: flex; align-items: center; gap: 10px; padding: 14px 8px 0; border-top: 1px solid rgba(255,255,255,.12); }
.user-chip { width: 32px; height: 32px; border-radius: 50%; background: #243257; color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 14px; }
.user-name { flex: 1; color: #fff; font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.logout { color: #c9d4f5; padding: 6px; border-radius: 6px; display: grid; }
.logout:hover { background: rgba(255,255,255,.1); color: #fff; }

/* Page heading */
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.page-head h1 { margin: 0; font-size: 26px; font-weight: 800; letter-spacing: -.01em; }
.page-head .sub { margin: 4px 0 0; color: #64708a; font-size: 14.5px; }
.btn-primary { display: inline-flex; align-items: center; gap: 8px; background: #2f5bea; color: #fff; text-decoration: none; padding: 10px 16px; border-radius: 8px; font-weight: 600; font-size: 14.5px; border: 0; cursor: pointer; }
.btn-primary:hover { background: #2447c4; }
.btn-ghost { display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border: 1px solid #d5dbe8; border-radius: 8px; color: #1b2437; background: #fff; text-decoration: none; font-weight: 600; font-size: 13.5px; }
.btn-ghost:hover { border-color: #2f5bea; color: #2f5bea; background: #f5f8ff; }

/* Stat tiles */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; margin-bottom: 26px; }
.stat { display: flex; align-items: center; gap: 16px; background: #fff; border: 1px solid #e4e8ef; border-radius: 12px; padding: 18px 20px; }
.stat-icon { width: 46px; height: 46px; border-radius: 12px; background: #e8edff; color: #2f5bea; display: grid; place-items: center; }
.stat-icon .icon { width: 22px; height: 22px; }
.stat strong { display: block; font-size: 28px; font-weight: 800; line-height: 1.1; letter-spacing: -.02em; }
.stat span { color: #64708a; font-size: 13.5px; }

/* Panels and tables */
.panel { background: #fff; border: 1px solid #e4e8ef; border-radius: 12px; overflow: hidden; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 20px; min-height: 62px; border-bottom: 1px solid #e4e8ef; }
.panel-head h2 { margin: 0; font-size: 16px; font-weight: 700; }
.panel-head a { font-size: 14px; font-weight: 600; text-decoration: none; }
.panel-head a:hover { text-decoration: underline; }
.result-count { color: #64708a; font-size: 14px; }
.result-count strong { color: #1b2437; }
.table-wrap { overflow-x: auto; }
table.list { width: 100%; border-collapse: collapse; }
table.list th { text-align: left; padding: 11px 20px; background: #f7f9fc; font-size: 12.5px; font-weight: 700; color: #64708a; border-bottom: 1px solid #e4e8ef; white-space: nowrap; }
table.list td { text-align: left; padding: 16px 20px; border-bottom: 1px solid #edf0f5; vertical-align: middle; font-size: 14.5px; }
table.list tbody tr:last-child td { border-bottom: 0; }
table.list tbody tr:hover td { background: #fafbfe; }
table.list tr.selected td { background: #eef2ff; }
.check-col { width: 44px; padding-right: 0 !important; }
.check-col input { width: 17px; height: 17px; cursor: pointer; accent-color: #2f5bea; }
.empty-row { text-align: center; padding: 44px 20px !important; color: #64708a; }
.actions { white-space: nowrap; text-align: right; }
.actions > * { vertical-align: middle; }

/* Family cell: overlapping photos, then names */
.family { display: flex; align-items: center; gap: 14px; }
.stack { display: inline-flex; flex-shrink: 0; }
.stack .avatar { margin-left: -14px; }
.stack .avatar:first-child { margin-left: 0; }
.avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 2px solid #fff; box-shadow: 0 0 0 1px #d8deea; background: #e9edf5; flex-shrink: 0; display: inline-block; }
.family-names { display: flex; flex-direction: column; gap: 3px; line-height: 1.3; }
.family-names span { white-space: nowrap; }
.family-names strong { font-weight: 700; }
.family-names em { font-style: normal; color: #64708a; font-size: 12.5px; margin-left: 4px; }
.contact-line { display: flex; align-items: center; gap: 8px; line-height: 1.7; white-space: nowrap; }
.contact-line .icon { width: 14px; height: 14px; color: #8a95ad; }
.muted-line { color: #64708a; font-size: 13.5px; }
.kid-chip { display: inline-flex; flex-direction: column; margin: 0 8px 6px 0; padding: 6px 11px; background: #f1f4fb; border-radius: 8px; line-height: 1.3; vertical-align: top; }
.kid-chip strong { font-size: 13.5px; font-weight: 700; }
.kid-chip span { font-size: 12.5px; color: #64708a; }
.count-pill { display: inline-block; min-width: 30px; text-align: center; padding: 3px 10px; border-radius: 999px; background: #e8edff; color: #2447c4; font-weight: 700; font-size: 13.5px; }
.when { white-space: nowrap; }
.when span { display: block; color: #64708a; font-size: 12.5px; margin-top: 2px; }

/* Toolbar, bulk actions, pagination */
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 16px; }
.search-field { flex: 1; min-width: 240px; margin: 0; display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid #d5dbe8; border-radius: 8px; padding: 0 12px; color: #8a95ad; font-weight: normal; }
.search-field:focus-within { border-color: #2f5bea; box-shadow: 0 0 0 3px #e0e7ff; }
.search-field input[type=text] { border: 0; padding: 11px 0; outline: 0; background: transparent; color: #1b2437; }
.toolbar select { width: auto; border-radius: 8px; border-color: #d5dbe8; padding: 10px 12px; font-size: 14.5px; }
.bulk-bar { display: none; align-items: center; gap: 14px; background: #fff7e6; border: 1px solid #f0d9a3; padding: 5px 6px 5px 14px; border-radius: 8px; font-size: 14px; }
.bulk-bar.show { display: flex; }
.danger-btn { display: inline-flex; align-items: center; gap: 6px; background: #c0362c; border-radius: 8px; }
.danger-btn:hover { background: #9c2a22; }
.icon-danger { background: #fff; color: #c0362c; border: 1px solid #ecc5c1; border-radius: 8px; padding: 7px 9px; margin-left: 6px; display: inline-grid; place-items: center; }
.icon-danger:hover { background: #fdecea; }
.pagination { margin-top: 18px; display: flex; gap: 6px; flex-wrap: wrap; }
.pagination a { padding: 7px 13px; background: #fff; border: 1px solid #d5dbe8; border-radius: 8px; text-decoration: none; font-weight: 600; font-size: 14px; color: #1b2437; }
.pagination a:hover { border-color: #2f5bea; color: #2f5bea; }
.pagination a.current { background: #2f5bea; color: #fff; border-color: #2f5bea; }

/* Detail page */
.parents-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.person-card { display: flex; gap: 18px; align-items: flex-start; background: #fff; padding: 18px; border-radius: 8px; box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.person-card h3 { margin: 0; }
.person-card p { margin: 5px 0; }
.kid-card { margin-bottom: 14px; }
.photo-lg { width: 110px; height: 110px; object-fit: cover; border-radius: 8px; border: 1px solid #d5dadd; background: #eef1f2; display: block; flex-shrink: 0; }
.details { background: #fff; padding: 8px 20px; border-radius: 8px; box-shadow: 0 1px 4px rgba(0,0,0,.08); margin-bottom: 24px; }
.delete-form { margin-top: 24px; }

@media (max-width: 860px) {
    .admin-shell { flex-direction: column; }
    .sidebar { width: 100%; height: auto; position: static; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 14px; }
    .brand { padding: 0; }
    .side-nav { flex-direction: row; flex-wrap: wrap; flex: 1 1 100%; order: 3; }
    .side-user { border: 0; padding: 0; margin-left: auto; }
    .content { padding: 20px 16px 40px; }
}
@media (max-width: 700px) {
    .row, .parents-grid { grid-template-columns: 1fr; gap: 0; }
    .parents-grid { gap: 16px; }
}

/* Parents list becomes a stack of cards on phones */
@media (max-width: 760px) {
    table.list.m-cards, table.list.m-cards tbody { display: block; }
    table.list.m-cards thead { display: none; }
    .table-wrap { background: #f3f5f9; padding: 12px; }
    table.list.m-cards tr { display: block; position: relative; background: #fff; border: 1px solid #e4e8ef; border-radius: 12px; padding: 14px 16px 12px; margin-bottom: 12px; }
    table.list.m-cards tr:last-child { margin-bottom: 0; }
    table.list.m-cards td { display: block; padding: 8px 0; border: 0; }
    table.list.m-cards tbody tr:hover td { background: transparent; }
    table.list.m-cards td[data-label]::before { content: attr(data-label); display: block; font-size: 12px; font-weight: 700; color: #8a95ad; margin-bottom: 4px; }
    table.list.m-cards td.check-col { position: absolute; top: 12px; right: 12px; width: auto; padding: 0 !important; }
    table.list.m-cards td.actions { display: flex; gap: 8px; justify-content: flex-end; border-top: 1px solid #edf0f5; margin-top: 6px; padding-top: 12px; text-align: left; }
    table.list.m-cards td.actions .icon-danger { margin-left: 0; }
    table.list.m-cards tr.empty-tr { background: transparent; border: 0; padding: 0; }
    .family-names span { white-space: normal; }
    .panel-head { flex-wrap: wrap; }
}

/* ---------- Parents list: highlight, live search, loading ---------- */
mark { background: #fff0a8; color: inherit; border-radius: 3px; padding: 0 1px; }
.search-field input[type=search] { width: 100%; border: 0; padding: 11px 0; outline: 0; background: transparent; color: #1b2437; font: inherit; -webkit-appearance: none; appearance: none; }
.search-field input[type=search]::-webkit-search-cancel-button { display: none; }
.clear-q { background: none; color: #8a95ad; padding: 4px; border-radius: 6px; display: grid; }
.clear-q:hover { background: #eef1f6; color: #1b2437; }
.clear-q[hidden] { display: none; }
#results { transition: opacity .15s; }
#results.loading { opacity: .5; pointer-events: none; }
.empty-row strong { color: #1b2437; font-size: 15px; }

/* ---------- Collapsible sidebar ---------- */
.side-toggle { display: flex; align-items: center; gap: 12px; width: 100%; background: transparent; color: #9fb0e0; padding: 10px 12px; border-radius: 8px; font-weight: 600; font-size: 14px; margin-bottom: 10px; text-align: left; }
.side-toggle:hover { background: rgba(255,255,255,.07); color: #fff; }
.side-nav a .label, .side-toggle .label { white-space: nowrap; }
.sb-collapsed .sidebar { width: 76px; padding-left: 12px; padding-right: 12px; }
.sb-collapsed .sidebar .label { display: none; }
.sb-collapsed .brand { justify-content: center; padding-left: 0; padding-right: 0; }
.sb-collapsed .side-nav a, .sb-collapsed .side-toggle { justify-content: center; padding-left: 0; padding-right: 0; }
.sb-collapsed .side-toggle .icon { transform: scaleX(-1); }
.sb-collapsed .side-user { flex-direction: column; gap: 8px; padding-left: 0; padding-right: 0; }
@media (prefers-reduced-motion: reduce) { .sidebar, #results { transition: none; } }

/* ---------- Parent portal ---------- */
body.portal { background: #f3f5f9; }
.pmain { max-width: 1120px; margin: 0 auto; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.pcol .sec-title, .side-card { scroll-margin-top: 20px; }

.hero { background: #101a33; color: #fff; border-radius: 16px; padding: 26px 28px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px; margin-bottom: 24px; }
.hero-people { display: flex; align-items: center; gap: 20px; min-width: 0; }
.hero .stack .avatar { width: 68px; height: 68px; margin-left: -18px; border-color: #101a33; box-shadow: none; }
.hero .stack .avatar:first-child { margin-left: 0; }
.hero h1 { margin: 0; font-size: 26px; font-weight: 800; letter-spacing: -.01em; }
.hero p { margin: 4px 0 0; color: #a9b7e6; font-size: 14.5px; }
.hero-stats { display: flex; gap: 12px; }
.hero-stats div { background: rgba(255,255,255,.08); border-radius: 12px; padding: 12px 18px; min-width: 118px; }
.hero-stats strong { display: block; font-size: 24px; font-weight: 800; line-height: 1.1; }
.hero-stats span { color: #a9b7e6; font-size: 13px; }

.pgrid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.sec-title { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 800; margin: 0 0 14px; padding: 0; border: 0; }
.pcol .sec-title:not(:first-child) { margin-top: 30px; }
.pcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; }
.pcard, .kcard, .side-card { background: #fff; border: 1px solid #e4e8ef; border-radius: 14px; }
.pcard { display: flex; gap: 16px; padding: 18px; }
.pcard .photo-lg { width: 88px; height: 88px; border-radius: 12px; }
.pcard-body { min-width: 0; }
.pcard h3, .kcard h3 { margin: 0 0 6px; font-size: 16.5px; font-weight: 800; }
.role-pill { display: inline-block; background: #e8edff; color: #2447c4; font-size: 12.5px; font-weight: 700; padding: 2px 10px; border-radius: 999px; margin-bottom: 8px; }
.info-line { display: flex; align-items: flex-start; gap: 10px; font-size: 14.5px; line-height: 1.5; margin-top: 4px; overflow-wrap: anywhere; }
.info-line .icon { color: #8a95ad; margin-top: 3px; width: 16px; height: 16px; }

.kcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.kcard { padding: 18px; }
.kcard-top { display: flex; gap: 16px; align-items: center; }
.kcard .photo-lg { width: 76px; height: 76px; border-radius: 12px; }
.pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pill { background: #2f5bea; color: #fff; font-size: 12.5px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.pill.soft { background: #eef1f8; color: #44506b; }
.facts { margin: 16px 0 0; border-top: 1px solid #edf0f5; }
.facts div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid #edf0f5; font-size: 14.5px; }
.facts div:last-child { border-bottom: 0; padding-bottom: 0; }
.facts dt { color: #64708a; }
.facts dd { margin: 0; font-weight: 600; text-align: right; overflow-wrap: anywhere; }

.pside { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 20px; }
.side-card { padding: 20px; }
.side-card h2 { margin: 0 0 8px; padding: 0; border: 0; font-size: 16px; font-weight: 800; }
.pw-form label:first-of-type { margin-top: 8px; }
.pw-form .btn-primary { width: 100%; justify-content: center; margin-top: 18px; padding: 11px; }

@media (max-width: 900px) {
    .pgrid { grid-template-columns: 1fr; }
    .pside { position: static; }
}
@media (max-width: 560px) {
    
    .hero { padding: 20px; }
    .hero-stats { width: 100%; }
    .hero-stats div { flex: 1; min-width: 0; }
    .pcard { flex-direction: column; }
}

/* Shared small bits */
.center { text-align: center; margin: 14px 0 0; }
.reset-form { background: #fff; max-width: 420px; padding: 20px; border: 1px solid #e4e8ef; border-radius: 12px; }
.reset-form button { margin-top: 16px; }

/* ---------- Fee payments ---------- */
.status-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.status-pill::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status-pill.paid { background: #e6f4ec; color: #17663a; }
.status-pill.review { background: #fff4da; color: #8a5a00; }
.status-pill.due, .status-pill.rejected { background: #fde8e8; color: #b42318; }
.stat-icon.ok { background: #e6f4ec; color: #17663a; }
.stat-icon.warn { background: #fff4da; color: #8a5a00; }
.stat-icon.bad { background: #fde8e8; color: #b42318; }
.notice-warn { background: #fff7e6; border: 1px solid #f0d9a3; color: #7a5200; padding: 12px 14px; border-radius: 8px; }
.notice-warn a { color: inherit; font-weight: 700; }

.fee-kids { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 16px; margin-bottom: 26px; }
.fee-kid { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid #e4e8ef; border-radius: 14px; padding: 16px 18px; }
.fee-kid .avatar { width: 52px; height: 52px; }
.fee-kid h3 { margin: 0 0 6px; font-size: 15.5px; font-weight: 800; }
.fee-kid small { display: block; margin-top: 6px; color: #64708a; font-size: 12.5px; line-height: 1.4; }

.fee-form { padding: 22px; margin-bottom: 28px; max-width: 760px; scroll-margin-top: 20px; }
.fee-form .hint { margin: 0; color: #64708a; font-size: 13.5px; }
.fee-form .btn-primary { margin-top: 22px; padding: 11px 22px; }
.fee-form .btn-primary:disabled { opacity: .6; cursor: wait; }

.fee-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid #edf0f5; font-size: 14.5px; font-weight: 600; }
.fee-cta { width: 100%; justify-content: center; margin-top: 16px; padding: 11px; }

.pay-detail strong { display: block; font-size: 15px; }
.pay-detail span { display: block; color: #64708a; font-size: 12.5px; margin-top: 2px; }
.pay-detail span b { color: #1b2437; font-weight: 700; }
.pay-detail span.rej { color: #b42318; font-weight: 600; }
.pay-note { margin-top: 6px; color: #b42318; font-size: 12.5px; max-width: 240px; white-space: normal; }
.family-names em.no-indent { margin-left: 0; }

.act-form { display: inline-flex; gap: 6px; margin: 0; vertical-align: middle; }
.btn-ok, .btn-sm { display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 8px; font-size: 13.5px; font-weight: 600; }
.btn-ok { background: #17803d; }
.btn-ok:hover { background: #12662f; }
.bank-add { margin-bottom: 22px; }
.bank-add .btn-primary { margin-top: 12px; }
@media (max-width: 760px) {
    .toolbar select { flex: 1; }
    table.list.m-cards td.actions .act-form { flex-wrap: wrap; }
}

/* ---------- Bank details and QR codes ---------- */
.bank-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 16px; margin-bottom: 28px; }
.bank-card { background: #fff; border: 1px solid #e4e8ef; border-radius: 14px; padding: 18px 20px; }
.bank-card h3 { margin: 0; font-size: 16.5px; font-weight: 800; }
.bank-card .branch { display: flex; align-items: center; gap: 6px; margin: 3px 0 4px; color: #64708a; font-size: 13.5px; }
.bank-card .branch .icon { width: 14px; height: 14px; }
.bank-card .facts { margin-top: 10px; }
.bank-card .facts div { align-items: center; }
.copy-btn { padding: 3px 10px; margin-left: 6px; background: #eef1f8; color: #2447c4; border-radius: 6px; font-size: 12px; font-weight: 700; }
.copy-btn:hover { background: #dfe6ff; }
.qr-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; padding-top: 14px; border-top: 1px solid #edf0f5; }
.qr-list.tight { margin: 0; padding: 0; border: 0; gap: 6px; }
.qr-thumb { width: 104px; height: 104px; object-fit: contain; border: 1px solid #d5dbe8; border-radius: 10px; background: #fff; display: block; }
.qr-thumb.mini { width: 42px; height: 42px; border-radius: 6px; }
.bank-form { padding: 22px; margin-bottom: 24px; max-width: 820px; scroll-margin-top: 20px; }
.qr-edit { display: flex; flex-wrap: wrap; gap: 14px; margin: 4px 0 12px; }
.qr-keep { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; font-weight: 600; font-size: 13px; cursor: pointer; }
.qr-keep span { display: flex; align-items: center; gap: 6px; color: #b42318; }
.form-actions { display: flex; align-items: center; gap: 10px; margin-top: 20px; }

/* Approval status on parent pages */
.inline-form { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.inline-form button { display: inline-flex; align-items: center; gap: 6px; }

/* Admin edit-family form */
.edit-form { background: #fff; max-width: 820px; padding: 8px 26px 26px; border-radius: 8px; box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.edit-form h2 { margin: 26px 0 0; padding-bottom: 6px; border-bottom: 1px solid #e5e7eb; font-size: 18px; }
.edit-form .current-photo { margin: 6px 0; }
.edit-form .remove-check { margin: 0; color: #b42318; }
.edit-form .form-actions { display: flex; gap: 12px; align-items: center; margin-top: 26px; }

/* Fee slips */
.period-box { margin-top: 2px; }
.inline-del { display: inline; margin: 0; }
.slip-review input[type=text] { width: 100%; min-width: 170px; padding: 7px 10px; font-size: 13.5px; }
.slip-btns { display: flex; gap: 8px; align-items: center; margin-top: 8px; }

/* Committee */
.user-role { display: block; font-size: 11.5px; font-weight: 500; opacity: .7; line-height: 1.2; }
.perm-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.perm-chips .pill { font-size: 11.5px; padding: 2px 8px; }
.preset-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 4px; }
.perm-group { margin-top: 16px; }
.perm-group h3 { margin: 0 0 4px; font-size: 14px; color: #44506b; }
.perm-check { margin-top: 10px; }
.pw-row { display: flex; gap: 10px; align-items: center; }
.pw-row input { flex: 1; }
.quick-links { display: flex; flex-wrap: wrap; gap: 10px; padding: 18px 20px; }
