@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@500;600;700;800;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');
:root{--brand:#155e75;--brand2:#0f766e;--dark:#0f172a;--muted:#64748b;--line:#dbe4ef;--bg:#f5f7fb;--danger:#b91c1c;--ok:#15803d}
*{box-sizing:border-box}body{margin:0;font-family:'Inter',Arial,Helvetica,sans-serif;background:var(--bg);color:var(--dark)}a{text-decoration:none;color:var(--brand)}.topbar{background:linear-gradient(135deg,#0f172a,#155e75);color:white;padding:18px 28px;box-shadow:0 4px 18px rgba(0,0,0,.12)}.topbar-inner{max-width:1180px;margin:auto;display:flex;align-items:center;justify-content:space-between;gap:20px}.brand h1{font-size:22px;margin:0}.brand p{font-size:13px;margin:4px 0 0;color:#cbd5e1}.nav{display:flex;gap:8px;flex-wrap:wrap}.nav a,.nav button{border:1px solid rgba(255,255,255,.22);background:rgba(255,255,255,.08);color:#fff;border-radius:10px;padding:9px 13px;font-weight:700;cursor:pointer}.container{max-width:1180px;margin:26px auto;padding:0 18px}.card{background:#fff;border:1px solid var(--line);border-radius:16px;padding:20px;box-shadow:0 10px 30px rgba(15,23,42,.06);margin-bottom:18px}.section-head{display:flex;align-items:flex-start;justify-content:space-between;gap:15px;margin-bottom:14px}.section-head h2,.card h2{margin:0 0 4px;font-size:20px}.muted{color:var(--muted);font-size:13px}.grid{display:grid;gap:14px}.grid.two{grid-template-columns:1fr 1fr}.grid.three{grid-template-columns:repeat(3,1fr)}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.field label{display:block;font-size:13px;font-weight:700;margin-bottom:6px;color:#334155}.field input,.field textarea,.field select{width:100%;border:1px solid #cbd5e1;border-radius:10px;padding:10px 12px;font-size:15px;background:#fff}.field textarea{min-height:75px;resize:vertical}.actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.btn{border:0;border-radius:10px;padding:10px 14px;font-weight:700;display:inline-flex;align-items:center;gap:6px;cursor:pointer;background:#e2e8f0;color:#0f172a}.btn.primary{background:var(--brand);color:white}.btn.green{background:var(--brand2);color:white}.btn.red{background:#fee2e2;color:#991b1b}.btn.outline{background:white;border:1px solid #cbd5e1}.table-wrap{overflow:auto;border:1px solid var(--line);border-radius:12px}table{width:100%;border-collapse:collapse;background:#fff}th,td{border-bottom:1px solid var(--line);padding:11px 12px;text-align:left;font-size:14px;vertical-align:top}th{background:#f8fafc;color:#334155;font-size:12px;text-transform:uppercase;letter-spacing:.03em}tr:hover td{background:#f8fafc}.pill{display:inline-block;padding:4px 8px;border-radius:999px;background:#e0f2fe;color:#075985;font-size:12px;font-weight:700}.warn{border:1px solid #fecaca;background:#fff1f2;color:#991b1b;border-radius:10px;padding:9px 10px;margin-top:8px;font-size:13px}.ok{border:1px solid #bbf7d0;background:#f0fdf4;color:#166534;border-radius:10px;padding:9px 10px;margin-top:8px;font-size:13px}.login-box{max-width:420px;margin:70px auto}.alert{padding:12px 14px;border-radius:12px;background:#ecfeff;border:1px solid #a5f3fc;color:#155e75;margin-bottom:14px}.danger-note{padding:12px 14px;border-radius:12px;background:#fff7ed;border:1px solid #fed7aa;color:#9a3412;margin-bottom:14px}.print-only{display:none}@media(max-width:850px){.grid.two,.grid.three,.form-grid{grid-template-columns:1fr}.section-head{display:block}.nav{margin-top:12px}}

.field input:not([type=email]),.field textarea{text-transform:uppercase}.field input[readonly]{background:#f8fafc;color:#334155;font-weight:700}

.duplicate-warning{margin-top:8px;border:1px solid #fecaca;background:#fff1f2;color:#991b1b;border-radius:10px;padding:9px 10px;font-size:13px;font-weight:700}.duplicate-warning a{color:#7f1d1d;text-decoration:underline}.btn:disabled{opacity:.55;cursor:not-allowed}.checkbox-line{display:flex!important;align-items:center;gap:8px;font-weight:700;color:#334155}.checkbox-line input{width:auto!important}.readonly-soft{background:#f8fafc!important;color:#475569}.field input[type=email]{text-transform:none!important}


.stats-grid{grid-template-columns:repeat(4,1fr);margin-bottom:18px}.stat-card{background:#fff;border:1px solid var(--line);border-radius:16px;padding:18px;box-shadow:0 10px 24px rgba(15,23,42,.05)}.stat-label{font-size:13px;font-weight:700;color:#475569;margin-bottom:8px}.stat-num{font-size:34px;font-weight:800;line-height:1;color:#0f172a}.stat-note{font-size:12px;color:var(--muted);margin-top:8px}.radio-row{display:flex;gap:10px;flex-wrap:wrap}.radio-chip{display:inline-flex;align-items:center;gap:8px;border:1px solid #cbd5e1;border-radius:999px;padding:10px 14px;background:#fff;font-weight:700;color:#334155}.radio-chip input{width:auto!important;margin:0}.radio-chip:has(input:checked){background:#ecfeff;border-color:#67e8f9;color:#155e75}@media(max-width:850px){.stats-grid{grid-template-columns:1fr 1fr}}@media(max-width:560px){.stats-grid{grid-template-columns:1fr}}

.public-topbar{background:linear-gradient(135deg,#134e4a,#155e75)}
.public-container{max-width:920px}
.public-success{text-align:center;padding:34px}
.public-success h2{font-size:28px;color:var(--ok)}
.nav a[href*="logout"]{background:rgba(255,255,255,.16)}


/* V7 Landing + Inter */
body, input, textarea, select, button, table, a {
    font-family:'Inter',Arial,Helvetica,sans-serif;
}
.landing-page{
    min-height:100vh;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:28px;
    background:
        radial-gradient(circle at top left, rgba(20,184,166,.20), transparent 35%),
        radial-gradient(circle at bottom right, rgba(21,94,117,.22), transparent 34%),
        linear-gradient(135deg,#f8fafc,#eef7f9);
}
.landing-card{
    width:min(760px,100%);
    background:rgba(255,255,255,.92);
    border:1px solid rgba(203,213,225,.9);
    border-radius:28px;
    box-shadow:0 24px 80px rgba(15,23,42,.14);
    padding:42px;
    text-align:center;
}
.landing-badge{
    display:inline-flex;
    padding:8px 16px;
    border-radius:999px;
    background:#ecfeff;
    color:#155e75;
    font-size:12px;
    letter-spacing:.08em;
    font-weight:800;
    margin-bottom:16px;
}
.landing-card h1{
    margin:0;
    font-size:38px;
    line-height:1.15;
    color:#0f172a;
    font-weight:900;
}
.landing-desc{
    max-width:610px;
    margin:14px auto 26px;
    color:#64748b;
    font-size:15px;
    line-height:1.7;
    font-weight:500;
}
.landing-actions{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:16px;
}
.landing-btn{
    min-height:132px;
    border-radius:22px;
    padding:22px;
    display:flex;
    align-items:center;
    gap:16px;
    text-align:left;
    border:1px solid #dbe4ef;
    color:#0f172a;
    background:#fff;
    box-shadow:0 12px 30px rgba(15,23,42,.08);
    transition:.18s ease;
}
.landing-btn:hover{
    transform:translateY(-2px);
    box-shadow:0 16px 38px rgba(15,23,42,.13);
}
.landing-btn.primary{
    background:linear-gradient(135deg,#155e75,#0f766e);
    color:#fff;
}
.landing-btn.admin{
    background:linear-gradient(135deg,#0f172a,#334155);
    color:#fff;
}
.landing-icon{
    width:54px;
    height:54px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:18px;
    background:rgba(255,255,255,.18);
    font-size:28px;
    flex:0 0 auto;
}
.landing-btn strong{
    display:block;
    font-size:20px;
    font-weight:900;
    margin-bottom:6px;
}
.landing-btn small{
    display:block;
    line-height:1.45;
    opacity:.86;
    font-weight:500;
}
.public-topbar .brand h1{font-weight:900}
@media(max-width:720px){
    .landing-card{padding:28px 20px}
    .landing-card h1{font-size:29px}
    .landing-actions{grid-template-columns:1fr}
    .landing-btn{min-height:110px}
}

/* V8 Public stats, semak IC, Inter */
.landing-actions-three{grid-template-columns:repeat(3,1fr)}
.landing-btn.check{background:linear-gradient(135deg,#0369a1,#0891b2);color:#fff}
.public-stats{margin-bottom:20px}
.public-result-card h2{margin-bottom:14px}
.summary-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:12px 0 18px}
.summary-grid div{border:1px solid #e2e8f0;border-radius:14px;padding:12px;background:#f8fafc}
.summary-grid span{display:block;font-size:11px;text-transform:uppercase;letter-spacing:.04em;color:#64748b;font-weight:800;margin-bottom:6px}
.summary-grid strong{display:block;font-size:15px;color:#0f172a;word-break:break-word}
.print-verify-box{border:1px dashed #94a3b8;border-radius:16px;padding:14px;background:#f8fafc;display:flex;gap:10px;align-items:flex-end;flex-wrap:wrap}
.print-verify-box .field{flex:1;min-width:260px}
@media(max-width:900px){.landing-actions-three{grid-template-columns:1fr}.summary-grid{grid-template-columns:1fr}}


/* Login fix: jangan auto uppercase username/password */
.no-uppercase{ text-transform:none!important; }
.login-box .field input{ text-transform:none!important; }

.public-topbar .nav{justify-content:flex-end;}

/* V10 Family members */
.family-editor{display:grid;gap:10px;margin-bottom:10px}
.family-row{display:grid;grid-template-columns:150px minmax(220px,1.1fr) 190px minmax(420px,2fr) auto;gap:10px;align-items:stretch;border:1px solid #e2e8f0;border-radius:18px;padding:14px;background:#f8fafc}
.family-row select,.family-row input{margin:0}
.family-list{border:1px solid #e2e8f0;background:#f8fafc;border-radius:16px;padding:14px;margin:12px 0}
.family-list h3{margin:0 0 10px;font-size:15px}
.family-item{padding:8px 0;border-top:1px solid #e2e8f0}
.family-item:first-of-type{border-top:0}
.family-item span{color:#64748b;font-weight:700;margin-left:8px}
@media(max-width:820px){.family-row{grid-template-columns:1fr}.family-row .btn{width:100%;justify-content:center}}

/* V11 public edit */
.print-verify-box .btn.primary{align-self:flex-end}

.family-row textarea{min-height:46px;resize:vertical;padding:10px 12px;border:1px solid #cbd5e1;border-radius:10px;background:#fff}

/* V15 family address UI */
.family-editor{gap:12px}
.family-row select,
.family-row input,
.family-row textarea{
    min-height:54px;
    font-size:15px;
}
.family-row textarea{
    min-height:72px!important;
    line-height:1.35;
    resize:vertical;
}
.family-row .btn{
    min-height:54px;
    align-self:center;
}
@media(max-width:1180px){
    .family-row{grid-template-columns:1fr 1fr}
    .family-row textarea{grid-column:1/-1}
    .family-row .btn{grid-column:1/-1;justify-content:center}
}
@media(max-width:720px){
    .family-row{grid-template-columns:1fr}
    .family-row textarea,.family-row .btn{grid-column:auto}
}


/* V16 family row fix: jangan terkeluar frame */
.family-editor{
    display:grid;
    gap:12px;
}
.family-row{
    width:100%;
    max-width:100%;
    display:grid!important;
    grid-template-columns:180px minmax(0,1fr) 220px 92px!important;
    grid-template-areas:
        "relation name ic remove"
        "address address address address";
    gap:10px!important;
    align-items:start!important;
    border:1px solid #e2e8f0;
    border-radius:18px;
    padding:14px!important;
    background:#f8fafc;
    overflow:hidden;
}
.family-row select{
    grid-area:relation;
    width:100%;
    min-width:0;
    min-height:52px!important;
}
.family-row input[name="dependent_name[]"]{
    grid-area:name;
    width:100%;
    min-width:0;
    min-height:52px!important;
}
.family-row input[name="dependent_ic[]"]{
    grid-area:ic;
    width:100%;
    min-width:0;
    min-height:52px!important;
}
.family-row textarea[name="dependent_address[]"]{
    grid-area:address;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    min-height:92px!important;
    height:92px;
    line-height:1.45;
    resize:vertical;
    box-sizing:border-box;
}
.family-row .family-remove{
    grid-area:remove;
    width:100%;
    min-height:52px!important;
    justify-content:center;
    align-self:start!important;
}
@media(max-width:820px){
    .family-row{
        grid-template-columns:1fr!important;
        grid-template-areas:
            "relation"
            "name"
            "ic"
            "address"
            "remove";
    }
}


/* V17 family row phone + admin family print */
.family-row{
    width:100%;
    max-width:100%;
    display:grid!important;
    grid-template-columns:150px minmax(0,1fr) 180px 180px 92px!important;
    grid-template-areas:
        "relation name ic phone remove"
        "address address address address address";
    gap:10px!important;
    align-items:start!important;
    border:1px solid #e2e8f0;
    border-radius:18px;
    padding:14px!important;
    background:#f8fafc;
    overflow:hidden;
}
.family-row select{grid-area:relation;width:100%;min-width:0;min-height:52px!important}
.family-row input[name="dependent_name[]"]{grid-area:name;width:100%;min-width:0;min-height:52px!important}
.family-row input[name="dependent_ic[]"]{grid-area:ic;width:100%;min-width:0;min-height:52px!important}
.family-row input[name="dependent_phone[]"]{grid-area:phone;width:100%;min-width:0;min-height:52px!important}
.family-row textarea[name="dependent_address[]"]{
    grid-area:address;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    min-height:92px!important;
    height:92px;
    line-height:1.45;
    resize:vertical;
    box-sizing:border-box;
}
.family-row .family-remove{grid-area:remove;width:100%;min-height:52px!important;justify-content:center;align-self:start!important}
@media(max-width:960px){
    .family-row{
        grid-template-columns:1fr 1fr!important;
        grid-template-areas:
            "relation name"
            "ic phone"
            "address address"
            "remove remove";
    }
}
@media(max-width:640px){
    .family-row{
        grid-template-columns:1fr!important;
        grid-template-areas:"relation" "name" "ic" "phone" "address" "remove";
    }
}


/* V18 family layout: nama panjang, telefon bawah, alamat separuh */
.family-row{
    width:100%;
    max-width:100%;
    display:grid!important;
    grid-template-columns:150px minmax(260px,1.4fr) minmax(260px,1.4fr) 210px 92px!important;
    grid-template-areas:
        "relation name name ic remove"
        "phone address address . .";
    gap:10px!important;
    align-items:start!important;
    border:1px solid #e2e8f0;
    border-radius:18px;
    padding:14px!important;
    background:#f8fafc;
    overflow:hidden;
}
.family-row select{
    grid-area:relation;
    width:100%;
    min-width:0;
    min-height:52px!important;
}
.family-row input[name="dependent_name[]"]{
    grid-area:name;
    width:100%;
    min-width:0;
    min-height:52px!important;
}
.family-row input[name="dependent_ic[]"]{
    grid-area:ic;
    width:100%;
    min-width:0;
    min-height:52px!important;
}
.family-row input[name="dependent_phone[]"]{
    grid-area:phone;
    width:100%;
    min-width:0;
    min-height:52px!important;
}
.family-row textarea[name="dependent_address[]"]{
    grid-area:address;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    min-height:72px!important;
    height:72px;
    line-height:1.4;
    resize:vertical;
    box-sizing:border-box;
}
.family-row .family-remove{
    grid-area:remove;
    width:100%;
    min-height:52px!important;
    justify-content:center;
    align-self:start!important;
}
@media(max-width:960px){
    .family-row{
        grid-template-columns:1fr 1fr!important;
        grid-template-areas:
            "relation name"
            "ic phone"
            "address address"
            "remove remove";
    }
    .family-row textarea[name="dependent_address[]"]{
        min-height:82px!important;
        height:82px;
    }
}
@media(max-width:640px){
    .family-row{
        grid-template-columns:1fr!important;
        grid-template-areas:
            "relation"
            "name"
            "ic"
            "phone"
            "address"
            "remove";
    }
}


/* V19 family layout final: nama panjang, telefon bawah, alamat separuh, mak/ayah */
.family-row{
    width:100%;
    max-width:100%;
    display:grid!important;
    grid-template-columns:150px minmax(420px,2fr) minmax(210px,.9fr) 92px!important;
    grid-template-areas:
        "relation name ic remove"
        "phone address address .";
    gap:10px!important;
    align-items:start!important;
    border:1px solid #e2e8f0;
    border-radius:18px;
    padding:14px!important;
    background:#f8fafc;
    overflow:hidden;
}
.family-row select{
    grid-area:relation;
    width:100%;
    min-width:0;
    min-height:52px!important;
}
.family-row input[name="dependent_name[]"]{
    grid-area:name;
    width:100%;
    min-width:0;
    min-height:52px!important;
}
.family-row input[name="dependent_ic[]"]{
    grid-area:ic;
    width:100%;
    min-width:0;
    min-height:52px!important;
}
.family-row input[name="dependent_phone[]"]{
    grid-area:phone;
    width:100%;
    max-width:260px;
    min-width:0;
    min-height:52px!important;
}
.family-row textarea[name="dependent_address[]"]{
    grid-area:address;
    width:100%!important;
    max-width:560px!important;
    min-width:0!important;
    min-height:78px!important;
    height:78px;
    line-height:1.4;
    resize:vertical;
    box-sizing:border-box;
}
.family-row .family-remove{
    grid-area:remove;
    width:100%;
    min-height:52px!important;
    justify-content:center;
    align-self:start!important;
}
@media(max-width:960px){
    .family-row{
        grid-template-columns:1fr 1fr!important;
        grid-template-areas:
            "relation name"
            "ic phone"
            "address address"
            "remove remove";
    }
    .family-row textarea[name="dependent_address[]"]{
        max-width:100%!important;
    }
}
@media(max-width:640px){
    .family-row{
        grid-template-columns:1fr!important;
        grid-template-areas:
            "relation"
            "name"
            "ic"
            "phone"
            "address"
            "remove";
    }
    .family-row input[name="dependent_phone[]"]{
        max-width:100%;
    }
}


/* V20 fix button buang supaya sentiasa nampak dan kemas */
.family-row{
    width:100%;
    max-width:100%;
    display:grid!important;
    grid-template-columns:180px minmax(380px,1.8fr) 230px!important;
    grid-template-areas:
        "relation name ic"
        "phone address remove";
    gap:10px!important;
    align-items:start!important;
    border:1px solid #e2e8f0;
    border-radius:18px;
    padding:14px!important;
    background:#f8fafc;
    overflow:hidden;
}
.family-row select{
    grid-area:relation;
    width:100%;
    min-width:0;
    min-height:52px!important;
}
.family-row input[name="dependent_name[]"]{
    grid-area:name;
    width:100%;
    min-width:0;
    min-height:52px!important;
}
.family-row input[name="dependent_ic[]"]{
    grid-area:ic;
    width:100%;
    min-width:0;
    min-height:52px!important;
}
.family-row input[name="dependent_phone[]"]{
    grid-area:phone;
    width:100%;
    max-width:220px;
    min-width:0;
    min-height:52px!important;
}
.family-row textarea[name="dependent_address[]"]{
    grid-area:address;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    min-height:78px!important;
    height:78px;
    line-height:1.4;
    resize:vertical;
    box-sizing:border-box;
}
.family-row .family-remove{
    grid-area:remove;
    width:100%;
    max-width:110px;
    min-height:44px!important;
    height:44px;
    align-self:center!important;
    justify-self:start;
    justify-content:center;
    padding:0 12px!important;
    font-size:14px;
    border-radius:12px;
}
@media(max-width:960px){
    .family-row{
        grid-template-columns:1fr 1fr!important;
        grid-template-areas:
            "relation name"
            "ic phone"
            "address address"
            "remove remove";
    }
    .family-row .family-remove{
        max-width:160px;
        justify-self:start;
    }
}
@media(max-width:640px){
    .family-row{
        grid-template-columns:1fr!important;
        grid-template-areas:
            "relation"
            "name"
            "ic"
            "phone"
            "address"
            "remove";
    }
    .family-row input[name="dependent_phone[]"]{
        max-width:100%;
    }
    .family-row .family-remove{
        max-width:100%;
        width:100%;
    }
}


/* V23 landing menu + popup family modal */
.landing-actions-two{
    grid-template-columns:1fr 1fr;
    max-width:620px;
    margin:0 auto;
}
.family-summary-card{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:14px;
    border:1px solid #e2e8f0;
    background:#f8fafc;
    border-radius:16px;
    padding:14px;
}
.family-modal-backdrop{
    display:none;
    position:fixed;
    inset:0;
    background:rgba(15,23,42,.55);
    z-index:9999;
    padding:22px;
    overflow:auto;
}
.family-modal-backdrop.show{
    display:flex;
    align-items:flex-start;
    justify-content:center;
}
.family-modal-card{
    width:min(980px,100%);
    background:#fff;
    border-radius:22px;
    border:1px solid #dbe4ef;
    box-shadow:0 30px 90px rgba(0,0,0,.24);
    padding:20px;
    margin-top:30px;
}
.family-modal-head{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    gap:12px;
    margin-bottom:14px;
}
.family-modal-head h3{
    margin:0 0 4px;
    font-size:20px;
}
.family-help{
    background:#ecfeff;
    border:1px solid #a5f3fc;
    color:#155e75;
    border-radius:14px;
    padding:12px 14px;
    font-size:13px;
    margin-bottom:14px;
}
.family-modal-actions{
    display:flex;
    justify-content:space-between;
    gap:10px;
    margin-top:14px;
    flex-wrap:wrap;
}
.no-uppercase{ text-transform:none!important; }
.login-box .field input{ text-transform:none!important; }
@media(max-width:720px){
    .landing-actions-two{grid-template-columns:1fr;max-width:100%}
    .family-summary-card{align-items:flex-start;flex-direction:column}
    .family-modal-head{flex-direction:column}
}


/* V24 - UI keluarga lebih cantik dan seorang-seorang */
.family-section{
    border-top:1px dashed #d7e0ea;
    padding-top:8px;
}
.family-inline-header{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:14px;
    padding:16px 18px;
    border:1px solid #d9e2ec;
    background:linear-gradient(180deg,#f8fbff 0%,#f3f7fb 100%);
    border-radius:18px;
    margin-bottom:14px;
}
.family-cards{
    display:grid;
    gap:12px;
}
.family-list-card{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    padding:16px 18px;
    border:1px solid #dbe4ef;
    background:#fff;
    border-radius:18px;
    box-shadow:0 6px 16px rgba(15,23,42,.04);
}
.family-list-main{
    display:flex;
    align-items:flex-start;
    gap:12px;
    min-width:0;
}
.family-badge{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:86px;
    padding:8px 12px;
    border-radius:999px;
    background:#e0f2fe;
    color:#075985;
    font-weight:800;
    font-size:13px;
}
.family-list-name{
    font-size:18px;
    font-weight:800;
    color:#0f172a;
    margin-bottom:4px;
}
.family-list-meta{
    font-size:13px;
    color:#64748b;
    line-height:1.45;
}
.family-list-actions{
    display:flex;
    gap:8px;
    flex-wrap:wrap;
}
.family-empty{
    padding:18px;
    border:1px dashed #cbd5e1;
    border-radius:18px;
    background:#f8fafc;
    color:#475569;
    display:flex;
    flex-direction:column;
    gap:6px;
}
.red-soft{
    background:#fff1f2;
    color:#b91c1c;
    border:1px solid #fecdd3;
}
.family-modal-card-lg{
    width:min(1080px,100%);
}
.family-modal-grid{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:14px;
}
.family-modal-actions{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:14px;
    margin-top:16px;
}
.family-modal-actions-right{
    display:flex;
    gap:10px;
    flex-wrap:wrap;
    margin-left:auto;
}
@media(max-width:980px){
    .family-modal-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media(max-width:720px){
    .family-inline-header,
    .family-list-card,
    .family-modal-actions{flex-direction:column;align-items:stretch;}
    .family-list-actions,
    .family-modal-actions-right{width:100%;}
    .family-list-actions .btn,
    .family-modal-actions .btn,
    .family-modal-actions-right .btn{width:100%;justify-content:center;}
    .family-modal-grid{grid-template-columns:1fr;}
}


/* V25 - public semak guna gaya senarai admin */
.compact-head{margin-bottom:14px;}
.public-admin-table-wrap{margin-top:14px;}
.public-admin-table .actions-tight{gap:8px;flex-wrap:wrap;}
.public-admin-table .actions-tight .btn{padding:8px 12px;font-size:13px;}
.public-admin-table .sub-row td{background:#fbfdff;}
.sub-name-line{display:flex;align-items:center;gap:10px;}
.tree-stem{position:relative;display:inline-block;width:20px;min-width:20px;height:14px;}
.tree-stem::before{content:'';position:absolute;left:8px;top:-8px;bottom:4px;width:2px;background:#cbd5e1;}
.tree-stem::after{content:'';position:absolute;left:8px;top:8px;width:14px;height:2px;background:#cbd5e1;}
.sub-inline{display:block;margin-left:30px;margin-top:3px;}
.sub-pill{background:#eef6ff;color:#1d4ed8;}
.public-result-note{margin-top:12px;}
@media(max-width:900px){
  .public-admin-table td .actions{flex-direction:column;align-items:stretch;}
  .public-admin-table td .actions form,.public-admin-table td .actions a{width:100%;}
  .public-admin-table td .actions .btn{width:100%;justify-content:center;}
}


/* V26 - warna hubungan + icon + print mode */
.btn.teal{background:#0f766e;color:#fff;border:1px solid #0f766e;}
.btn.teal:hover{filter:brightness(.96);}
.relation-badge{display:inline-flex;align-items:center;gap:8px;padding:7px 12px;border-radius:999px;font-size:13px;font-weight:800;border:1px solid transparent;white-space:nowrap;}
.relation-icon{font-size:15px;line-height:1;}
.rel-pemohon{background:#e0f2fe;color:#075985;border-color:#bae6fd;}
.rel-pasangan{background:#fdf2f8;color:#be185d;border-color:#fbcfe8;}
.rel-anak{background:#ecfeff;color:#0f766e;border-color:#a5f3fc;}
.rel-mak{background:#fff7ed;color:#c2410c;border-color:#fed7aa;}
.rel-ayah{background:#eef2ff;color:#4338ca;border-color:#c7d2fe;}
.role-pemohon-row td{background:#f7fcff;}
.role-pasangan-row td{background:#fff9fc;}
.role-anak-row td{background:#f9ffff;}
.role-mak-row td{background:#fffaf5;}
.role-ayah-row td{background:#f8f9ff;}
.public-print-actions{justify-content:flex-start;align-items:center;}
.public-print-actions form{margin:0;}
.public-print-actions .btn.outline{padding:8px 12px;font-size:13px;}
@media(max-width:1200px){
  .public-print-actions{flex-direction:column;align-items:stretch;}
  .public-print-actions form,.public-print-actions a{width:100%;}
  .public-print-actions .btn{width:100%;justify-content:center;}
}


/* V27 - baiki ruang kosong public + admin papar family */
.public-container{
    max-width:1360px;
}
.public-stats,
.public-container .section-head,
.public-container > .card,
.public-result-card{
    max-width:1100px;
    margin-left:auto;
    margin-right:auto;
}
.public-admin-table-wrap{
    max-width:100%;
}
.public-admin-table{
    min-width:980px;
}
.public-result-card .summary-grid{
    grid-template-columns:repeat(3,minmax(0,1fr));
}
.family-inline-header-compact{
    padding:12px 14px;
    margin-bottom:10px;
}
.family-inline-header-compact .muted{
    display:none!important;
}
.family-cards.is-empty{
    display:none;
}
.family-empty{
    display:none!important;
}
.admin-family-table .sub-row td{
    background:#fbfdff;
}
.admin-family-table .actions{
    gap:8px;
    flex-wrap:wrap;
}
.admin-family-table .actions .btn{
    padding:8px 11px;
    font-size:13px;
}
@media(max-width:1100px){
    .public-result-card .summary-grid{
        grid-template-columns:1fr 1fr;
    }
}
@media(max-width:760px){
    .public-result-card .summary-grid{
        grid-template-columns:1fr;
    }
}


/* V28 - compact public semak + dropdown relationship + edit popup */
.public-result-card-compact .summary-grid{
    display:none!important;
}
.public-result-card-compact .compact-head{
    margin-bottom:10px;
}
.public-result-card-compact .compact-head h2{
    margin-bottom:4px;
}
.public-admin-table-compact th,
.public-admin-table-compact td{
    padding:8px 10px!important;
    vertical-align:middle;
}
.public-admin-table-compact td{
    font-size:14px;
}
.public-admin-table-compact .sub-row td{
    padding-top:7px!important;
    padding-bottom:7px!important;
}
.public-admin-table-compact .actions-tight{
    gap:6px;
}
.public-admin-table-compact .actions-tight .btn{
    padding:6px 9px;
    font-size:12px;
    border-radius:9px;
}
.public-admin-table-compact .sub-name-line{
    gap:7px;
}
.public-admin-table-compact .tree-stem{
    width:16px;
    min-width:16px;
}
.relation-view-select{
    width:126px;
    min-height:34px;
    border-radius:999px;
    border:1px solid #cbd5e1;
    background:#fff;
    padding:5px 9px;
    font-weight:800;
    font-size:13px;
    color:#0f172a;
}
.relation-pemohon-select{
    background:#e0f2fe;
    color:#075985;
    border-color:#bae6fd;
}
.public-relation-select{
    background:#f8fafc;
}
.public-relation-field select{
    min-height:42px;
}
.public-main-only textarea,
#public_edit_alamat_kp{
    min-height:82px;
}
.public-result-note{
    font-size:13px;
    margin-top:8px;
}
.rel-suami{background:#eef2ff;color:#4338ca;border-color:#c7d2fe;}
.rel-isteri{background:#fdf2f8;color:#be185d;border-color:#fbcfe8;}
.rel-ibu{background:#fff7ed;color:#c2410c;border-color:#fed7aa;}
.rel-bapa{background:#eef2ff;color:#3730a3;border-color:#c7d2fe;}
.role-suami-row td{background:#f8f9ff;}
.role-isteri-row td{background:#fff9fc;}
.role-ibu-row td{background:#fffaf5;}
.role-bapa-row td{background:#f8f9ff;}
@media(max-width:1100px){
    .public-admin-table-compact{
        min-width:1050px;
    }
}


/* V29 - public table clean + admin toggle family */
.public-admin-table-compact th,
.public-admin-table-compact td{
    padding:7px 9px!important;
}
.public-admin-table-compact .actions-tight{
    gap:5px;
}
.public-admin-table-compact .actions-tight .btn{
    padding:6px 9px;
}
.public-admin-table-compact .public-print-actions{
    flex-direction:column;
    align-items:flex-start;
}
.public-admin-table-compact .public-print-actions .btn,
.public-admin-table-compact .public-print-actions form{
    width:auto!important;
}
.public-result-card-compact{
    padding-bottom:18px;
}
.admin-family-toggle{
    border:1px solid #0f766e;
}
.admin-family-child td{
    background:#fbfdff!important;
}
.admin-family-table .role-pemohon-row td{
    border-bottom:1px solid #dbe4ef;
}
.admin-family-table .admin-family-child td{
    border-top:0;
}
@media(max-width:1200px){
    .public-admin-table-compact{
        min-width:920px;
    }
}


/* V37 - Homepage premium */
.landing-page-premium{
    min-height:100vh;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:32px;
    background:
        radial-gradient(circle at 18% 20%, rgba(15,118,110,.20), transparent 28%),
        radial-gradient(circle at 82% 76%, rgba(14,165,233,.16), transparent 30%),
        linear-gradient(135deg,#f8fafc 0%,#eef7f8 52%,#f4fbfb 100%);
}
.landing-card-premium{
    position:relative;
    width:min(780px,100%);
    overflow:hidden;
    background:
        linear-gradient(180deg,rgba(255,255,255,.96),rgba(255,255,255,.90)),
        radial-gradient(circle at top right,rgba(20,184,166,.14),transparent 38%);
    border:1px solid rgba(203,213,225,.92);
    border-radius:34px;
    box-shadow:
        0 32px 100px rgba(15,23,42,.16),
        inset 0 1px 0 rgba(255,255,255,.85);
    padding:54px 58px 46px;
    text-align:center;
}
.landing-card-premium::before{
    content:'';
    position:absolute;
    inset:18px;
    border-radius:26px;
    border:1px solid rgba(15,118,110,.08);
    pointer-events:none;
}
.landing-card-premium::after{
    content:'';
    position:absolute;
    width:260px;
    height:260px;
    border-radius:999px;
    background:linear-gradient(135deg,rgba(15,118,110,.10),rgba(14,165,233,.08));
    right:-105px;
    top:-110px;
    pointer-events:none;
}
.landing-admin-top{
    position:absolute;
    right:26px;
    top:24px;
    z-index:3;
}
.landing-admin-mini{
    display:inline-flex;
    align-items:center;
    gap:6px;
    padding:8px 13px;
    border-radius:999px;
    background:#f8fafc;
    color:#334155;
    border:1px solid #dbe4ef;
    font-size:13px;
    font-weight:800;
    box-shadow:0 8px 20px rgba(15,23,42,.06);
}
.landing-admin-mini:hover{
    background:#0f172a;
    color:#fff;
}
.landing-emblem{
    width:66px;
    height:66px;
    margin:0 auto 14px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:22px;
    background:linear-gradient(135deg,#0f766e,#155e75);
    color:#fff;
    font-size:30px;
    font-weight:900;
    box-shadow:0 18px 38px rgba(15,118,110,.25);
}
.landing-card-premium .landing-badge{
    background:#ecfeff;
    color:#155e75;
    box-shadow:inset 0 0 0 1px rgba(15,118,110,.08);
    margin-bottom:18px;
}
.landing-card-premium h1{
    margin:0;
    font-size:48px;
    line-height:1.05;
    letter-spacing:-.045em;
    color:#0f172a;
    font-weight:950;
}
.landing-actions-premium{
    width:min(470px,100%);
    margin:34px auto 0;
    display:block;
}
.landing-btn-main{
    min-height:118px;
    border-radius:28px;
    padding:24px 28px;
    justify-content:center;
    background:
        linear-gradient(135deg,#155e75 0%,#0f766e 58%,#0d9488 100%)!important;
    box-shadow:
        0 22px 44px rgba(15,118,110,.26),
        inset 0 1px 0 rgba(255,255,255,.20);
}
.landing-btn-main .landing-icon{
    width:62px;
    height:62px;
    border-radius:22px;
    font-size:30px;
    background:rgba(255,255,255,.20);
}
.landing-btn-main strong{
    font-size:25px;
    letter-spacing:-.02em;
}
.landing-btn-main small{
    font-size:15px;
    opacity:.92;
}
.landing-mini-note{
    display:inline-flex;
    margin-top:22px;
    padding:9px 14px;
    border-radius:999px;
    background:#f8fafc;
    color:#64748b;
    border:1px solid #e2e8f0;
    font-size:13px;
    font-weight:700;
}
@media(max-width:720px){
    .landing-page-premium{padding:18px}
    .landing-card-premium{padding:56px 24px 32px;border-radius:28px}
    .landing-admin-top{right:18px;top:16px}
    .landing-card-premium h1{font-size:38px}
    .landing-btn-main{min-height:106px;padding:20px;text-align:left;justify-content:flex-start}
    .landing-btn-main strong{font-size:22px}
}


/* V38 - Logo surau + tajuk uppercase */
.landing-logo-wrap{
    width:112px;
    height:112px;
    margin:0 auto 16px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:28px;
    background:#fff;
    border:1px solid #e2e8f0;
    box-shadow:0 16px 36px rgba(15,23,42,.10);
    padding:10px;
    overflow:hidden;
}
.landing-logo-wrap img{
    width:100%;
    height:100%;
    object-fit:contain;
    display:block;
}
.landing-card-premium h1{
    font-size:42px!important;
    line-height:1.08!important;
    letter-spacing:-.035em!important;
    text-transform:uppercase;
}
.landing-btn-main strong{
    text-transform:uppercase;
    letter-spacing:.01em;
}
.landing-emblem{
    display:none!important;
}
@media(max-width:720px){
    .landing-logo-wrap{
        width:94px;
        height:94px;
        border-radius:24px;
    }
    .landing-card-premium h1{
        font-size:32px!important;
    }
}


/* V39 - notifikasi update compact */
.alert-compact-update{
    width:fit-content!important;
    max-width:calc(100% - 28px)!important;
    margin:8px auto 14px!important;
    padding:10px 18px!important;
    border-radius:999px!important;
    background:#ecfeff!important;
    border:1px solid #a5f3fc!important;
    color:#155e75!important;
    font-size:14px!important;
    font-weight:700!important;
    box-shadow:0 10px 24px rgba(15,118,110,.08)!important;
}
.alert-compact-update::before{
    content:'✓';
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:20px;
    height:20px;
    margin-right:8px;
    border-radius:999px;
    background:#0f766e;
    color:#fff;
    font-size:12px;
    font-weight:900;
}
@media(max-width:640px){
    .alert-compact-update{
        width:auto!important;
        display:block!important;
        border-radius:16px!important;
        text-align:center;
    }
}


/* V40 - Homepage statistik + font Montserrat */
.landing-page-v40,
.landing-page-v40 *{
    font-family:'Montserrat', 'Inter', Arial, Helvetica, sans-serif!important;
}
.landing-card-v40{
    width:min(960px,100%);
    padding:44px 58px 44px!important;
}
.landing-card-v40 .landing-logo-wrap{
    width:108px;
    height:108px;
    margin-bottom:14px;
}
.landing-card-v40 .landing-badge{
    margin-bottom:18px;
    letter-spacing:.10em;
    font-weight:900;
}
.landing-card-v40 h1{
    font-size:43px!important;
    line-height:1.08!important;
    letter-spacing:-.045em!important;
    margin-bottom:0!important;
    font-weight:900!important;
}
.landing-stats-v40{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:18px;
    margin:34px auto 28px;
    width:100%;
}
.landing-stat-card{
    min-height:134px;
    border-radius:24px;
    background:rgba(255,255,255,.84);
    border:1px solid #dbe4ef;
    box-shadow:
        0 16px 36px rgba(15,23,42,.08),
        inset 0 1px 0 rgba(255,255,255,.95);
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:8px;
    padding:16px 12px;
    position:relative;
    overflow:hidden;
}
.landing-stat-card::before{
    content:'';
    position:absolute;
    width:86px;
    height:86px;
    border-radius:999px;
    background:rgba(14,165,233,.07);
    top:-32px;
    right:-28px;
}
.landing-stat-card .stat-icon{
    width:48px;
    height:48px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:50%;
    background:#eef9fb;
    border:1px solid #d9eef2;
    font-size:22px;
    box-shadow:0 8px 18px rgba(15,23,42,.06);
}
.landing-stat-card small{
    color:#475569;
    font-size:13px;
    font-weight:800;
    text-align:center;
}
.landing-stat-card strong{
    color:#0f766e;
    font-size:38px;
    line-height:1;
    font-weight:900;
    letter-spacing:-.04em;
}
.landing-card-v40 .landing-actions-premium{
    width:min(560px,100%);
    margin-top:0!important;
}
.landing-card-v40 .landing-btn-main{
    min-height:108px;
    border-radius:28px;
}
.landing-card-v40 .landing-btn-main strong{
    font-size:28px;
    font-weight:900;
}
.landing-card-v40 .landing-btn-main small{
    font-size:15px;
    font-weight:700;
}
.landing-card-v40 .landing-mini-note{
    display:none!important;
}
@media(max-width:900px){
    .landing-card-v40{
        padding:44px 28px 34px!important;
    }
    .landing-stats-v40{
        grid-template-columns:repeat(2,minmax(0,1fr));
        gap:14px;
    }
}
@media(max-width:560px){
    .landing-card-v40 h1{
        font-size:31px!important;
    }
    .landing-stats-v40{
        grid-template-columns:1fr;
    }
    .landing-stat-card{
        min-height:110px;
    }
    .landing-stat-card strong{
        font-size:32px;
    }
}


/* V43 - warna bucu card dibezakan lagi supaya lebih jelas */
.landing-stats-v40 .landing-stat-card:nth-child(1)::before{
    background:linear-gradient(135deg,rgba(139,92,246,.28),rgba(196,181,253,.12));
}
.landing-stats-v40 .landing-stat-card:nth-child(2)::before{
    background:linear-gradient(135deg,rgba(34,197,94,.26),rgba(134,239,172,.12));
}
.landing-stats-v40 .landing-stat-card:nth-child(3)::before{
    background:linear-gradient(135deg,rgba(249,115,22,.28),rgba(253,186,116,.12));
}
.landing-stats-v40 .landing-stat-card:nth-child(4)::before{
    background:linear-gradient(135deg,rgba(236,72,153,.26),rgba(251,182,206,.12));
}
.landing-stats-v40 .landing-stat-card:nth-child(1) .stat-icon{
    background:#f5f3ff;
    border-color:#ddd6fe;
}
.landing-stats-v40 .landing-stat-card:nth-child(2) .stat-icon{
    background:#f0fdf4;
    border-color:#bbf7d0;
}
.landing-stats-v40 .landing-stat-card:nth-child(3) .stat-icon{
    background:#fff7ed;
    border-color:#fdba74;
}
.landing-stats-v40 .landing-stat-card:nth-child(4) .stat-icon{
    background:#fdf2f8;
    border-color:#f9a8d4;
}
.landing-stats-v40 .landing-stat-card:nth-child(1) strong{color:#7c3aed}
.landing-stats-v40 .landing-stat-card:nth-child(2) strong{color:#16a34a}
.landing-stats-v40 .landing-stat-card:nth-child(3) strong{color:#ea580c}
.landing-stats-v40 .landing-stat-card:nth-child(4) strong{color:#db2777}


/* V44 - hard logo fix untuk public hosting/cache */
.landing-logo-wrap{
    width:112px!important;
    height:112px!important;
    max-width:112px!important;
    max-height:112px!important;
    min-width:112px!important;
    min-height:112px!important;
    overflow:hidden!important;
    box-sizing:border-box!important;
}
.landing-logo-wrap img{
    width:88px!important;
    height:88px!important;
    max-width:88px!important;
    max-height:88px!important;
    min-width:0!important;
    min-height:0!important;
    object-fit:contain!important;
    display:block!important;
    position:static!important;
    inset:auto!important;
    transform:none!important;
}


/* V45 - hard inline stats backup + responsive */
@media(max-width:900px){
    .landing-stats-v40{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
}
@media(max-width:560px){
    .landing-stats-v40{grid-template-columns:1fr!important;}
    .landing-card-v40{padding:52px 24px 34px!important;}
    .landing-card-v40 h1{font-size:31px!important;}
}


/* V46 - safety: elak overflow homepage mobile */
html, body{max-width:100%; overflow-x:hidden;}


/* V48 - Pengakuan Bahagian A sebelum hantar pendaftaran */
.declaration-box{
    margin-top:18px;
    padding:15px 16px;
    border:1px solid #bae6fd;
    background:linear-gradient(135deg,#f0f9ff,#ffffff);
    border-radius:14px;
}
.declaration-check{
    display:flex;
    align-items:flex-start;
    gap:10px;
    font-weight:800;
    color:#0f172a;
    line-height:1.45;
}
.declaration-check input{
    width:20px;
    height:20px;
    min-width:20px;
    margin-top:1px;
    accent-color:var(--brand);
}
.declaration-box .muted{
    margin-top:7px;
    padding-left:30px;
}
@media(max-width:560px){
    .declaration-box{padding:14px;}
    .declaration-box .muted{padding-left:0;}
}


/* V49 - semak alert ikut lebar borang + admin list buang kolum kariah */
.public-container > .warn{
    max-width:1100px;
    width:100%;
    margin:8px auto 0!important;
    display:block;
    line-height:1.45;
    overflow-wrap:anywhere;
}
.public-container > .warn + .card{
    margin-top:0;
}
.admin-family-table th:last-child,
.admin-family-table td:last-child{
    width:260px;
}
.admin-family-table .actions{
    align-items:flex-start;
}
@media(max-width:760px){
    .public-container > .warn{
        max-width:100%;
        margin-left:0!important;
        margin-right:0!important;
        font-size:13px;
    }
}

/* V50 - kemaskan butang tindakan admin supaya tidak serabut */
.admin-family-table th:last-child,
.admin-family-table td:last-child{
    width:220px!important;
    min-width:220px;
}
.admin-row-actions{
    display:flex;
    align-items:flex-start;
    gap:8px;
    flex-wrap:nowrap;
}
.admin-row-actions > .btn,
.admin-action-menu > summary{
    min-height:38px;
    height:38px;
    padding:8px 12px!important;
    border-radius:10px;
    font-size:13px;
    line-height:1;
    white-space:nowrap;
}
.admin-action-menu{
    position:relative;
    margin:0;
}
.admin-action-menu > summary{
    list-style:none;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:6px;
    cursor:pointer;
    user-select:none;
    background:#fff;
    border:1px solid #cbd5e1;
    color:#0f172a;
    font-weight:800;
}
.admin-action-menu > summary::-webkit-details-marker{
    display:none;
}
.admin-action-menu > summary::after{
    content:'▾';
    font-size:11px;
    color:#64748b;
    margin-left:2px;
}
.admin-action-menu[open] > summary::after{
    content:'▴';
}
.admin-action-panel{
    margin-top:8px;
    padding:8px;
    border:1px solid #dbe4ef;
    border-radius:12px;
    background:#fff;
    box-shadow:0 10px 24px rgba(15,23,42,.08);
    display:grid;
    gap:7px;
    min-width:178px;
}
.admin-action-panel .btn{
    width:100%;
    justify-content:center;
    min-height:36px;
    padding:8px 10px!important;
    font-size:13px;
    border-radius:9px;
}
@media(max-width:760px){
    .admin-family-table th:last-child,
    .admin-family-table td:last-child{
        width:210px!important;
        min-width:210px;
    }
    .admin-row-actions{
        flex-wrap:wrap;
    }
}

/* V51 - kemaskan semua butang admin + Backup Data + No. Rujukan */
.topbar{
    padding:16px 24px;
}
.topbar-inner{
    align-items:flex-start;
}
.admin-nav-v51{
    justify-content:flex-end;
    gap:7px;
    max-width:680px;
}
.admin-nav-v51 a,
.admin-nav-v51 .nav-menu > summary{
    min-height:38px;
    padding:8px 12px!important;
    border-radius:10px;
    font-size:14px;
    line-height:1;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    white-space:nowrap;
}
.nav-menu{
    position:relative;
}
.nav-menu > summary{
    list-style:none;
    cursor:pointer;
    user-select:none;
    border:1px solid rgba(255,255,255,.22);
    background:rgba(255,255,255,.08);
    color:#fff;
    font-weight:800;
}
.nav-menu > summary::-webkit-details-marker{
    display:none;
}
.nav-menu > summary::after{
    content:'▾';
    font-size:10px;
    margin-left:7px;
    opacity:.85;
}
.nav-menu[open] > summary::after{
    content:'▴';
}
.nav-menu-panel{
    position:absolute;
    top:44px;
    right:0;
    z-index:50;
    min-width:170px;
    padding:8px;
    border-radius:14px;
    background:#fff;
    border:1px solid #dbe4ef;
    box-shadow:0 18px 40px rgba(15,23,42,.20);
    display:grid;
    gap:7px;
}
.admin-nav-v51 .nav-menu-panel a{
    background:#f8fafc!important;
    color:#0f172a!important;
    border:1px solid #e2e8f0!important;
    width:100%;
    justify-content:flex-start;
    font-size:13px;
}
.admin-nav-v51 .nav-menu-panel a:hover{
    background:#ecfeff!important;
    border-color:#a5f3fc!important;
}
.list-head-v51{
    align-items:center;
}
.list-head-actions{
    justify-content:flex-end;
    gap:7px;
}
.list-head-actions .btn,
.search-actions-v51 .btn{
    min-height:38px;
    padding:8px 12px!important;
    border-radius:10px;
    font-size:13px;
    white-space:nowrap;
}
.search-card-v51{
    padding:18px;
}
.search-actions-v51{
    align-items:flex-end;
}
.search-actions-v51 .field{
    min-width:360px;
}
.registration-ref-box{
    margin:14px auto 16px;
    width:min(460px,100%);
    padding:16px 18px;
    border-radius:18px;
    background:linear-gradient(135deg,#ecfeff,#f8fafc);
    border:1px solid #a5f3fc;
    box-shadow:0 12px 26px rgba(15,23,42,.06);
    text-align:center;
}
.registration-ref-box span,
.registration-ref-box small{
    display:block;
    color:#64748b;
    font-size:12px;
}
.registration-ref-box strong{
    display:block;
    margin:6px 0;
    font-size:24px;
    letter-spacing:.04em;
    color:#0f172a;
}
.admin-family-table th:last-child,
.admin-family-table td:last-child{
    width:205px!important;
    min-width:205px!important;
}
.admin-row-actions{
    align-items:center;
    gap:6px;
}
.admin-row-actions > .btn,
.admin-action-menu > summary{
    min-height:36px;
    height:36px;
    padding:7px 11px!important;
    font-size:13px;
}
.admin-action-panel{
    position:absolute;
    right:0;
    z-index:40;
}
@media(max-width:900px){
    .topbar-inner{
        display:block;
    }
    .admin-nav-v51{
        justify-content:flex-start;
        max-width:none;
        margin-top:14px;
    }
    .nav-menu-panel{
        left:0;
        right:auto;
    }
    .list-head-v51{
        display:block;
    }
    .list-head-actions{
        justify-content:flex-start;
        margin-top:12px;
    }
}
@media(max-width:760px){
    .admin-nav-v51 a,
    .admin-nav-v51 .nav-menu > summary,
    .list-head-actions .btn,
    .search-actions-v51 .btn{
        width:100%;
        justify-content:center;
    }
    .nav-menu{
        width:100%;
    }
    .nav-menu-panel{
        position:static;
        margin-top:7px;
        box-shadow:none;
    }
    .search-actions-v51 .field{
        min-width:100%;
    }
}


/* V56 - Public pages theme synced with homepage v5 */
body.public-v5-body{
    background:linear-gradient(180deg,#eff0ea 0%,#e6e7e0 100%);
    color:#123326;
    font-family:"Inter","Segoe UI",Arial,sans-serif;
}
body.public-v5-body .public-v5-shell{min-height:100vh;padding:10px;}
body.public-v5-body .public-v5-window{
    width:min(1680px,100%);
    margin:0 auto;
    background:linear-gradient(180deg,#fbfaf5 0%,#f6f4ec 100%);
    border:1px solid #d7d1c4;
    border-radius:22px;
    box-shadow:0 18px 44px rgba(23,34,29,.09), inset 0 1px 0 rgba(255,255,255,.78);
    padding:20px 26px 24px;
    position:relative;
    overflow:hidden;
}
body.public-v5-body .public-v5-window::before{
    content:"";position:absolute;left:0;top:0;width:360px;height:240px;
    background:radial-gradient(circle at 28% 30%, rgba(22,163,74,.10), transparent 38%),
               linear-gradient(transparent 92%, rgba(209,198,176,.20) 92%),
               linear-gradient(90deg, transparent 92%, rgba(209,198,176,.20) 92%);
    background-size:auto,24px 24px,24px 24px;opacity:.34;clip-path:polygon(0 0,100% 0,78% 100%,0 100%);pointer-events:none;
}
body.public-v5-body .public-v5-window::after{
    content:"";position:absolute;right:-140px;top:30px;width:760px;height:760px;border-radius:48px;
    background:radial-gradient(circle, rgba(255,255,255,.95) 0%, rgba(255,255,255,.80) 55%, rgba(255,255,255,0) 74%);pointer-events:none;
}
body.public-v5-body .public-v5-header{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;position:relative;z-index:2;}
body.public-v5-body .public-v5-brand{display:flex;align-items:flex-start;gap:18px;min-width:0;}
body.public-v5-body .public-v5-logo img{width:84px;height:auto;display:block;object-fit:contain;}
body.public-v5-body .public-v5-divider{width:1px;align-self:stretch;background:#cec7b7;}
body.public-v5-body .public-v5-brand-copy{display:flex;flex-direction:column;justify-content:center;min-width:0;}
body.public-v5-body .public-v5-brand-name{font-family:Georgia,"Times New Roman",serif;font-size:18px;font-weight:800;letter-spacing:.03em;color:#1f6b36;line-height:1.02;margin-top:0;}
body.public-v5-body .public-v5-brand-reg{margin-top:2px;font-family:Georgia,"Times New Roman",serif;font-size:11px;font-weight:700;line-height:1.18;color:#222;} 
body.public-v5-body .public-v5-brand-meta{margin-top:2px;font-family:Georgia,"Times New Roman",serif;color:#222;font-size:13px;font-weight:700;line-height:1.18;}
body.public-v5-body .public-v5-nav{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end;}
body.public-v5-body .public-v5-nav a{
    display:inline-flex;align-items:center;gap:9px;padding:12px 16px;border-radius:16px;
    background:rgba(255,255,255,.76);border:1px solid #dfd7c7;color:#153a2b;font-size:14px;font-weight:700;
    box-shadow:0 8px 20px rgba(20,36,28,.04);
}
body.public-v5-body .public-v5-nav a.is-active{background:linear-gradient(135deg,#0c7a45 0%,#10995c 70%,#f59b23 160%);color:#fff;border-color:transparent;}
body.public-v5-body .public-v5-nav a.public-v5-admin-link{color:#0d5c37;}
body.public-v5-body .public-v5-container{max-width:1400px;margin:18px auto 0;padding:0;position:relative;z-index:2;}
body.public-v5-body .public-v5-title-card{
    display:flex;align-items:flex-start;justify-content:space-between;gap:18px;
    background:rgba(255,255,255,.58);border:1px solid #e0d7c7;border-radius:28px;
    padding:24px 26px;box-shadow:0 16px 38px rgba(28,41,31,.05);margin-bottom:18px;
}
body.public-v5-body .public-v5-title-pill{
    display:inline-flex;align-items:center;gap:10px;padding:10px 16px;border-radius:999px;background:#ecf9ef;
    border:1px solid #d6ecd9;color:#127446;font-size:13px;font-weight:800;white-space:nowrap;
}
body.public-v5-body .public-v5-title-card h1{margin:0 0 6px;font-family:"Sora",sans-serif;font-size:30px;line-height:1.15;color:#123326;}
body.public-v5-body .public-v5-title-card p{margin:0;color:#607067;font-size:14px;line-height:1.65;max-width:760px;}
body.public-v5-body .public-v5-stats-grid{display:grid;grid-template-columns:1.25fr 1fr 1fr 1fr;gap:16px;margin-bottom:18px;}
body.public-v5-body .public-v5-stat-card{
    position:relative;overflow:hidden;min-height:154px;padding:22px 20px 18px;border-radius:24px;
    background:rgba(255,255,255,.88);border:1px solid #e5decf;box-shadow:0 10px 24px rgba(26,39,31,.05);
}
body.public-v5-body .public-v5-stat-card::after{content:"";position:absolute;left:0;right:0;bottom:0;height:4px;background:#14a255;}
body.public-v5-body .public-v5-stat-card.orange::after{background:#ee8c18;}
body.public-v5-body .public-v5-stat-card .public-v5-stat-badge{
    position:absolute;right:16px;top:16px;width:42px;height:42px;border-radius:14px;display:flex;align-items:center;justify-content:center;
    background:#f4faf4;color:#1c7547;border:1px solid #dbeddc;font-size:18px;
}
body.public-v5-body .public-v5-stat-card.orange .public-v5-stat-badge{background:#fff7ee;color:#e18118;border-color:#f4d4ad;}
body.public-v5-body .public-v5-stat-card .public-v5-stat-kicker{font-size:14px;font-weight:800;color:#355244;margin-bottom:12px;}
body.public-v5-body .public-v5-stat-card .public-v5-stat-num{font-size:48px;line-height:.9;font-weight:800;color:#138548;letter-spacing:-.05em;}
body.public-v5-body .public-v5-stat-card.orange .public-v5-stat-num{color:#e37b12;}
body.public-v5-body .public-v5-stat-card .public-v5-stat-note{margin-top:12px;font-size:13px;line-height:1.55;color:#617068;max-width:230px;}
body.public-v5-body .public-v5-stat-card.featured-total{
    background:linear-gradient(135deg,#0c7a45 0%,#10995c 70%,#f59b23 180%);border-color:transparent;color:#fff;
    box-shadow:0 18px 38px rgba(18,117,68,.18);
}
body.public-v5-body .public-v5-stat-card.featured-total::after{background:rgba(255,255,255,.68);}
body.public-v5-body .public-v5-stat-card.featured-total .public-v5-stat-badge{background:rgba(255,255,255,.18);color:#fff;border-color:rgba(255,255,255,.22);}
body.public-v5-body .public-v5-stat-card.featured-total .public-v5-stat-kicker,
body.public-v5-body .public-v5-stat-card.featured-total .public-v5-stat-num,
body.public-v5-body .public-v5-stat-card.featured-total .public-v5-stat-note{color:#fff;}
body.public-v5-body .public-container .section-head,
body.public-v5-body .public-container > .card,
body.public-v5-body .public-container > .warn,
body.public-v5-body .public-container > .alert,
body.public-v5-body .public-result-card{max-width:none;margin-left:0;margin-right:0;}
body.public-v5-body .public-v5-section-head,
body.public-v5-body .public-container > .section-head{
    padding:22px 24px;border-radius:24px;background:rgba(255,255,255,.62);border:1px solid #e0d7c7;
    box-shadow:0 16px 38px rgba(28,41,31,.05);margin-bottom:16px;
}
body.public-v5-body .public-v5-section-head h2,
body.public-v5-body .public-container .section-head h2,
body.public-v5-body .card h2{font-size:24px;color:#123326;}
body.public-v5-body .muted{color:#67756d;font-size:13px;}
body.public-v5-body .card,
body.public-v5-body .public-result-card{
    background:rgba(255,255,255,.86);border:1px solid #e5decf;border-radius:24px;padding:24px;
    box-shadow:0 10px 24px rgba(26,39,31,.05);margin-bottom:18px;
}
body.public-v5-body .public-v5-form-card{padding:26px;}
body.public-v5-body .public-v5-search-card{padding:20px 22px;}
body.public-v5-body .field label{font-size:13px;font-weight:800;color:#2e4339;margin-bottom:7px;}
body.public-v5-body .field input,
body.public-v5-body .field textarea,
body.public-v5-body .field select{
    border:1px solid #d7ddcf;border-radius:14px;padding:12px 14px;font-size:15px;background:#fff;
    box-shadow:inset 0 1px 2px rgba(16,24,40,.03);
}
body.public-v5-body .field input:focus,
body.public-v5-body .field textarea:focus,
body.public-v5-body .field select:focus{outline:none;border-color:#16a34a;box-shadow:0 0 0 4px rgba(22,163,74,.12);}
body.public-v5-body .btn{border-radius:14px;padding:11px 16px;font-weight:800;}
body.public-v5-body .btn.primary{background:#0d7d47;color:#fff;}
body.public-v5-body .btn.green{background:#ea8618;color:#fff;}
body.public-v5-body .btn.outline{background:#fff;border:1px solid #d6ddd1;color:#153a2b;}
body.public-v5-body .warn{border:1px solid #f6d3a4;background:#fff7ee;color:#9a4e08;border-radius:18px;padding:12px 14px;margin:0 0 16px;}
body.public-v5-body .alert{border:1px solid #d8ecd8;background:#f3fbf3;color:#17613f;border-radius:18px;}
body.public-v5-body .public-success{background:linear-gradient(180deg,#fffef8 0%,#fff8ee 100%);border-color:#f2d5ac;}
body.public-v5-body .registration-ref-box{border:1px dashed #e9b46c;background:#fffdf6;border-radius:18px;padding:16px 18px;}
body.public-v5-body .registration-ref-box span{font-size:12px;color:#94611d;font-weight:800;text-transform:uppercase;letter-spacing:.12em;}
body.public-v5-body .registration-ref-box strong{display:block;margin-top:6px;font-size:28px;color:#0d7d47;}
body.public-v5-body .declaration-box{background:#f7fbf6;border:1px solid #dbe8dc;border-radius:18px;padding:16px 18px;}
body.public-v5-body .table-wrap{border-radius:18px;border-color:#e2dbcc;}
body.public-v5-body th{background:#f7f6f0;color:#496057;}
body.public-v5-body tr:hover td{background:#fbfaf6;}
body.public-v5-body .pill{background:#eef8ee;color:#196f44;}
body.public-v5-body .public-result-card .section-head{padding:0;background:transparent;border:0;box-shadow:none;margin-bottom:12px;}
@media(max-width:1200px){
    body.public-v5-body .public-v5-stats-grid{grid-template-columns:1fr 1fr;}
    body.public-v5-body .public-v5-stat-card.featured-total{grid-column:span 2;}
}
@media(max-width:900px){
    body.public-v5-body .public-v5-shell{padding:12px;}
    body.public-v5-body .public-v5-window{padding:18px 14px 20px;}
    body.public-v5-body .public-v5-header{flex-direction:column;align-items:flex-start;}
    body.public-v5-body .public-v5-brand{gap:14px;align-items:flex-start;}
    body.public-v5-body .public-v5-logo img{width:70px;}
    body.public-v5-body .public-v5-brand-name{font-size:16px;letter-spacing:.02em;}
    body.public-v5-body .public-v5-brand-reg{font-size:10px;} 
    body.public-v5-body .public-v5-brand-meta{font-size:11px;}
    body.public-v5-body .public-v5-nav{width:100%;justify-content:flex-start;}
    body.public-v5-body .public-v5-nav a{padding:11px 14px;font-size:13px;}
    body.public-v5-body .public-v5-title-card{flex-direction:column;padding:20px 18px;}
    body.public-v5-body .public-v5-title-card h1{font-size:24px;}
    body.public-v5-body .public-v5-stats-grid{grid-template-columns:1fr;}
    body.public-v5-body .public-v5-stat-card.featured-total{grid-column:auto;}
    body.public-v5-body .public-v5-section-head, body.public-v5-body .public-container .section-head{padding:18px;}
    body.public-v5-body .card, body.public-v5-body .public-result-card{padding:18px;}
}
@media(max-width:560px){
    body.public-v5-body .public-v5-divider{display:none;}
    body.public-v5-body .public-v5-brand-name{font-size:14px;}
    body.public-v5-body .public-v5-brand-reg{font-size:9px;}
    body.public-v5-body .public-v5-brand-meta{font-size:10px;}
    body.public-v5-body .public-v5-title-pill{font-size:12px;}
    body.public-v5-body .public-v5-title-card h1{font-size:22px;}
    body.public-v5-body .public-v5-nav a span{display:none;}
    body.public-v5-body .public-v5-nav a{padding:11px 12px;}
}

@media (max-width: 640px){
    body.public-v5-body .public-v5-divider{display:none;}
    body.public-v5-body .public-v5-brand-name{font-size:13px;}
    body.public-v5-body .public-v5-brand-reg,
    body.public-v5-body .public-v5-brand-address{font-size:9px;line-height:1.18;}
}


/* Admin verification flow */
.verify-badge{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:6px;
    padding:7px 11px;
    border-radius:999px;
    font-size:12px;
    line-height:1;
    font-weight:800;
    white-space:nowrap;
    border:1px solid transparent;
}
.verify-badge.small{font-size:11px;padding:6px 9px;}
.verify-approved{background:#ecfdf3;color:#12743d;border-color:#bbf7d0;}
.verify-pending{background:#fff7ed;color:#b45309;border-color:#fed7aa;}
.verify-rework{background:#fef2f2;color:#b91c1c;border-color:#fecaca;}
.verify-date{font-size:11px;}
.verify-stat-card{background:linear-gradient(135deg,#fff7ed 0%,#ffffff 100%);}
.verify-stat-card .stat-num{color:#b45309;}
.verify-stat-card a{color:#0f766e;font-weight:800;text-decoration:none;}
.verify-head{border-left:5px solid #0f766e;}
.verify-grid{align-items:start;}
.verify-card-top{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:12px;
    margin-bottom:14px;
}
.verify-card-top h2{margin-bottom:4px;}
.verify-info-list p{margin:0 0 12px;}
.verify-family-mini{
    border:1px solid #e5e7eb;
    border-radius:14px;
    overflow:hidden;
    background:#fafafa;
}
.verify-family-mini div{
    padding:10px 12px;
    border-bottom:1px solid #e5e7eb;
    font-size:13px;
}
.verify-family-mini div:last-child{border-bottom:0;}
.verify-family-mini span{
    display:inline-flex;
    min-width:70px;
    font-weight:800;
    color:#0f766e;
}
.verify-family-mini em{font-style:normal;color:#64748b;margin-left:8px;}
.verify-status-picker{
    display:grid;
    grid-template-columns:1fr;
    gap:10px;
    margin:14px 0 18px;
}
.verify-option{
    display:flex;
    align-items:center;
    gap:10px;
    padding:13px 14px;
    border-radius:14px;
    border:1px solid #e5e7eb;
    background:#fff;
    cursor:pointer;
    font-weight:800;
}
.verify-option input{width:18px;height:18px;}
.verify-option.is-selected{
    border-color:#0f766e;
    background:#ecfdf5;
    box-shadow:0 0 0 3px rgba(15,118,110,.08);
}
.verify-last-update{
    padding:12px 14px;
    border-radius:14px;
    background:#f8fafc;
    border:1px solid #e5e7eb;
    color:#475569;
    font-size:13px;
    margin:14px 0;
}
@media(max-width:800px){
    .verify-card-top{flex-direction:column;}
    .verify-badge{white-space:normal;text-align:center;}
}


/* Admin V62 - header selaras dengan menu utama + row action tanpa dropdown */
body.admin-v62-body{
    background:linear-gradient(180deg,#f4f1ea 0%,#edf1f5 100%);
    font-family:"Plus Jakarta Sans","Segoe UI",Arial,sans-serif;
    color:#13233a;
}
.admin-v62-page{min-height:100vh;padding:12px;}
.admin-v62-window{
    width:min(1680px,100%);
    margin:0 auto;
    background:linear-gradient(180deg,#fffdf8 0%,#f9f6ef 100%);
    border:1px solid #d9cebc;
    border-radius:28px;
    box-shadow:0 18px 44px rgba(23,34,29,.08), inset 0 1px 0 rgba(255,255,255,.78);
    padding:20px 26px 28px;
    overflow:hidden;
}
.admin-v62-header{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:22px;
    padding-bottom:18px;
    border-bottom:1px solid #e6ddce;
}
.admin-v62-brand{
    display:flex;
    align-items:flex-start;
    gap:18px;
    min-width:360px;
}
.admin-v62-logo img{
    width:78px;
    height:auto;
    display:block;
    object-fit:contain;
}
.admin-v62-divider{
    width:1px;
    height:92px;
    background:#d8cebf;
}
.admin-v62-brand-name{
    font-family:"Libre Baskerville",Georgia,serif;
    font-size:18px;
    line-height:1.15;
    color:#1d6d34;
    font-weight:700;
    letter-spacing:.02em;
}
.admin-v62-brand-reg,
.admin-v62-brand-address{
    font-family:"Libre Baskerville",Georgia,serif;
    font-size:11px;
    line-height:1.25;
    color:#111;
    font-weight:700;
    margin-top:4px;
}
.admin-v62-nav{
    display:flex;
    align-items:center;
    justify-content:flex-end;
    flex-wrap:wrap;
    gap:8px;
    max-width:900px;
}
.admin-v62-nav a{
    display:inline-flex;
    align-items:center;
    gap:8px;
    padding:10px 13px;
    border:1px solid #d8e2d7;
    border-radius:14px;
    background:rgba(255,255,255,.78);
    color:#174331;
    text-decoration:none;
    font-size:13px;
    font-weight:800;
    box-shadow:0 8px 18px rgba(37,48,40,.04);
}
.admin-v62-nav a:hover{
    background:#eff9f0;
    border-color:#b9d9bc;
}
.admin-v62-nav a.logout{
    color:#9f1d1d;
    border-color:#efd0d0;
    background:#fff8f8;
}
.admin-v62-container{
    max-width:1540px;
    margin:18px auto 0;
    padding:0;
}

/* Padam gaya dropdown lama dalam jadual */
.admin-row-actions-flat{
    display:flex;
    align-items:center;
    gap:6px;
    flex-wrap:wrap;
    min-width:360px;
}
.btn.btn-xs{
    padding:7px 10px;
    border-radius:10px;
    font-size:12px;
    line-height:1.1;
    white-space:nowrap;
}
.admin-family-toggle.btn-xs{
    min-width:auto;
}
.admin-family-table th:last-child,
.admin-family-table td:last-child{
    min-width:380px;
}
.admin-family-table{
    min-width:1280px;
}
.admin-family-table td{
    vertical-align:top;
}
@media(max-width:1100px){
    .admin-v62-header{flex-direction:column;}
    .admin-v62-nav{justify-content:flex-start;max-width:100%;}
    .admin-v62-brand{min-width:0;}
}
@media(max-width:640px){
    .admin-v62-page{padding:8px;}
    .admin-v62-window{padding:14px 12px 18px;border-radius:22px;}
    .admin-v62-divider{display:none;}
    .admin-v62-logo img{width:60px;}
    .admin-v62-brand-name{font-size:14px;}
    .admin-v62-brand-reg,
    .admin-v62-brand-address{font-size:9px;}
    .admin-v62-nav a span{display:none;}
    .admin-v62-nav a{padding:10px 11px;}
}


/* Public semak search compact */
body.public-v5-body .public-v5-search-actions{
    align-items:flex-end;
}
body.public-v5-body .public-search-ic-field{
    flex:0 1 520px;
    max-width:520px;
}
body.public-v5-body .public-search-ic-field input{
    max-width:520px;
}
@media(max-width:760px){
    body.public-v5-body .public-search-ic-field{
        flex:1 1 100%;
        max-width:100%;
    }
    body.public-v5-body .public-search-ic-field input{
        max-width:100%;
    }
}


/* Public semak - sub pemohon lebih kemas */
.public-admin-table-compact .public-submember-cell{
    min-width:330px;
}
.public-admin-table-compact .sub-member-card{
    display:flex;
    align-items:flex-start;
    gap:12px;
    padding:10px 12px;
    border-radius:16px;
    border:1px solid #dbe7df;
    background:linear-gradient(180deg,#ffffff 0%,#f9fcfa 100%);
    box-shadow:0 8px 18px rgba(17,24,39,.04);
}
.public-admin-table-compact .sub-member-branch{
    position:relative;
    width:18px;
    min-width:18px;
    margin-top:2px;
    align-self:stretch;
}
.public-admin-table-compact .sub-member-branch::before{
    content:'';
    position:absolute;
    left:8px;
    top:-4px;
    bottom:8px;
    width:2px;
    border-radius:999px;
    background:#cbd5e1;
}
.public-admin-table-compact .sub-member-branch::after{
    content:'';
    position:absolute;
    left:8px;
    top:16px;
    width:13px;
    height:2px;
    border-radius:999px;
    background:#cbd5e1;
}
.public-admin-table-compact .sub-member-branch span{
    position:absolute;
    left:16px;
    top:10px;
    width:8px;
    height:8px;
    border-radius:999px;
    background:#9ca3af;
    box-shadow:0 0 0 3px #fff;
}
.public-admin-table-compact .sub-member-body{
    min-width:0;
    display:flex;
    flex-direction:column;
    gap:3px;
}
.public-admin-table-compact .sub-member-top{
    display:flex;
    align-items:center;
    gap:8px;
}
.public-admin-table-compact .sub-member-relation{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:5px 10px;
    border-radius:999px;
    font-size:11px;
    line-height:1;
    font-weight:800;
    border:1px solid transparent;
    white-space:nowrap;
}
.public-admin-table-compact .sub-member-name{
    display:block;
    font-size:15px;
    line-height:1.35;
    color:#183a2a;
}
.public-admin-table-compact .sub-member-meta{
    display:block;
    font-size:13px;
    line-height:1.45;
    color:#64748b;
    word-break:break-word;
}
.public-admin-table-compact .sub-rel-card-suami{border-color:#c7d2fe;background:linear-gradient(180deg,#ffffff 0%,#f8faff 100%);}
.public-admin-table-compact .sub-rel-card-isteri{border-color:#fbcfe8;background:linear-gradient(180deg,#ffffff 0%,#fff9fc 100%);}
.public-admin-table-compact .sub-rel-card-anak{border-color:#bae6fd;background:linear-gradient(180deg,#ffffff 0%,#f8fdff 100%);}
.public-admin-table-compact .sub-rel-card-ibu{border-color:#fed7aa;background:linear-gradient(180deg,#ffffff 0%,#fffaf5 100%);}
.public-admin-table-compact .sub-rel-card-bapa{border-color:#c7d2fe;background:linear-gradient(180deg,#ffffff 0%,#f8f9ff 100%);}
.public-admin-table-compact .sub-rel-suami{background:#eef2ff;color:#4338ca;border-color:#c7d2fe;}
.public-admin-table-compact .sub-rel-isteri{background:#fdf2f8;color:#be185d;border-color:#fbcfe8;}
.public-admin-table-compact .sub-rel-anak{background:#ecfeff;color:#0f766e;border-color:#a5f3fc;}
.public-admin-table-compact .sub-rel-ibu{background:#fff7ed;color:#c2410c;border-color:#fed7aa;}
.public-admin-table-compact .sub-rel-bapa{background:#eef2ff;color:#3730a3;border-color:#c7d2fe;}
@media(max-width:1100px){
    .public-admin-table-compact .public-submember-cell{
        min-width:280px;
    }
}


/* Admin keluarga - sub pemohon dengan icon */
.admin-family-table .admin-submember-cell{
    min-width:330px;
}
.admin-family-table .admin-submember-item{
    display:flex;
    align-items:center;
    gap:10px;
}
.admin-family-table .admin-tree-stem{
    width:16px;
    min-width:16px;
    height:24px;
}
.admin-family-table .admin-tree-stem::before{
    left:7px;
    top:-4px;
    bottom:8px;
}
.admin-family-table .admin-tree-stem::after{
    left:7px;
    top:13px;
    width:12px;
}
.admin-family-table .admin-submember-avatar{
    width:36px;
    height:36px;
    min-width:36px;
    border-radius:12px;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:15px;
    border:1px solid transparent;
    box-shadow:0 6px 14px rgba(15,23,42,.06);
}
.admin-family-table .admin-submember-avatar.rel-suami,
.admin-family-table .admin-submember-role.rel-suami{
    background:#eef2ff;
    color:#4338ca;
    border-color:#c7d2fe;
}
.admin-family-table .admin-submember-avatar.rel-isteri,
.admin-family-table .admin-submember-role.rel-isteri{
    background:#fdf2f8;
    color:#be185d;
    border-color:#fbcfe8;
}
.admin-family-table .admin-submember-avatar.rel-anak,
.admin-family-table .admin-submember-role.rel-anak{
    background:#ecfeff;
    color:#0f766e;
    border-color:#a5f3fc;
}
.admin-family-table .admin-submember-avatar.rel-ibu,
.admin-family-table .admin-submember-role.rel-ibu{
    background:#fff7ed;
    color:#c2410c;
    border-color:#fed7aa;
}
.admin-family-table .admin-submember-avatar.rel-bapa,
.admin-family-table .admin-submember-role.rel-bapa{
    background:#eef2ff;
    color:#3730a3;
    border-color:#c7d2fe;
}
.admin-family-table .admin-submember-copy{
    min-width:0;
}
.admin-family-table .admin-submember-copy strong{
    display:block;
    line-height:1.35;
}
.admin-family-table .admin-submember-meta{
    display:flex;
    align-items:center;
    gap:8px;
    flex-wrap:wrap;
    margin-top:4px;
}
.admin-family-table .admin-submember-role{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:4px 9px;
    border-radius:999px;
    font-size:11px;
    line-height:1;
    font-weight:800;
    border:1px solid transparent;
}


/* Admin sub pemohon - buang tree dan tag duplicate, kekalkan indent kemas */
.admin-family-table .admin-submember-item{
    padding-left:22px;
}
.admin-family-table .admin-tree-stem{
    display:none!important;
}
.admin-family-table .admin-submember-role{
    display:none!important;
}
.admin-family-table .admin-submember-meta{
    margin-top:3px;
}
.admin-family-table .admin-submember-copy strong{
    color:#143b2b;
}
.admin-family-table .admin-submember-item.rel-isteri .admin-submember-copy strong{
    color:#be185d;
}
.admin-family-table .admin-submember-item.rel-anak .admin-submember-copy strong{
    color:#0f766e;
}
.admin-family-table .admin-submember-item.rel-suami .admin-submember-copy strong{
    color:#4338ca;
}
.admin-family-table .admin-submember-item.rel-ibu .admin-submember-copy strong{
    color:#c2410c;
}
.admin-family-table .admin-submember-item.rel-bapa .admin-submember-copy strong{
    color:#3730a3;
}


/* Admin search compact */
.search-card-v51 .admin-search-actions-compact{
    align-items:flex-end;
}
.search-card-v51 .admin-search-field-compact{
    flex:0 1 560px;
    max-width:560px;
}
.search-card-v51 .admin-search-field-compact input{
    width:100%;
    max-width:560px;
}
@media(max-width:760px){
    .search-card-v51 .admin-search-field-compact{
        flex:1 1 100%;
        max-width:100%;
    }
    .search-card-v51 .admin-search-field-compact input{
        max-width:100%;
    }
}

