@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');
.portal-options{display:grid;grid-template-columns:1fr 1fr;gap:16px}.portal-options button{text-align:left;padding:24px;font-size:18px;min-height:110px}.portal-options span{display:block;font-size:13px;font-weight:400;margin-top:10px;opacity:.8}.wizard-progress{display:flex;gap:8px;flex-wrap:wrap;margin:15px 0}.wizard-progress span{padding:9px 12px;border-radius:8px;background:#f1f4ef;color:#738075;font-size:12px}.wizard-progress .current{background:#e2f1e8;color:#145c49;font-weight:700}#wizardForm input,#wizardForm select,#phoneForm input,#otpForm input{min-height:48px}#wizardForm input[type=checkbox]{min-height:auto}@media(max-width:700px){.portal-options{grid-template-columns:1fr}.portal-options button{padding:20px;font-size:17px}.wizard-progress span{font-size:11px;padding:8px}.actions{flex-wrap:wrap}.actions button{min-height:46px}}
:root{--green:#145c49;--mint:#e7f3ed;--ink:#1a332c;--muted:#75837e;--line:#e5ebe7;--bg:#f5f7f4}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:14px 'DM Sans',sans-serif}button,input,select{font:inherit}button,a,select{cursor:pointer}button{border:0;border-radius:8px;padding:11px 17px;background:var(--green);color:white;font-weight:600}button.secondary{background:white;border:1px solid var(--line);color:var(--ink)}button.text{background:transparent;color:var(--green);padding:6px}button:hover{filter:brightness(.95)}aside{position:fixed;width:240px;inset:0 auto 0 0;background:#123d32;color:#e2eee8;padding:32px 22px;display:flex;flex-direction:column}.brand{display:flex;gap:12px;align-items:center;font:800 23px Manrope,sans-serif;letter-spacing:1px}.brand small{display:block;font-size:9px;letter-spacing:2px;margin-top:4px;color:#adccc0}.logo{width:43px;height:43px;background:#ffffff14;border:1px solid #ffffff24;border-radius:12px;text-align:center;font-size:32px}.side-label{color:#81a79a;font-size:10px;letter-spacing:1.5px;margin:48px 10px 16px}nav button{display:flex;align-items:center;gap:13px;width:100%;background:none;text-align:left;color:#bbd0c7;margin:5px 0;padding:13px;font-weight:500}nav button.active{background:#ffffff14;color:white}nav button span{font-size:19px;min-width:22px}.side-bottom{margin-top:auto;font-size:11px;border-top:1px solid #ffffff15;padding-top:24px;color:#bdd0c7}.side-bottom small{display:block;line-height:1.9;margin-top:12px;color:#82a599}.live-dot{display:inline-block;background:#a2c788;width:6px;height:6px;border-radius:50%;margin-right:6px}.shell{margin-left:240px}header{height:82px;border-bottom:1px solid var(--line);background:white;display:flex;align-items:center;justify-content:space-between;padding:0 38px}.breadcrumb{color:var(--muted)}select,input{border:1px solid #dbe3de;border-radius:8px;padding:10px 12px;background:white;color:var(--ink);max-width:100%}.role-label{font-size:11px;color:var(--muted);display:flex;align-items:center;gap:10px}main{padding:32px 38px;max-width:1600px;margin:auto}h1{font:800 29px Manrope,sans-serif;margin:0 0 8px;letter-spacing:-1px}h2{font:700 17px Manrope,sans-serif;margin:0}h3{font-size:14px;margin:0 0 8px}p{color:var(--muted);line-height:1.6;margin:0}.title-row{display:flex;justify-content:space-between;align-items:center;margin-bottom:25px;gap:15px}.eyebrow{font-size:10px;text-transform:uppercase;letter-spacing:1.7px;color:var(--green);font-weight:700;margin-bottom:10px}.notice{padding:12px 16px;background:#edf2e6;border:1px solid #dce6cc;border-radius:8px;font-size:12px;color:#5a6b47;margin-bottom:24px}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;margin-bottom:24px}.card{background:white;border:1px solid var(--line);border-radius:12px;padding:22px}.stat-top{display:flex;justify-content:space-between;color:var(--muted);font-size:12px}.stat-icon{background:var(--mint);border-radius:8px;padding:8px;color:var(--green)}.stat-number{font:800 32px Manrope,sans-serif;margin:10px 0 7px}.stat-note{font-size:11px;color:var(--muted)}.stat-note b{color:var(--green);font-weight:500}.grid{display:grid;grid-template-columns:1.5fr 1fr;gap:22px;margin-bottom:24px}.card-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:23px}.card-head small{color:var(--muted);font-size:11px}.bars{display:flex;align-items:end;justify-content:space-around;height:165px;gap:22px;border-bottom:1px solid var(--line);padding:0 20px}.bar-group{height:100%;display:flex;flex-direction:column;justify-content:end;align-items:center;flex:1;gap:9px}.bar{background:#27745b;border-radius:6px 6px 0 0;width:65%;min-height:5px}.bar-group:nth-child(even) .bar{background:#8bae87}.bar-num{font-size:11px;color:var(--muted)}.bar-labels{display:flex;justify-content:space-around;margin-top:12px;font-size:11px;color:var(--muted)}.category-line{margin-bottom:15px;display:grid;grid-template-columns:1fr auto;gap:8px;font-size:12px}.track{grid-column:1/3;height:6px;background:#eef2ed;border-radius:20px;overflow:hidden}.track i{display:block;height:100%;background:#8dab83;border-radius:20px}.filters{display:flex;gap:12px;margin-bottom:20px;flex-wrap:wrap}.filters input{flex:1;min-width:180px}.table-wrap{overflow:auto}table{border-collapse:collapse;width:100%;white-space:nowrap;text-align:left}th{background:#f7f9f6;color:var(--muted);font-size:10px;letter-spacing:.6px;text-transform:uppercase;font-weight:500;padding:13px}td{padding:15px 13px;border-bottom:1px solid var(--line);font-size:12px}td strong{display:block;font-size:13px}td small{display:block;color:var(--muted);margin-top:4px}.avatar{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:10px;background:var(--mint);color:var(--green);margin-right:10px;font-weight:700;float:left}.badge{display:inline-block;padding:5px 9px;border-radius:20px;font-size:10px;background:var(--mint);color:#297053;margin:2px}.badge.pending{background:#fff3d8;color:#9f771c}.badge.inactive{background:#eee;color:#787878}.badge.new{background:#e9effd;color:#496cac}.empty{text-align:center;padding:40px;color:var(--muted)}.activity{display:flex;gap:12px;padding:14px 0;border-bottom:1px solid var(--line);font-size:12px}.activity small{display:block;color:var(--muted);margin-top:5px}.dot{width:9px;height:9px;background:#83a77d;border-radius:50%;margin-top:5px}.portal-hero{background:var(--green);border-radius:14px;padding:32px;color:white;margin-bottom:24px;display:flex;justify-content:space-between;align-items:center}.portal-hero p{color:#bad5c8}.portal-hero h1{max-width:650px;font-size:30px}.hero-mark{font-size:80px;opacity:.25}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:20px 0}label.field{display:flex;flex-direction:column;gap:7px;font-size:12px}.full{grid-column:1/-1}.check-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;font-size:12px;margin:16px 0}.check-grid label{display:flex;align-items:center;gap:7px}.member-row{display:grid;grid-template-columns:2fr 1fr 1fr auto;gap:10px;margin-bottom:10px}.member-row select{min-width:0}.actions{display:flex;gap:10px;justify-content:flex-end;margin-top:20px}dialog{width:min(780px,94vw);border:0;border-radius:16px;padding:28px;color:var(--ink);max-height:90vh;overflow:auto}dialog::backdrop{background:#163a3290}.detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin:22px 0}.detail-grid small{display:block;color:var(--muted);margin-bottom:6px}.permission{padding:14px;background:#f6f8f4;border-radius:8px;font-size:12px;line-height:1.8}.error{color:#a94436;background:#fff0ea;padding:10px;border-radius:8px;font-size:12px;display:none}#toast{position:fixed;bottom:25px;right:25px;padding:14px 20px;background:#173f33;color:white;border-radius:10px;display:none;z-index:100}footer{padding:15px 38px 30px;color:#97a29b;font-size:11px;display:flex;justify-content:space-between}.settings-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:18px}.muted{color:var(--muted)}@media(max-width:1050px){aside{width:200px;padding:25px 15px}.shell{margin-left:200px}main{padding:25px}.stats{gap:10px}.grid{grid-template-columns:1fr}.stat-number{font-size:27px}header{padding:0 25px}}@media(max-width:700px){aside{position:static;width:100%;padding:16px}.brand{font-size:19px}.side-label,.side-bottom{display:none}nav{display:flex;overflow:auto;margin-top:10px}nav button{white-space:nowrap;width:auto;margin:0;font-size:12px;padding:10px}nav button span{display:none}.shell{margin:0}header{padding:12px 16px;height:auto;gap:12px;flex-wrap:wrap}.breadcrumb{display:none}main{padding:22px 16px}h1{font-size:24px}.title-row{align-items:flex-start}.stats{grid-template-columns:1fr 1fr}.card{padding:16px}.form-grid,.detail-grid,.settings-grid{grid-template-columns:1fr}.check-grid{grid-template-columns:1fr 1fr}.member-row{grid-template-columns:1fr 1fr}.member-row input:first-child{grid-column:1/-1}.portal-hero{padding:22px}.hero-mark{display:none}footer{padding:15px 16px;display:block}footer span{display:block;margin-top:7px}.role-label{width:100%}.role-label select{flex:1}.filters select{flex:1;width:45%}}

.brand-logo{width:62px;height:62px;object-fit:contain;background:white;border-radius:10px;padding:3px;flex-shrink:0}.brand{gap:10px;font-size:20px}.portal-logo{width:160px;height:160px;object-fit:contain;background:white;border-radius:14px;padding:8px;margin-left:20px}input[type=text],input:not([type]),input[type=search],input[type=tel],textarea{text-transform:uppercase}@media(max-width:700px){.brand-logo{width:52px;height:52px}.portal-hero{gap:16px;flex-wrap:wrap}.portal-logo{width:100px;height:100px;margin-left:0}.portal-hero h1{font-size:25px}}

.member-ic{grid-column:1/-1}.member-ic input{width:100%}#simpleMembers .member-row{padding:16px;background:#f6f8f5;border-radius:10px;margin-bottom:14px}
.ic-parts{display:grid;grid-template-columns:minmax(0,6fr) auto minmax(0,2fr) auto minmax(0,4fr);align-items:center;gap:10px;width:100%}.ic-parts input:not([type=hidden]){width:100%;min-width:0;text-align:center;letter-spacing:2px}.ic-dash{font-size:20px;color:#75837e}@media(max-width:700px){.ic-parts{gap:6px}.ic-parts input:not([type=hidden]){padding:10px 6px;letter-spacing:1px}}

h1,h2,h3,h4,.field,.wizard-progress span,.detail-grid small{ text-transform:capitalize; }

.privacy-notice p{margin:12px 0;line-height:1.7}.privacy-notice small{display:block;margin-top:12px}.privacy-notice .notice{margin-top:16px}summary{cursor:pointer;font-weight:700}

/* Clearer labels above fields and table columns. */
label.field,.field{font-size:15px;font-weight:700;color:#183e32;line-height:1.5}
.field input,.field select,.field textarea{font-weight:400;color:#1a332c}
th{font-size:12px;font-weight:700;color:#244a3d}
.detail-grid small,.stat-top{font-weight:700;color:#365347}

/* Larger mosque identity and high-contrast navigation on a light blue panel. */
aside{width:270px;background:#dceffa;color:#153f59;padding:24px 18px;overflow-y:auto}
.shell{margin-left:270px}
.brand{flex-direction:column;gap:12px;text-align:center;font-size:25px;letter-spacing:.6px;color:#153f59}
.brand-logo{width:150px;height:150px;padding:6px;border-radius:16px}
.brand small{font-size:15px;line-height:1.55;letter-spacing:.5px;color:#234e66;margin-top:6px}
.side-label{color:#365e75;font-size:12px;font-weight:700;letter-spacing:1px;margin:26px 10px 14px}
nav button{font-size:18px;font-weight:700;line-height:1.45;color:#183f58;padding:14px 12px;gap:12px}
nav button span{font-size:23px;min-width:24px}
nav button.active{background:#badbed;color:#0c334c}
nav button:hover{background:#c9e4f3}
.side-bottom{border-color:#b7d5e6;color:#234e66;padding-top:18px;margin-top:24px;font-size:12px}
.side-bottom small{color:#365e75;font-size:12px}
.live-dot{background:#236e83}
td strong{font-size:16px;line-height:1.5}
.stat-top{font-size:14px}
.card-head h2{font-size:19px}
@media(min-width:701px) and (max-width:1050px){aside{width:240px}.shell{margin-left:240px}.brand-logo{width:135px;height:135px}nav button{font-size:17px}}
@media(max-width:700px){aside{width:100%;position:static;padding:20px 16px}.shell{margin-left:0}.brand-logo{width:115px;height:115px}.brand{font-size:23px}.brand small{font-size:14px}nav button{font-size:16px;padding:12px;flex-shrink:0}nav{margin-top:18px}}

#staffResults table{white-space:normal;min-width:630px}
#staffResults td{vertical-align:top}
#staffResults td small{overflow-wrap:anywhere;max-width:180px;line-height:1.5}
.staff-actions{display:flex;flex-direction:column;gap:8px;align-items:stretch}
.staff-actions button{font-size:12px;padding:9px;min-width:130px}
@media(max-width:1100px){
  #staffResults table,#staffResults tbody{display:block;min-width:0;width:100%}
  #staffResults thead{display:none}
  #staffResults tr{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:18px 0;border-bottom:1px solid var(--line)}
  #staffResults td{display:block;padding:4px;border:0;min-width:0}
  #staffResults td:first-child,#staffResults td:last-child{grid-column:1/-1}
  #staffResults td[data-label]::before{content:attr(data-label);display:block;font-size:11px;font-weight:700;color:#365347;margin-bottom:5px}
  #staffResults td:first-child small{max-width:none}
  .staff-actions{flex-direction:row;flex-wrap:wrap}
  .staff-actions button{flex:1;min-width:125px}
}
.central-space{margin-top:20px}.central-member{background:#f7faf7}#accountBar{display:flex;align-items:center;gap:12px;font-size:13px}#familyForm h3{margin-top:24px}#main .portal-hero .eyebrow{color:#c4d9ac}@media(max-width:700px){#accountBar{flex-wrap:wrap}header{align-items:flex-start}}
.central-member.member-row{display:block}

.phone-parts{display:grid;grid-template-columns:minmax(90px,1fr) minmax(140px,2fr);gap:10px}.phone-parts small{display:block;margin:4px 0 8px;font-weight:600}.phone-parts input{width:100%;min-width:0}#printReport{display:none}
@media print{
 @page{size:A4 landscape;margin:12mm}
 body.printing{display:block!important;background:white!important;color:black!important}
 body.printing>*:not(#printReport){display:none!important}
 body.printing #printReport{display:block!important;font-size:10pt;color:black}
 #printReport .print-brand{display:flex;align-items:center;gap:16px}#printReport .print-brand img{width:65px;height:65px;object-fit:contain}
 #printReport h1{font-size:15pt;margin:0 0 6px}#printReport h2{font-size:12pt;margin:6px 0}#printReport p{color:black;margin:10px 0}
 #printReport table{width:100%;min-width:0;border-collapse:collapse;table-layout:fixed}#printReport th,#printReport td{border:1px solid #888;padding:7px;overflow-wrap:anywhere;color:black;font-size:9pt}
 #printReport th{font-weight:bold;background:#eee}#printReport tr{break-inside:avoid}#printReport thead{display:table-header-group}#printReport .print-confidential{font-weight:bold}
}
/* Front page: supplied mosque photo, readable typography, transparent identity. */
.brand-logo,.portal-logo{background:transparent;border-radius:0;padding:0}
.brand-logo{width:170px;height:170px;filter:drop-shadow(0 2px 2px #ffffff80)}
.landing-hero{position:relative;isolation:isolate;min-height:450px;align-items:flex-end;overflow:hidden;border-radius:22px;padding:42px;background:#17483c url('assets/masjid-alamin.jpg') center 45%/cover no-repeat;box-shadow:0 14px 36px #153e3220;gap:24px}
.landing-hero::before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,rgba(10,36,32,.88),rgba(10,36,32,.54) 47%,rgba(10,36,32,.08) 78%),linear-gradient(0deg,rgba(7,30,24,.74),transparent 65%)}
.landing-hero .hero-content{max-width:560px;padding:18px 0}
#main .landing-hero .eyebrow{color:#f4dba2;font-size:12px;letter-spacing:2px;line-height:1.7}
.landing-hero h1{font-size:clamp(30px,3.1vw,45px);line-height:1.2;color:white;letter-spacing:-.8px;text-transform:none;margin:12px 0 18px;text-wrap:balance}
.landing-hero p{font-size:18px;line-height:1.7;color:#fff;max-width:490px}
.hero-caption{color:white;text-align:right;flex-shrink:0;font-weight:800;font-size:14px;line-height:1.7;letter-spacing:1px;text-shadow:0 2px 8px #000}
.hero-caption span{font-size:10px;letter-spacing:1.3px;font-weight:600}
.privacy-notice{border-left:5px solid #368e9b;padding:26px 28px}
.privacy-notice h2{font-size:22px;color:#193f43}
.privacy-notice p{font-size:20px;font-style:italic;color:#364e50;line-height:1.85;margin:14px 0 0}
.portal-options{gap:18px}.portal-options button{border-radius:14px;padding:24px}.portal-options b{font-size:20px}.portal-options span{font-size:15px;line-height:1.6}
@media(max-width:1000px){.landing-hero{padding:30px;min-height:420px}.hero-caption{display:none}}
@media(max-width:700px){.brand-logo{width:115px;height:115px}.landing-hero{min-height:410px;padding:26px 22px;background-position:58% center;border-radius:16px}.landing-hero::before{background:linear-gradient(0deg,rgba(7,30,24,.93),rgba(7,30,24,.54) 65%,rgba(7,30,24,.15))}.landing-hero .hero-content{padding:0}.landing-hero h1{font-size:32px}.landing-hero p{font-size:17px}.privacy-notice{padding:22px 18px}.privacy-notice p{font-size:18px}.portal-options button{padding:20px}}

/* Prominent add-family-member action. */
#familyForm .add-member-button{display:inline-flex;align-items:center;justify-content:center;gap:10px;background:#2d5e4f;color:#fff;border:2px solid #2d5e4f;border-radius:12px;font-size:18px;font-weight:800;line-height:1.5;padding:16px 24px;min-height:58px;margin:10px 0;box-shadow:0 4px 10px #163e3220;white-space:normal;text-align:center}
#familyForm .add-member-button:hover{background:#204a3c;border-color:#204a3c}
#familyForm .add-member-button:focus-visible{outline:3px solid #d4aa39;outline-offset:4px}
@media(max-width:700px){#familyForm .add-member-button{width:100%;font-size:17px;padding:16px}}

/* Printed reports must wrap inherited nowrap table text. */
@media print{
 #printReport table,#printReport thead,#printReport tbody,#printReport tr,#printReport th,#printReport td{white-space:normal!important}
 #printReport th,#printReport td{vertical-align:top;overflow-wrap:anywhere;word-break:normal;line-height:1.45;letter-spacing:normal;text-transform:none;padding:7px 6px}
 #printReport th{font-size:8pt;font-weight:700;background:#eee!important}
 #printReport td{font-size:8pt}
 #printReport td strong{display:block;font-size:8pt;margin-bottom:5px}
 #printReport .print-reference{display:block;font-size:6.8pt;line-height:1.45;color:#444;margin-top:5px;overflow-wrap:anywhere}
 #printReport .print-households th:first-child,#printReport .print-households td:first-child,#printReport .print-households th:nth-child(5),#printReport .print-households td:nth-child(5){text-align:center}
 #printReport .print-households{table-layout:fixed;max-width:100%;white-space:normal}
 #printReport .print-brand{margin-bottom:12px}
}

/* Requested alignment for the household print report. */
@media print{
 #printReport .print-households th{text-align:center}
 #printReport .print-households td:nth-child(1),
 #printReport .print-households td:nth-child(4),
 #printReport .print-households td:nth-child(5),
 #printReport .print-households td:nth-child(6),
 #printReport .print-households td:nth-child(7),
 #printReport .print-households td:nth-child(8),
 #printReport .print-households td:nth-child(9){text-align:center}
}

.whatsapp-phone{font-weight:800;color:#176c43;text-decoration:underline;text-underline-offset:3px}
.whatsapp-button{display:inline-block;background:#176b43;color:#fff;font-size:16px;font-weight:800;line-height:1.5;padding:14px 20px;border-radius:10px;text-decoration:none;text-align:center}
.whatsapp-button:hover{background:#105332}.whatsapp-button:focus-visible,.whatsapp-phone:focus-visible{outline:3px solid #c49d25;outline-offset:4px}
.whatsapp-help{font-size:13px;line-height:1.6;margin:10px 0 18px;color:#425b50}
@media(max-width:700px){.whatsapp-button{width:100%;box-sizing:border-box}}
