/* Forms, authentication pages, print and legacy-module embeds. */
html{margin:0!important;padding:0!important}
body.mbrpe-standalone{margin:0!important;background:#f3f6f4!important;color:#1c3a31}
.mbrpe-standalone #wpadminbar{display:none!important}

/* Forms */
.mbrpe-form{display:grid;gap:18px}
.mbrpe-form-narrow{max-width:520px}
.mbrpe-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}
.mbrpe-form label{display:flex;flex-direction:column;gap:7px;font-size:12px;font-weight:600;color:#3e5a4e}
.mbrpe-form input:not([type=checkbox]):not([type=radio]),.mbrpe-form select,.mbrpe-form textarea{display:block;width:100%;min-width:0;max-width:100%;padding:11px 13px;border:1px solid #d5e0d9;border-radius:9px;background:#fff;color:#1c3a31;font:14px/1.4 inherit;box-sizing:border-box;transition:border-color .15s,box-shadow .15s}
.mbrpe-form input:focus,.mbrpe-form select:focus,.mbrpe-form textarea:focus{border-color:#b8934a;box-shadow:0 0 0 3px rgba(184,147,74,.18);outline:0}
.mbrpe-form input:disabled{background:#f3f6f4;color:#7a8b82}
.mbrpe-form label.mbrpe-check,.mbrpe-form .mbrpe-checks label{flex-direction:row;align-items:center;gap:10px;font-weight:500;font-size:13px}
.mbrpe-form input[type=checkbox],.mbrpe-form input[type=radio]{width:18px;height:18px;min-width:18px;margin:0;accent-color:#1f7a5f}
.mbrpe-form button{justify-self:start}
.mbrpe-form label small{font-weight:400;color:#7a8b82}
.mbrpe-profile-section{border:1px solid #dfe8e1;border-radius:12px;padding:22px 24px 24px;margin:6px 0;min-width:0;background:#fcfdfc}
.mbrpe-profile-section>legend{padding:0 10px;font-family:Georgia,serif;font-size:18px;font-weight:700;color:#17564a}
.mbrpe-choice-field{border:0;padding:0;margin:0;min-width:0}
.mbrpe-choice-field legend{font-size:12px;font-weight:600;color:#3e5a4e;margin-bottom:10px;padding:0}
.mbrpe-form .mbrpe-choice{display:inline-flex;flex-direction:row;align-items:center;gap:8px;margin:0 18px 8px 0;font-weight:400;font-size:13px}
.mbrpe-field-help{font-size:11px!important;margin-top:18px;color:#667a71}
.mbrpe-form textarea{font-family:inherit!important;resize:vertical}
.mbrpe-profile-section#mbrpe-dependents .mbrpe-choice-field{grid-column:1/-1}
.mbrpe-rollback{margin-top:20px;padding-top:18px;border-top:1px dashed #dfe8e1}

/* Auth pages */
.mbrpe-auth{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);min-height:100vh;color:#1c3a31;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif}
.mbrpe-auth *{box-sizing:border-box}
.mbrpe-auth-brand{background:radial-gradient(circle at 20% 15%,#237659 0,transparent 45%),linear-gradient(135deg,#0b2f27,#17564a);color:#fff;display:flex;align-items:center;justify-content:center;padding:50px}
.mbrpe-auth-brand .mbrpe-mark{display:block;font-size:56px;color:#e0c47f;margin-bottom:6px}
.mbrpe-auth .mbrpe-auth-brand h1{color:#fff;font-family:Georgia,serif;font-size:42px;line-height:1.2;margin:10px 0 18px;font-weight:600}
.mbrpe-auth-brand p{color:#c4dbd0;line-height:1.8;margin:0 0 12px}
.mbrpe-auth-brand small{color:#e0c47f;letter-spacing:2.4px;font-size:11px;font-weight:600}
.mbrpe-auth>main{padding:40px;display:flex;align-items:center;justify-content:center}
.mbrpe-auth .mbrpe-panel{width:100%;max-width:560px;padding:34px;background:#fff;border:1px solid #e1e9e4;border-radius:14px;box-shadow:0 10px 40px rgba(15,61,51,.08)}
.mbrpe-auth .mbrpe-panel h1{font-family:Georgia,serif;color:#0f3d33;font-size:28px;margin:0 0 6px}
.mbrpe-auth a{color:#1f7a5f;text-decoration:none}.mbrpe-auth a:hover{text-decoration:underline}.mbrpe-auth .mbrpe-panel p a,.mbrpe-auth .mbrpe-panel>a{display:inline-block;margin-top:8px;font-size:13px}
.mbrpe-auth .mbrpe-button{padding:13px 24px;background:#b8934a!important;color:#fff!important;border:0;border-radius:9px;font-weight:700;cursor:pointer}
.mbrpe-auth .mbrpe-muted{color:#667a71;font-size:13px}
.mbrpe-login-status{margin-top:26px;padding-top:6px;border-top:1px solid #e8eeea}
.mbrpe-login-status .mrbtbs-status-wrap{padding:18px!important;margin:0!important;box-shadow:none!important}
.mbrpe-login-status h2{font-size:19px!important}

/* Legacy shortcodes embedded in the new shell */
.mbrpe-standalone .mph-idcard2-wrap{max-width:650px}
.mbrpe-standalone .mbrpe-panel form.um-form{max-width:100%}

@media(max-width:900px){
 .mbrpe-auth{grid-template-columns:1fr}
 .mbrpe-auth-brand{padding:28px 22px}.mbrpe-auth-brand h1{font-size:26px;margin:4px 0 10px}.mbrpe-auth-brand .mbrpe-mark{display:none}.mbrpe-auth-brand p{margin:0 0 6px}
 .mbrpe-auth>main{padding:18px 14px 30px}.mbrpe-auth .mbrpe-panel{padding:22px 18px}
}
@media(max-width:782px){
 .mbrpe-form-grid{grid-template-columns:1fr}
 .mbrpe-profile-section{padding:18px 14px}.mbrpe-profile-section>legend{font-size:16px}
}
@media print{
 .mbrpe-sidebar,.mbrpe-top,.mbrpe-heading,.mbrpe-footer,.mbrpe-no-print,.mbrpe-success,.mbrpe-scrim{display:none!important}
 .mbrpe-shell{display:block;background:#fff}.mbrpe-content{padding:0}.mbrpe-panel{box-shadow:none;border:0}.mbrpe-table-wrap{overflow:visible}.mbrpe-receipt{color:#000}.mbrpe-receipt table{width:100%}
}
.mbrpe-auth-brand .mbrpe-logo{margin-bottom:22px;box-shadow:0 10px 30px rgba(0,0,0,.25)}
.mbrpe-auth>main{flex-direction:column;gap:18px}
.mbrpe-auth>main .mbrpe-footer{width:100%;max-width:560px;margin:0;padding:0;border:0;font-size:11px;color:#7a8b82;justify-content:space-between}
.mbrpe-auth .mbrpe-footer a{color:#5d746a}
.mbrpe-profile-section[hidden]{display:none}

/* Receipt */
.mbrpe-receipt{padding:34px 38px}
.mbrpe-rc-head{display:flex;justify-content:space-between;align-items:flex-start;gap:24px;padding-bottom:22px;border-bottom:2px solid #0f3d33;margin-bottom:22px}
.mbrpe-rc-org{display:flex;align-items:center;gap:14px}
.mbrpe-rc-org .mbrpe-logo{width:58px;height:58px;flex:none}
.mbrpe-rc-org b{display:block;font:700 17px/1.25 Georgia,serif;color:#0f3d33;text-transform:uppercase;letter-spacing:.02em}
.mbrpe-rc-org small{display:block;margin-top:3px;color:#667a71;font-size:12px}
.mbrpe-rc-title{text-align:right}
.mbrpe-rc-title small{display:block;font-size:11px;font-weight:700;letter-spacing:.2em;color:#b8934a}
.mbrpe-rc-title h2{margin:2px 0 8px!important;font:700 28px Georgia,serif!important;color:#0f3d33}
.mbrpe-rc-meta{display:grid;grid-template-columns:1.4fr 1fr 1fr;gap:18px;padding:16px 18px;background:#f6f9f7;border:1px solid #e1e9e4;border-radius:12px;margin-bottom:24px}
.mbrpe-rc-meta span{display:block;font-size:10.5px;font-weight:700;letter-spacing:.8px;text-transform:uppercase;color:#7a8b82;margin-bottom:3px}
.mbrpe-rc-meta b{display:block;font-size:14px;color:#1c3a31;font-weight:600}
.mbrpe-rc-meta em{display:block;font-style:normal;font-size:12.5px;color:#667a71;margin-top:1px;word-break:break-all}
.mbrpe-rc-items td,.mbrpe-rc-items th{vertical-align:middle}
.mbrpe-rc-items .mbrpe-rc-total th{text-align:right;font-size:11px}
.mbrpe-rc-items .mbrpe-rc-total:last-child td,.mbrpe-rc-items .mbrpe-rc-total:last-child th{font-size:15px;font-weight:700;color:#0f3d33}
.mbrpe-rc-attach{margin-top:30px}
.mbrpe-rc-attach>h3{font:700 16px Georgia,serif;color:#0f3d33;margin:0 0 14px;padding-bottom:8px;border-bottom:1px solid #e1e9e4}
.mbrpe-rc-sec{margin-bottom:16px;break-inside:avoid}
.mbrpe-rc-sec h4{margin:0 0 8px;font-size:11px;letter-spacing:1px;text-transform:uppercase;color:#b8934a;font-weight:700}
.mbrpe-rc-kv{display:grid;grid-template-columns:1fr 1fr;border:1px solid #e1e9e4;border-radius:10px;overflow:hidden;margin:0}
.mbrpe-rc-kv>div{display:flex;gap:12px;padding:9px 14px;border-bottom:1px solid #eef3f0}
.mbrpe-rc-kv>div.wide{grid-column:1/-1}
.mbrpe-rc-kv dt{flex:none;width:96px;font-size:12px;font-weight:700;color:#5d746a}
.mbrpe-rc-kv dd{margin:0;font-size:13px;color:#1c3a31;word-break:break-word}
.mbrpe-rc-list{width:100%;border-collapse:collapse;border:1px solid #e1e9e4;font-size:13px}
.mbrpe-rc-list th{background:#f6f9f7;text-align:left;padding:8px 12px;font-size:11px;letter-spacing:.6px;text-transform:uppercase;color:#5d746a}
.mbrpe-rc-list td{padding:8px 12px;border-top:1px solid #eef3f0}
.mbrpe-rc-list th:first-child,.mbrpe-rc-list td:first-child{width:46px;text-align:center}
.mbrpe-rc-note{margin:26px 0 0;padding-top:14px;border-top:1px dashed #cfdad3;color:#7a8b82;font-size:12px;text-align:center}
@media(max-width:700px){.mbrpe-receipt{padding:20px 16px}.mbrpe-rc-head{flex-direction:column}.mbrpe-rc-title{text-align:left}.mbrpe-rc-meta,.mbrpe-rc-kv{grid-template-columns:1fr}}
@media print{
 @page{size:A4;margin:14mm}
 .mbrpe-receipt{padding:0!important;box-shadow:none!important;border:0!important}
 .mbrpe-rc-meta{background:#fff;-webkit-print-color-adjust:exact;print-color-adjust:exact}
 .mbrpe-rc-head{border-bottom-color:#000}
 .mbrpe-rc-sec,.mbrpe-rc-items tr{break-inside:avoid}
 .mbrpe-rc-kv dt{width:84px}
 .mbrpe-main{margin:0!important}.mbrpe-content{max-width:none!important}
 .mbrpe-rc-head{padding-bottom:12px;margin-bottom:12px}.mbrpe-rc-org .mbrpe-logo{width:46px;height:46px}.mbrpe-rc-title h2{font-size:22px!important;margin-bottom:4px!important}
 .mbrpe-rc-meta{padding:9px 14px;margin-bottom:14px}
 .mbrpe-rc-items td,.mbrpe-rc-items th{padding:8px 12px!important}
 .mbrpe-rc-attach{margin-top:14px}.mbrpe-rc-attach>h3{margin-bottom:8px;padding-bottom:5px;font-size:14px}
 .mbrpe-rc-sec{margin-bottom:9px}.mbrpe-rc-sec h4{margin-bottom:5px}
 .mbrpe-rc-kv>div{padding:4px 12px}.mbrpe-rc-kv dt,.mbrpe-rc-kv dd{font-size:11.5px}
 .mbrpe-rc-list th{padding:4px 10px}.mbrpe-rc-list td{padding:3px 10px;font-size:11.5px}
 .mbrpe-rc-note{margin-top:12px;padding-top:8px}
}

.mbrpe-auth .mbrpe-reg-h{font-family:Georgia,serif;color:#0f3d33;font-size:17px;margin:18px 0 4px;padding-bottom:6px;border-bottom:1px solid #e1e9e4}
.mbrpe-auth .mbrpe-register{display:grid;gap:12px}

/* MBRP: tanggungan semasa daftar */
.mbrpe-auth .mbrpe-deps{display:grid;gap:14px}
.mbrpe-auth .mbrpe-dep{border:1px solid #e1e9e4;border-radius:12px;padding:14px 16px 16px;margin:0;min-width:0}
.mbrpe-auth .mbrpe-dep>legend{padding:0 8px;font-size:12px;font-weight:700;color:#17564a}
.mbrpe-auth .mbrpe-dep[hidden]{display:none}
.mbrpe-auth [data-mbrpe-dep-add]{justify-self:start}
.mbrpe-auth .mbrpe-age-hint{font-weight:600;color:#1f7a5f}.mbrpe-auth .mbrpe-age-hint.mbrpe-danger{color:#b3261e}
.mbrpe-login-status .mbrp-public-wrap{padding:18px!important;margin:0!important;box-shadow:none!important;max-width:100%!important}

/* MBRP: popup had umur tanggungan */
.mbrpe-modal{position:fixed;inset:0;z-index:100000;display:flex;align-items:center;justify-content:center;padding:16px;background:rgba(7,32,26,.6);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif}
.mbrpe-modal-box{width:100%;max-width:470px;background:#fff;border-radius:16px;padding:28px 26px 22px;text-align:center;box-shadow:0 30px 80px rgba(0,0,0,.35);border-top:5px solid #b3261e;color:#1c3a31}
.mbrpe-modal-icon{width:56px;height:56px;margin:0 auto 12px;border-radius:50%;background:#fde9e7;color:#b3261e;font:800 30px/56px Georgia,serif}
.mbrpe-modal-box h2{margin:0 0 10px;font:800 20px/1.25 Georgia,serif;color:#b3261e!important;letter-spacing:.02em}
.mbrpe-modal-box p{margin:0 0 10px;font-size:14px;line-height:1.6;color:#3e5a4e}
.mbrpe-modal-lead{font-weight:700;color:#1c3a31!important}
.mbrpe-modal-actions{display:flex;flex-direction:column;gap:10px;margin-top:18px}
.mbrpe-modal-actions .mbrpe-button{width:100%;justify-content:center;padding:12px 16px}
.mbrpe-modal .mbrpe-button{display:inline-flex;background:#b3261e!important;color:#fff!important;border:1px solid transparent!important;border-radius:9px;font-weight:700;font-size:13px;cursor:pointer}
.mbrpe-modal .mbrpe-button-ghost{background:#fff!important;color:#17564a!important;border-color:#cfdcd5!important}
.mbrpe-modal .mbrpe-link{font-size:13px;color:#1f7a5f;font-weight:600}
