@media screen {
.mhm-wrap{background:var(--mhm-bg);color:var(--mhm-text);padding:20px;border-radius:14px;max-width:1600px}.mhm-workspace-nav{display:flex;align-items:center;gap:18px;background:white;border:1px solid #dce5e5;border-radius:12px;padding:15px;margin-bottom:22px;flex-wrap:wrap}.mhm-brand{display:flex;align-items:center;gap:10px;max-width:300px;color:var(--mhm-primary)}.mhm-brand-logo{width:44px;height:44px;object-fit:contain}.mhm-workspace-nav nav{display:flex;gap:4px;flex-wrap:wrap;flex:1}.mhm-workspace-nav a{display:inline-flex;gap:5px;align-items:center;padding:9px;text-decoration:none;color:var(--mhm-primary);border-radius:6px}.mhm-workspace-nav a.is-active{background:var(--mhm-primary);color:#fff}.mhm-menu-toggle{display:none}.mhm-heading{margin:8px 0 14px}.mhm-heading h1{line-height:1.15}.mhm-heading p{margin-top:3px}.mhm-wrap h1{color:var(--mhm-accent)!important}.mhm-wrap h2,.mhm-wrap h3,.mhm-wrap legend{color:var(--mhm-primary)!important}.mhm-wrap label,.mhm-wrap td,.mhm-wrap input,.mhm-wrap select,.mhm-wrap textarea{color:var(--mhm-text)}.mhm-wrap .button-primary{background:var(--mhm-primary);border-color:var(--mhm-primary);color:#fff}.mhm-wrap .button:hover,.mhm-wrap .button:focus{color:#003b2f!important;background:#e1efe8!important;border-color:#64877b}.mhm-wrap select{background-position:right 12px center;padding-right:36px!important}.mhm-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:14px 0}.mhm-summary-card{display:flex;align-items:center;gap:12px;background:#fff;border:1px solid #dce5e5;border-radius:10px;padding:13px 16px}.mhm-summary-card b{display:block;font-size:15px;color:var(--mhm-primary);line-height:1.15}.mhm-summary-card strong{display:block;font-size:23px;margin-top:4px;line-height:1.2}.mhm-summary-icon{padding:10px;border-radius:7px;background:#eaf3ee;color:#176747;flex-shrink:0}.mhm-summary-icon.out{background:#fff0ed;color:#b94030}.mhm-hero{padding:24px;border-radius:14px;background-size:cover;min-height:var(--mhm-height);box-sizing:border-box;color:white}.mhm-hero-top,.mhm-hero-bottom{display:flex;justify-content:space-between;gap:20px;align-items:center}.mhm-hero h1{font-size:29px!important;color:#fff!important;margin:0 0 6px}.mhm-hero h2{color:#fff!important;margin:0}.mhm-hero-balance{display:block;font-size:34px;line-height:1.3;margin-top:8px}.mhm-hero-bottom{margin-top:18px;align-items:flex-end}.mhm-hero-action{text-align:right;margin:0}.mhm-monthly .mhm-summary-card{padding:10px;gap:7px}.mhm-monthly strong{font-size:18px}.mhm-monthly b{font-size:13px}.mhm-monthly .mhm-summary-icon{padding:5px}.mhm-dashboard-grid{display:grid;grid-template-columns:1.2fr 1fr;gap:18px;margin-top:20px}.mhm-recent{display:flex;justify-content:space-between;gap:12px;padding:14px 0;border-bottom:1px solid #e5ebeb}.mhm-recent small{display:block;margin-top:5px}.mhm-setting-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin-bottom:24px}.mhm-setting-fields label{display:block;font-weight:600}.mhm-setting-fields input,.mhm-setting-fields select{display:block;width:100%;max-width:none;margin-top:8px}.mhm-setting-fields input[type=color]{height:40px}.mhm-appearance-form{margin-top:20px}.mhm-entry-layout{display:grid;grid-template-columns:280px 1fr;gap:24px}.mhm-entry-layout aside{background:var(--mhm-primary);color:#fff;border-radius:12px;padding:24px;align-self:start}.mhm-entry-layout aside h2{color:#fff!important}.mhm-entry-layout .mhm-form{display:grid;grid-template-columns:1fr 1fr;gap:14px 20px}.mhm-entry-layout .mhm-form h2,.mhm-type-buttons{grid-column:1/-1}.mhm-entry-layout .mhm-form label{margin:0}.mhm-type-buttons{display:flex;gap:12px}.mhm-type-buttons button{display:flex;align-items:center;gap:8px;padding:8px 14px}.mhm-type-buttons .is-active{outline:2px solid var(--mhm-primary)}.mhm-type-icon{border:1px solid currentColor;border-radius:4px;padding:5px}.mhm-inline-filter{display:flex;align-items:flex-end;flex-wrap:wrap;gap:14px;padding:16px;background:var(--mhm-bg);border-radius:10px}.mhm-inline-filter label{display:flex;flex-direction:column;gap:6px}.mhm-inline-filter input{min-width:140px}.mhm-toolbar{display:flex;justify-content:flex-end;gap:10px;margin:12px 0}.mhm-print-controls{display:flex;align-items:center;gap:10px;margin:16px 0}.mhm-bulk input,.mhm-bulk select{width:100%;min-width:100px}.mhm-bulk td{padding:7px}
@media(max-width:1200px){.mhm-hero-bottom{display:block}.mhm-entry-layout{grid-template-columns:220px 1fr}.mhm-workspace-nav nav{width:100%}}
@media(max-width:782px){.mhm-wrap{padding:10px}.mhm-menu-toggle{display:block;margin-left:auto}.mhm-workspace-nav nav{display:none}.mhm-workspace-nav.menu-open nav{display:flex}.mhm-summary,.mhm-dashboard-grid,.mhm-entry-layout,.mhm-setting-fields{grid-template-columns:1fr}.mhm-entry-layout .mhm-form{grid-template-columns:1fr}.mhm-hero{padding:18px}.mhm-hero-top{align-items:flex-start;flex-direction:column}.mhm-summary-card strong{font-size:22px}.mhm-mini-cards{grid-template-columns:1fr}}
}
@media print{.mhm-workspace-nav,.mhm-toolbar,.mhm-print-controls,.mhm-type-buttons{display:none!important}.mhm-wrap{background:white;color:black}.mhm-actions{display:none}}
@media screen{.mhm-wrap{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif}.mhm-wrap .mhm-balance{color:var(--mhm-primary)}.mhm-wrap .button{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:34px;border:1px solid #a9bfbb;border-radius:6px;padding:5px 12px;text-decoration:none;font-size:13px;font-weight:600;cursor:pointer;box-sizing:border-box}.mhm-hero-action .button{background:#fff;color:var(--mhm-primary)}.mhm-entry-layout input,.mhm-entry-layout select,.mhm-entry-layout textarea{box-sizing:border-box}.mhm-wrap select{appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%23354d47' stroke-width='1.5'/%3E%3C/svg%3E");background-size:12px 8px;background-repeat:no-repeat;background-position:right 12px center}.mhm-page-dashboard>.mhm-heading{display:none}.mhm-entry-layout .mhm-form>button{justify-self:start;min-width:150px}.mhm-entry-layout .mhm-form>details{grid-column:1/-1}.mhm-type-buttons .mhm-type-icon{box-sizing:content-box;min-width:20px;min-height:20px}}

/* rc2: navigation placement, heading weight and consistent icon alignment. */
@media screen {
 .mhm-workspace-nav nav{justify-content:flex-end;margin-left:auto}
 .mhm-wrap .mhm-hero h1[data-mhm-heading]{font-weight:900;letter-spacing:.15px}
 .mhm-wrap .dashicons{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;vertical-align:middle;line-height:1}
 .mhm-wrap .dashicons::before{display:block;line-height:1;width:1em;height:1em}
 .mhm-wrap .button .dashicons{margin:0;position:static;float:none;align-self:center;line-height:1}
 .mhm-wrap .mhm-icon{width:34px;height:34px;min-height:34px;padding:0!important;display:inline-flex!important;align-items:center;justify-content:center;vertical-align:middle}
 .mhm-wrap .mhm-icon .dashicons{width:20px;height:20px;font-size:20px;line-height:1}
 .mhm-wrap .mhm-actions{vertical-align:middle}
 .mhm-wrap .mhm-actions .mhm-inline-form{display:inline-flex;align-items:center;margin:0;vertical-align:middle}
 .mhm-wrap .mhm-summary-icon{box-sizing:content-box;width:20px;height:20px;line-height:1}
 .mhm-wrap .mhm-type-icon{width:20px;height:20px;line-height:1}
 .mhm-wrap .mhm-print-controls{justify-content:center;flex-wrap:wrap;text-align:center}
 .mhm-wrap .mhm-print-controls>strong{flex-basis:100%}
 @media(max-width:782px){
  .mhm-workspace-nav{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px}
  .mhm-workspace-nav .mhm-brand{min-width:0;max-width:none;overflow-wrap:anywhere}
  .mhm-workspace-nav .mhm-menu-toggle{grid-column:2;grid-row:1;justify-self:end;margin:0}
  .mhm-workspace-nav nav{grid-column:1/-1;width:100%;box-sizing:border-box;margin:0;justify-content:flex-end}
 }
}

/* rc3: pilgrim search controls and action-button spacing. */
@media screen {
 .mhm-wrap .mhm-ledger-head:has(.mhm-pilgrim-filter){align-items:center;flex-wrap:wrap}
 .mhm-wrap .mhm-pilgrim-filter{flex:1 1 620px;max-width:900px;margin:0 0 0 auto;align-items:center;gap:12px;box-sizing:border-box}
 .mhm-wrap .mhm-pilgrim-filter input[name="s"]{flex:1 1 300px;width:auto;min-width:220px}
 .mhm-wrap .mhm-pilgrim-filter input[name="s"],.mhm-wrap .mhm-pilgrim-filter select,.mhm-wrap .mhm-pilgrim-filter>.button{height:40px;min-height:40px;box-sizing:border-box;margin:0;padding:0 12px;line-height:normal}
 .mhm-wrap .mhm-pilgrim-filter select{width:120px;min-width:120px}
 .mhm-wrap .mhm-pilgrim-filter>.button{min-width:80px}
 .mhm-wrap table td>.mhm-icon,.mhm-wrap table td>.mhm-inline-form:has(.mhm-icon){margin:0 6px 0 0;vertical-align:middle}
 .mhm-wrap table td>.mhm-inline-form:has(.mhm-icon){display:inline-flex;align-items:center}
 .mhm-wrap table td>.mhm-icon:last-child,.mhm-wrap table td>.mhm-inline-form:last-child:has(.mhm-icon){margin-right:0}
 .mhm-wrap table td>.mhm-inline-form .mhm-icon{margin:0}
 @media(max-width:600px){
  .mhm-wrap .mhm-pilgrim-filter{flex-basis:100%;width:100%;max-width:none;margin:0}
  .mhm-wrap .mhm-pilgrim-filter input[name="s"]{flex-basis:100%;width:100%;min-width:0}
 }
}

/* rc4: header actions and ledger/filter layout. */
@media screen{
 .mhm-workspace-nav .mhm-nav-actions{display:flex;align-items:center;gap:10px;margin-left:auto;flex-shrink:0}
 .mhm-workspace-nav .mhm-nav-actions .mhm-menu-toggle{display:inline-flex;margin:0}
 .mhm-wrap .mhm-ledger-head:has(.mhm-pilgrim-filter){margin-bottom:18px}
 .mhm-wrap .mhm-account-filter{margin:0 0 24px;gap:12px;align-items:flex-end}
 .mhm-wrap .mhm-account-filter input:not([type="hidden"]),.mhm-wrap .mhm-account-filter select,.mhm-wrap .mhm-account-filter .button{height:40px;min-height:40px;box-sizing:border-box;margin:0;padding:0 12px;line-height:normal}
 .mhm-wrap .mhm-month-shortcuts{display:flex;gap:6px;align-items:center}
 .mhm-wrap .mhm-filter-actions{display:flex;gap:10px;align-items:center;margin-left:auto}
 .mhm-wrap .mhm-print-controls{justify-content:flex-end;align-items:center;gap:10px;text-align:left;margin:20px 0 16px}
 .mhm-wrap .mhm-print-controls>strong{flex:1 1 auto;margin-right:auto}
 @media(min-width:783px){.mhm-workspace-nav.menu-collapsed nav{display:none}}
 @media(max-width:782px){
  .mhm-workspace-nav .mhm-nav-actions{grid-column:2;grid-row:1;justify-self:end}
  .mhm-workspace-nav nav{grid-row:2}
  .mhm-workspace-nav .mhm-nav-actions .mhm-menu-toggle{grid-column:auto;grid-row:auto}
  .mhm-wrap .mhm-print-controls>strong{flex-basis:100%}
  .mhm-wrap .mhm-account-filter{align-items:flex-end}
 }
}

@media screen and (min-width:783px){.mhm-workspace-nav nav{width:auto;min-width:0}.mhm-workspace-nav .mhm-nav-actions{margin-left:0}}

/* rc5: shared entry heading colour and expanded category highlight. */
@media screen{
 .mhm-wrap .mhm-entry-heading{grid-column:1/-1;background:#eaf3ef;border:1px solid #d3e4db;border-radius:8px;padding:16px}
 .mhm-wrap .mhm-entry-heading h2{margin:0 0 14px}
 .mhm-wrap .mhm-entry-heading .mhm-type-buttons{margin:0;flex-wrap:wrap}
 .mhm-wrap .mhm-type-buttons .button{background:#f7fbf9;color:var(--mhm-primary);border-color:var(--mhm-primary)}
 .mhm-wrap .mhm-type-buttons .button.is-active{background:var(--mhm-primary);color:#fff;outline:none;box-shadow:0 0 0 2px #fff,0 0 0 3px var(--mhm-primary)}
 .mhm-wrap .mhm-new-category{grid-column:1/-1;border-radius:8px}
 .mhm-wrap .mhm-new-category[open]{background:rgba(255,0,0,.1);padding:14px 16px}
 .mhm-wrap .mhm-new-category[open]>summary{margin-bottom:10px}
 .mhm-wrap .mhm-new-category[open] input{background:#fff}
 .mhm-wrap .mhm-new-category .description{margin-bottom:0}
}

@media screen{
 .mhm-workspace-nav nav{gap:12px}
 .mhm-workspace-nav .mhm-nav-actions .mhm-menu-toggle{width:48px;height:48px;font-size:28px;line-height:1;padding:0}
 .mhm-entry-layout{align-items:stretch}
 .mhm-entry-layout>aside{align-self:stretch}
 .mhm-entry-layout>aside>.dashicons{width:44px;height:44px;font-size:38px;margin:0 0 14px}
 .mhm-entry-layout>#mhm-transaction-form{margin-bottom:0}
 .mhm-wrap .mhm-entry-heading{min-height:88px;box-sizing:border-box}
 .mhm-wrap #mhm-transaction-form>button[type="submit"]{grid-column:1/-1;justify-self:start;align-self:start;height:44px;min-height:44px;padding:0 24px}
 .mhm-category-manager{margin-top:22px}
 .mhm-category-manager summary{font-weight:700;cursor:pointer}
 .mhm-category-manager .mhm-category-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:14px;padding:12px;border:1px solid #dce5e5;border-radius:8px}
 .mhm-category-row input[name="category_name"]{min-width:180px;flex:1}
 @media(max-width:782px){.mhm-entry-layout>aside{min-height:180px}}
}

/* rc7: dashboard finance panels and three category columns. */
@media screen{
 .mhm-dashboard-finances{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;min-width:0}
 .mhm-dashboard-finances>.mhm-panel{margin:0 0 18px;min-width:0}
 .mhm-dashboard-finances .mhm-mini-cards,.mhm-collection-cards{display:grid;grid-template-columns:1fr;gap:22px}
 .mhm-collection-cards>div{padding:14px;background:#f5f8f8;border-radius:8px}
 .mhm-collection-cards span,.mhm-collection-cards strong{display:block}
 .mhm-collection-cards strong{font-size:18px;margin-top:6px}
 .mhm-dashboard-finances strong{overflow-wrap:anywhere}
 .mhm-category-columns{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;margin-top:24px}
 .mhm-category-column{min-width:0}
 .mhm-category-list{background:white;border:1px solid #e0e9e9;border-radius:10px;padding:14px;display:grid;gap:14px;align-content:start}
 .mhm-category-manager .mhm-category-row{display:grid;grid-template-columns:auto auto minmax(0,1fr);gap:6px;margin:0;padding:16px 10px;min-height:72px;box-sizing:border-box}
 .mhm-category-manager .mhm-category-row input[name="category_name"]{width:100%;min-width:0;max-width:none;box-sizing:border-box;height:36px;margin:0}
 .mhm-category-manager .mhm-category-row .button{padding:4px 7px;font-size:11px;min-height:32px}
 .mhm-category-manager .mhm-category-origin{grid-column:1/-1;text-align:right}
 .mhm-category-manager .mhm-system-category{grid-template-columns:1fr;align-content:center}
 @media(max-width:1100px){.mhm-dashboard-grid{grid-template-columns:1fr}.mhm-category-columns{gap:12px}.mhm-category-manager .mhm-category-row input[name="category_name"]{grid-column:1/-1;grid-row:1}}
 @media(max-width:700px){.mhm-dashboard-finances,.mhm-category-columns{grid-template-columns:1fr}}
}

/* MEGH-SV-6.8: shared page banners. */
@media screen {
 .mhm-wrap .mhm-page-banner{display:flex;flex-wrap:wrap;gap:16px 24px;box-sizing:border-box;padding:26px 24px;margin:0 0 20px;border-radius:14px;background:linear-gradient(110deg,var(--mhm-banner,#003544),var(--mhm-end,#19685d));color:#fff}
 .mhm-page-banner-title{flex:1 1 240px;min-width:0}
 .mhm-wrap .mhm-page-banner h1{color:#fff!important;font-weight:900;overflow-wrap:anywhere}
 .mhm-wrap .mhm-page-banner p{color:#fff;margin:8px 0 0}
 .mhm-page-banner .mhm-version{flex-shrink:0;background:rgba(0,0,0,.2);border:1px solid rgba(255,255,255,.3);color:#fff;white-space:nowrap}
 .mhm-page-banner .mhm-toolbar,.mhm-page-banner .mhm-banner-note{flex-basis:100%;margin:0}
 .mhm-page-banner .mhm-toolbar{flex-wrap:wrap}
 .mhm-wrap .mhm-page-banner .button{background:#fff;border-color:#fff;color:var(--mhm-primary,#003544)}
 .mhm-wrap.mhm-page-dashboard>.mhm-page-banner{display:none}
 @media(max-width:600px){.mhm-wrap .mhm-page-banner{padding:20px 18px;gap:14px}.mhm-page-banner-title{flex-basis:100%}.mhm-page-banner .mhm-toolbar{justify-content:flex-start}}
}

@media screen {
 .mhm-calendar-dates{display:flex;flex-direction:column;gap:6px;text-align:right;flex-shrink:0;line-height:1.5}
 .mhm-calendar-dates time[lang="ar"]{font-size:18px}
 .mhm-page-banner a.mhm-version{text-decoration:none}
 .mhm-page-banner a.mhm-version:hover{color:#fff;text-decoration:underline}
 .mhm-page-banner a.mhm-version:focus-visible{outline:2px solid #fff;outline-offset:4px}
 @media(max-width:782px){.mhm-calendar-dates{text-align:left;align-items:flex-start}}
}

/* MEGH-SV-7.0: readable feedback, independent of banner/theme text colours. */
@media screen {
 .mhm-wrap .notice{box-sizing:border-box;position:relative;width:100%;margin:16px 0;padding:14px 44px 14px 18px;border:1px solid #b8cbd3;border-left:5px solid #2271b1;border-radius:8px;background:#f0f6fc!important;color:#172f34!important;box-shadow:0 2px 8px rgba(0,0,0,.06)}
 .mhm-wrap .notice p,.mhm-wrap .notice li,.mhm-wrap .notice strong{color:#172f34!important;font-size:14px;line-height:1.65;opacity:1}
 .mhm-wrap .notice p{margin:0!important;padding:0;font-weight:500;overflow-wrap:anywhere}
 .mhm-wrap .notice-success{background:#edf8f0!important;border-color:#b4d9bf;border-left-color:#238636}
 .mhm-wrap .notice-error{background:#fff1f0!important;border-color:#efc3be;border-left-color:#c9352b}
 .mhm-wrap .notice-warning{background:#fff8e6!important;border-color:#e7d498;border-left-color:#a66b00}
 .mhm-wrap .notice a{color:#005a80!important;text-decoration:underline}
 .mhm-wrap .notice-dismiss{color:#172f34!important}
 .mhm-wrap .notice-dismiss:before{color:#172f34!important}
}

/* MEGH-SV-7.1: compact A4 pilgrim profile. */
.mhm-profile-print-header{display:none}
@media print {
 @page{size:A4 portrait;margin:.6in}
 html,body{height:auto!important;min-height:0!important;background:#fff!important}
 #wpcontent,#wpbody,#wpbody-content{margin:0!important;padding:0!important;min-height:0!important;float:none!important}
 #wpfooter,#screen-meta,#screen-meta-links,.update-nag{display:none!important}
 .mhm-wrap:has(.mhm-pilgrim-document){margin:0!important;padding:0!important;width:100%!important;max-width:none!important;font:9pt/1.35 Arial,sans-serif;color:#172f34}
 .mhm-wrap:has(.mhm-pilgrim-document)>.mhm-heading{display:none!important}
 .mhm-pilgrim-document .mhm-profile-print-header{display:flex!important;align-items:center;gap:4mm;border-bottom:2px solid #174d48;padding:0 0 4mm;margin:0 0 4mm;break-inside:avoid}
 .mhm-profile-print-logo{width:17mm;height:17mm;object-fit:contain}
 .mhm-pilgrim-document .mhm-profile-print-header h1{font-size:20pt!important;line-height:1.15;margin:1mm 0!important;color:#123e3b!important;text-transform:none!important}
 .mhm-profile-print-header p{margin:0;font-size:9pt}
 .mhm-profile-print-header .mhm-profile-agency{font-size:10pt;font-weight:700}
 .mhm-profile-print-meta{margin-left:auto;text-align:right;font-size:8pt;white-space:nowrap}
 .mhm-pilgrim-document .mhm-detail-cards{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:0;margin:0 0 4mm;border:1px solid #bbc9c7;break-inside:avoid}
 .mhm-pilgrim-document .mhm-detail-cards .mhm-panel{padding:2.5mm!important;margin:0!important;border:0!important;border-right:1px solid #d5dfdd!important;border-radius:0}
 .mhm-pilgrim-document .mhm-detail-cards .mhm-panel:last-child{border-right:0!important}
 .mhm-pilgrim-document .mhm-detail-cards span{font-size:7.5pt;color:#40534f}
 .mhm-pilgrim-document .mhm-detail-cards strong{font-size:10pt;line-height:1.3;margin-top:1mm;overflow-wrap:anywhere}
 .mhm-pilgrim-document>section.mhm-panel{padding:0!important;margin:0 0 4mm!important;border:0!important;border-radius:0;box-shadow:none!important;break-inside:auto}
 .mhm-pilgrim-document h2{font-size:11pt!important;line-height:1.3;color:#174d48!important;border-bottom:1px solid #bacac6;padding:0 0 1.5mm;margin:0 0 2mm!important;break-after:avoid}
 .mhm-pilgrim-document section>p,.mhm-pilgrim-document .mhm-travel-display>p{font-size:8pt;margin:0 0 2mm}
 .mhm-pilgrim-document .mhm-detail-pairs{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:0 6mm;margin:0}
 .mhm-pilgrim-document .mhm-detail-pairs>div{display:grid;grid-template-columns:32mm minmax(0,1fr);gap:2mm;padding:1.5mm 0;border-bottom:1px solid #e2e8e6;break-inside:avoid}
 .mhm-pilgrim-document .mhm-detail-pairs dt{font-size:8pt;line-height:1.35;margin:0;color:#465b56}
 .mhm-pilgrim-document .mhm-detail-pairs dd{font-size:9pt;line-height:1.35;margin:0;overflow-wrap:anywhere}
 .mhm-pilgrim-document .mhm-member-card{padding:2mm 0;margin:0 0 2mm;border:0;break-inside:avoid}
 .mhm-pilgrim-document summary{font-size:9pt;margin:0 0 1mm;list-style:none}
 .mhm-pilgrim-document table{width:100%!important;table-layout:fixed;border-collapse:collapse;margin:0;font-size:7.5pt}
 .mhm-pilgrim-document th,.mhm-pilgrim-document td{font-size:7.5pt!important;line-height:1.3;padding:1.5mm!important;border:1px solid #cbd6d3;overflow-wrap:anywhere;vertical-align:top}
 .mhm-pilgrim-document thead{display:table-header-group}
 .mhm-pilgrim-document tr{break-inside:avoid}
 .mhm-pilgrim-document .mhm-profile-print-hide{display:none!important}
 .mhm-wrap:has(.mhm-pilgrim-document)>.mhm-print-signature{margin:7mm 0 0 auto;padding-top:2mm;border-top:1px solid #657c75;width:55mm;text-align:center;font-size:8pt;break-inside:avoid}
}

/* MEGH-SV-7.2: consistent section titles and optional print sections. */
.mhm-pilgrim-document .mhm-profile-section-title,
.mhm-pilgrim-document .mhm-profile-section-title label,
.mhm-pilgrim-document .mhm-profile-section-title span{
 font-family:Arial,sans-serif!important;font-size:20px!important;font-weight:700!important;
 font-style:normal!important;line-height:1.35!important;letter-spacing:normal!important;
 color:#174d48!important;text-transform:none!important;
}
.mhm-pilgrim-document .mhm-profile-section-title label{display:flex;align-items:center;gap:9px;cursor:pointer}
.mhm-pilgrim-document .mhm-print-section-toggle{width:17px;height:17px;flex:0 0 17px;margin:0;accent-color:#174d48}
@media print{
 .mhm-pilgrim-document .mhm-profile-section-title,
 .mhm-pilgrim-document .mhm-profile-section-title label,
 .mhm-pilgrim-document .mhm-profile-section-title span{font-size:11pt!important;color:#174d48!important}
 .mhm-pilgrim-document .mhm-print-section-toggle{display:none!important}
 .mhm-pilgrim-document .mhm-profile-section-title label{display:block}
 .mhm-pilgrim-document section.mhm-print-excluded{display:none!important}
 .mhm-pilgrim-document section:has(.mhm-print-section-toggle:not(:checked)){display:none!important}
}

/* MEGH-SV-7.3: signature space stays attached to its line across page breaks. */
@media print{
 .mhm-wrap>.mhm-print-signature,
 .mhm-wrap:has(.mhm-pilgrim-document)>.mhm-print-signature{
  margin:0 0 0 auto!important;padding:0!important;border:0!important;
  width:55mm;text-align:center;font-size:8pt;break-inside:avoid;page-break-inside:avoid;
 }
 .mhm-wrap>.mhm-print-signature:before{
  content:"";display:block;height:.75in;box-sizing:content-box;
  border-bottom:1px solid #657c75;margin-bottom:2mm;
 }
 #mhm-share-pdf-dialog{display:none!important}
}
#mhm-share-pdf-dialog{box-sizing:border-box;max-width:520px;width:calc(100% - 32px);border:1px solid #b8cbc5;border-radius:12px;padding:24px;background:#fff;color:#172f34;font:15px/1.55 Arial,sans-serif}
#mhm-share-pdf-dialog::backdrop{background:rgba(0,0,0,.45)}
#mhm-share-pdf-dialog h2{margin:0 0 12px;color:#174d48;font-size:21px}
#mhm-share-pdf-dialog input{display:block;margin-top:8px;max-width:100%}
.mhm-share-pdf-actions{display:flex;gap:10px;margin-top:16px}

/* MEGH-SV-7.5: keep all borders and long values within the printable width. */
@media print{
 .mhm-pilgrim-document,.mhm-pilgrim-document *{box-sizing:border-box}
 .mhm-pilgrim-document{max-width:100%;min-width:0}
 .mhm-pilgrim-document .mhm-detail-cards{width:100%;max-width:100%;border-right:1px solid #bbc9c7!important}
 .mhm-pilgrim-document .mhm-detail-cards>div,
 .mhm-pilgrim-document .mhm-detail-pairs>div,
 .mhm-pilgrim-document .mhm-detail-pairs dd{min-width:0;max-width:100%;overflow-wrap:anywhere}
 .mhm-pilgrim-document .mhm-table-scroll{width:100%;max-width:100%;overflow:visible!important}
 .mhm-pilgrim-document table{width:100%!important;max-width:100%;box-sizing:border-box}
 .mhm-pilgrim-document th,.mhm-pilgrim-document td{white-space:normal!important;word-break:normal;overflow-wrap:anywhere}
 @page{margin:.6in;
  @bottom-right{content:"Page " counter(page) " of " counter(pages);font:8pt Arial;color:#415550}
  @bottom-left{content:"Pilgrim statement";font:8pt Arial;color:#415550}
 }
}

@media screen{
 .mhm-wrap .mhm-receipt-button{min-width:100px;min-height:38px;padding:8px 14px!important;border-radius:7px;font-weight:700;white-space:nowrap;box-shadow:0 2px 4px rgba(0,53,68,.15)}
}

/* MEGH-SV-7.7: bulk entry controls and alternating rows. */
@media screen{
 .mhm-wrap .mhm-entry-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap}
 .mhm-wrap .mhm-entry-heading h2{margin:0;flex:1 1 auto}
 .mhm-wrap .mhm-entry-heading .mhm-entry-bulk-link{margin-left:auto;min-height:40px;white-space:nowrap}
 .mhm-wrap .mhm-bulk table thead th{background:#d3e8e1!important;color:#174d48!important;font-weight:700!important;padding:13px 10px;vertical-align:middle;border-bottom:2px solid #a7c7ba}
 .mhm-wrap .mhm-bulk #mhm-bulk-rows tr:nth-child(odd)>td{background:#f5faf8!important}
 .mhm-wrap .mhm-bulk #mhm-bulk-rows tr:nth-child(even)>td{background:#dcece5!important}
 .mhm-wrap .mhm-bulk #mhm-bulk-rows td{padding:10px 8px;vertical-align:middle;border-bottom:1px solid #bed6cb}
 .mhm-wrap .mhm-bulk #mhm-bulk-rows input,
 .mhm-wrap .mhm-bulk #mhm-bulk-rows select,
 .mhm-wrap .mhm-bulk #mhm-bulk-rows .mhm-remove-bulk{
  box-sizing:border-box;height:42px!important;min-height:42px!important;max-height:42px!important;margin:0!important;padding:8px 10px!important;line-height:24px!important;border-radius:5px;
 }
 .mhm-wrap .mhm-bulk #mhm-bulk-rows input,
 .mhm-wrap .mhm-bulk #mhm-bulk-rows select{background-color:#fff}
 .mhm-wrap .mhm-bulk #mhm-bulk-rows select{padding-right:32px!important}
 .mhm-wrap .mhm-bulk #mhm-bulk-rows .mhm-remove-bulk{display:inline-flex;align-items:center;justify-content:center;white-space:nowrap;background:#fff;color:#9b302b;border-color:#cfaaa6;font-weight:600}
}

.mhm-passport-photo{width:105px;height:140px;object-fit:contain;border:1px solid #b9cdc5;background:#fff;padding:3px;border-radius:4px}
.mhm-photo-upload{padding:16px;background:#edf5f1;border:1px solid #cbded5;border-radius:8px}
.mhm-photo-upload>label{display:block;font-weight:700}
.mhm-photo-upload input[type=file]{display:block;margin:10px 0}
.mhm-photo-upload img[hidden]{display:none}
.mhm-profile-photo{float:right;margin:0 0 12px 16px}
.mhm-pilgrim-document .mhm-detail-cards{clear:both}
@media print{
 .mhm-profile-photo{float:right;margin:0 0 3mm 4mm}
 .mhm-profile-photo .mhm-passport-photo{width:30mm;height:40mm;object-fit:contain}
 .mhm-profile-print-header{min-height:40mm}
}

.mhm-member-card:after{content:'';display:block;clear:both}
.mhm-photo-upload input[type=file][hidden]{display:none!important}
.mhm-crop-dialog{width:min(520px,calc(100% - 24px));max-height:92vh;overflow:auto;box-sizing:border-box;padding:22px;border:1px solid #bed3ca;border-radius:14px;background:white;color:#173f38;font:14px/1.5 Arial,sans-serif}
.mhm-crop-dialog::backdrop{background:rgba(0,20,20,.65)}
.mhm-crop-dialog h2{margin:0 0 14px}
.mhm-crop-sources,.mhm-crop-actions{display:flex;gap:10px;flex-wrap:wrap}
.mhm-crop-dialog button{min-height:40px;padding:8px 16px;border:1px solid #174d48;border-radius:6px;background:#174d48;color:white;cursor:pointer}
.mhm-crop-dialog button:disabled{opacity:.5;cursor:default}
.mhm-crop-dialog canvas{display:block;width:min(100%,280px);height:auto;margin:12px auto;touch-action:none;cursor:move;border:2px solid #174d48}
.mhm-crop-dialog label{display:flex;align-items:center;gap:10px;margin:8px 0}
.mhm-crop-dialog input[type=range]{flex:1;min-width:80px}
@media print{.mhm-crop-dialog{display:none!important}}

/* MEGH-SV-8.2: align profile photos and retain complete print borders. */
.mhm-personal-photo-layout,.mhm-member-photo-layout{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:16px;align-items:start}
.mhm-personal-photo-layout>.mhm-profile-photo,.mhm-member-photo-layout>.mhm-profile-photo{grid-column:2;grid-row:1;float:none;margin:0;line-height:0}
.mhm-personal-photo-layout>.mhm-detail-pairs,.mhm-member-photo-layout>.mhm-detail-pairs{grid-column:1;grid-row:1;min-width:0}
.mhm-personal-photo-layout:not(:has(>.mhm-profile-photo)),.mhm-member-photo-layout:not(:has(>.mhm-profile-photo)){grid-template-columns:minmax(0,1fr)}
@media print{
 .mhm-pilgrim-document .mhm-profile-print-header{min-height:32mm;align-items:center;padding-bottom:0;height:auto}
 .mhm-profile-print-header>.mhm-profile-photo{float:none;margin:0 0 0 2mm;flex:0 0 auto;line-height:0;align-self:flex-end}
 .mhm-profile-print-header>.mhm-profile-photo .mhm-passport-photo{display:block;box-sizing:border-box;width:24.89mm;height:32mm;margin:0}
 .mhm-personal-photo-layout{display:block}
 .mhm-personal-photo-layout>.mhm-profile-photo{display:none!important}
 .mhm-member-photo-layout{gap:4mm}
 .mhm-member-photo-layout>.mhm-profile-photo .mhm-passport-photo{display:block;box-sizing:border-box;width:24.89mm;height:32mm;margin:0}
 .mhm-pilgrim-document .mhm-detail-cards{box-sizing:border-box!important;width:100%!important;max-width:100%!important;overflow:visible!important;border:1px solid #bbc9c7!important}
 .mhm-pilgrim-document .mhm-detail-cards>.mhm-panel:last-child{border-right:1px solid #bbc9c7!important}
}

/* MEGH-SV-8.3: fit photos to the actual header/member text boundaries. */
@media print{
 .mhm-pilgrim-document .mhm-profile-print-header{position:relative;align-items:flex-start;padding:0 29mm 0 0;min-height:32mm}
 .mhm-pilgrim-document .mhm-profile-print-header:not(:has(>.mhm-profile-photo)){padding-right:0}
 .mhm-pilgrim-document .mhm-profile-print-header>.mhm-profile-photo{position:absolute;top:0;bottom:0;right:0;width:24.89mm;margin:0;align-self:auto}
 .mhm-pilgrim-document .mhm-profile-print-header>.mhm-profile-photo .mhm-passport-photo{width:100%;height:100%;max-height:100%;object-fit:contain;padding:0}
 .mhm-pilgrim-document .mhm-member-card{position:relative;padding:0;margin:0 0 3mm}
 .mhm-pilgrim-document .mhm-member-card:has(.mhm-profile-photo){padding-right:29mm;min-height:24mm}
 .mhm-pilgrim-document .mhm-member-photo-layout{display:block;position:static}
 .mhm-pilgrim-document .mhm-member-photo-layout>.mhm-profile-photo{position:absolute;top:0;bottom:0;right:0;width:24.89mm;margin:0}
 .mhm-pilgrim-document .mhm-member-photo-layout>.mhm-profile-photo .mhm-passport-photo{width:100%;height:100%;max-height:100%;object-fit:contain;padding:0}
}

@media print{
 .mhm-pilgrim-document .mhm-member-card:first-of-type .mhm-member-photo-layout>.mhm-profile-photo{top:-6mm}
 .mhm-pilgrim-document section:has(>.mhm-member-card)>p{padding-right:29mm}
}

/* MEGH-SV-8.4: concise print notes, exact page margin and compact receipt action. */
@media print{
 @page{size:A4 portrait;margin:0.6in}
 html:has(.mhm-pilgrim-document),body:has(.mhm-pilgrim-document){margin:0!important;padding:0!important}
 body:has(.mhm-pilgrim-document) #wpwrap,
 body:has(.mhm-pilgrim-document) #wpcontent,
 body:has(.mhm-pilgrim-document) #wpbody,
 body:has(.mhm-pilgrim-document) #wpbody-content{margin:0!important;padding:0!important;top:auto!important;min-height:0!important}
 .mhm-pilgrim-document{margin-top:0!important;padding-top:0!important}
 .mhm-pilgrim-document .mhm-booking-print-note{display:none!important}
 .mhm-pilgrim-document .mhm-member-card:first-of-type .mhm-member-photo-layout>.mhm-profile-photo{top:0}
}
@media screen{
 .mhm-wrap .mhm-pilgrim-document .mhm-receipt-button{box-sizing:border-box;height:32px!important;min-height:32px!important;max-height:32px!important;min-width:88px;padding:0 10px!important;line-height:1!important;font-size:12px;border-radius:5px}
 .mhm-wrap .mhm-pilgrim-document .mhm-receipt-button .dashicons{font-size:16px;width:16px;height:16px;line-height:16px}
}

/* MEGH-SV-8.5: photo clearance and readable payment identifiers. */
@media print{
 .mhm-pilgrim-document .mhm-profile-print-header>.mhm-profile-photo{bottom:3mm}
 .mhm-pilgrim-document .mhm-payment-history-table th:nth-child(2),
 .mhm-pilgrim-document .mhm-payment-history-table td:nth-child(2),
 .mhm-pilgrim-document .mhm-payment-history-table th:nth-child(8),
 .mhm-pilgrim-document .mhm-payment-history-table td:nth-child(8){white-space:nowrap!important;overflow-wrap:normal!important;word-break:normal!important}
 .mhm-pilgrim-document .mhm-payment-history-table th:nth-child(1){width:11%}
 .mhm-pilgrim-document .mhm-payment-history-table th:nth-child(2){width:18%}
 .mhm-pilgrim-document .mhm-payment-history-table th:nth-child(3){width:8%}
 .mhm-pilgrim-document .mhm-payment-history-table th:nth-child(4){width:12%}
 .mhm-pilgrim-document .mhm-payment-history-table th:nth-child(5){width:12%}
 .mhm-pilgrim-document .mhm-payment-history-table th:nth-child(6){width:13%}
 .mhm-pilgrim-document .mhm-payment-history-table th:nth-child(7){width:8%}
 .mhm-pilgrim-document .mhm-payment-history-table th:nth-child(8){width:18%}
}

/* MEGH-SV-8.6: photo follows the identity text height. */
@media print{
 .mhm-pilgrim-document .mhm-profile-print-header{display:grid!important;grid-template-columns:auto minmax(0,1fr) auto 22mm;align-items:start;min-height:0;height:auto;padding:0 0 3mm!important;gap:4mm}
 .mhm-profile-print-header>.mhm-profile-print-logo{grid-column:1;grid-row:1}
 .mhm-profile-print-header>.mhm-profile-print-identity{grid-column:2;grid-row:1;min-width:0}
 .mhm-profile-print-header>.mhm-profile-print-meta{grid-column:3;grid-row:1}
 .mhm-pilgrim-document .mhm-profile-print-header>.mhm-profile-photo{grid-column:4;grid-row:1;position:relative;top:auto;bottom:auto;right:auto;width:22mm;height:auto;min-height:0;margin:0;align-self:stretch}
 .mhm-pilgrim-document .mhm-profile-print-header>.mhm-profile-photo .mhm-passport-photo{position:absolute;inset:0;width:100%;height:100%;max-height:100%;object-fit:contain;padding:0;margin:0}
 .mhm-pilgrim-document .mhm-profile-print-header:not(:has(>.mhm-profile-photo)){grid-template-columns:auto minmax(0,1fr) auto}
}

/* MEGH-SV-8.7: agency contacts and compact identity photos. */
.mhm-setting-fields textarea{display:block;width:100%;box-sizing:border-box;margin-top:8px}
@media print{
 .mhm-pilgrim-document .mhm-profile-print-header{grid-template-columns:17mm minmax(0,1fr) minmax(0,1fr) 18mm;gap:3mm;padding-bottom:5mm!important}
 .mhm-profile-print-header>.mhm-profile-print-agency{grid-column:2;grid-row:1;min-width:0;overflow-wrap:anywhere}
 .mhm-profile-print-agency p{font-size:8pt;line-height:1.4}
 .mhm-profile-print-agency .mhm-profile-agency{font-weight:700;margin-bottom:1.5mm}
 .mhm-profile-print-header>.mhm-profile-print-identity{grid-column:3;text-align:right;display:flex;flex-direction:column;justify-content:space-between}
 .mhm-profile-print-identity .mhm-profile-print-meta{margin:0 0 3mm;font-size:8pt}
 .mhm-pilgrim-document .mhm-profile-print-header h1{font-size:17pt!important;overflow-wrap:anywhere}
 .mhm-profile-print-identity>p{font-size:8pt}
 .mhm-pilgrim-document .mhm-profile-print-header>.mhm-profile-photo{width:18mm}
 .mhm-pilgrim-document .mhm-profile-print-header:not(:has(>.mhm-profile-photo)){grid-template-columns:17mm minmax(0,1fr) minmax(0,1fr)}
 .mhm-pilgrim-document .mhm-member-card:has(.mhm-profile-photo){padding-right:0;min-height:0}
 .mhm-pilgrim-document .mhm-member-photo-layout{display:grid;grid-template-columns:minmax(0,1fr) 18mm;gap:4mm;position:relative;align-items:stretch}
 .mhm-pilgrim-document .mhm-member-photo-layout>.mhm-profile-photo{position:relative;top:auto!important;bottom:auto;right:auto;width:18mm;min-height:0;align-self:stretch}
 .mhm-pilgrim-document .mhm-member-photo-layout>.mhm-profile-photo .mhm-passport-photo{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}
 .mhm-pilgrim-document .mhm-member-photo-layout:not(:has(>.mhm-profile-photo)){grid-template-columns:minmax(0,1fr)}
}

@media print{.mhm-profile-print-header>.mhm-profile-print-identity{align-self:stretch}}

/* MEGH-SV-8.8: fixed passport ratio without letterboxing. */
@media print{
 .mhm-pilgrim-document .mhm-profile-print-header>.mhm-profile-photo,
 .mhm-pilgrim-document .mhm-member-photo-layout>.mhm-profile-photo{width:18mm;height:23.142857mm;min-height:0;max-height:none;aspect-ratio:35/45;align-self:start;line-height:0}
 .mhm-pilgrim-document .mhm-profile-print-header>.mhm-profile-photo .mhm-passport-photo,
 .mhm-pilgrim-document .mhm-member-photo-layout>.mhm-profile-photo .mhm-passport-photo{position:static;display:block;width:100%;height:100%;box-sizing:border-box;padding:0;border:0;border-radius:0;object-fit:cover;object-position:center;margin:0}
}

/* MEGH-SV-8.9: consistent photo controls and registration field heights. */
.mhm-photo-edit-layout{display:flex;align-items:flex-start;gap:18px;flex-wrap:wrap;margin-top:12px}
.mhm-photo-edit-actions{display:flex;flex-direction:column;align-items:flex-start;gap:12px}
.mhm-wrap .mhm-photo-edit-actions .mhm-open-crop{margin:0!important;min-height:38px;line-height:1.3}
.mhm-wrap .mhm-photo-upload label.mhm-photo-remove{display:inline-flex;align-items:center;gap:8px;width:auto;margin:0;padding:8px 10px;border:1px solid #d9b7b7;border-radius:6px;background:#fff5f5;color:#8c2929;font-size:13px;line-height:20px;font-weight:500;text-transform:none;cursor:pointer}
.mhm-wrap .mhm-photo-upload .mhm-photo-remove input[type=checkbox]{appearance:auto;width:16px!important;min-width:16px!important;max-width:16px!important;height:16px!important;min-height:16px!important;padding:0!important;margin:0!important;flex:0 0 16px;display:inline-block;box-shadow:none}
.mhm-wrap #mhm-pilgrim-form input:not([type=hidden]):not([type=checkbox]):not([type=radio]):not([type=file]),
.mhm-wrap #mhm-pilgrim-form select{box-sizing:border-box;height:42px!important;min-height:42px!important;max-height:42px!important;padding-top:8px!important;padding-bottom:8px!important;line-height:24px!important}

/* MEGH-SV-9.0: compact pilgrim identity beside the passport photo. */
@media print{
 .mhm-pilgrim-document .mhm-profile-print-header>.mhm-profile-print-identity{align-self:start;min-height:23.142857mm;justify-content:center;gap:1mm;height:auto}
 .mhm-pilgrim-document .mhm-profile-print-identity .mhm-profile-print-meta{margin:0!important;line-height:1.2}
 .mhm-pilgrim-document .mhm-profile-print-identity h1{margin:0!important;line-height:1.1}
 .mhm-pilgrim-document .mhm-profile-print-identity>p{margin:0!important;line-height:1.2}
}

/* MEGH-SV-9.1: align member right column with primary details. */
@media print{
 .mhm-pilgrim-document .mhm-member-photo-layout:has(>.mhm-profile-photo)>.mhm-detail-pairs{grid-template-columns:calc(50% + 8mm) minmax(0,1fr)!important}
}

.mhm-pilgrim-document .mhm-payment-history-table thead th,.mhm-pilgrim-document .mhm-package-history-table thead th{font-weight:700!important}

/* MEGH-SV-9.3: consistent financial columns and compact print headings. */
.mhm-wrap td[style*="text-align:right"]{text-align:right!important;font-variant-numeric:tabular-nums}
.mhm-wrap input[name="amount"],.mhm-wrap input[name$="[amount]"],.mhm-wrap input[name="rate"]{text-align:right}
.mhm-payment-history-table th:nth-child(5),.mhm-payment-history-table td:nth-child(3),.mhm-package-history-table th:nth-child(2){white-space:nowrap!important;word-break:normal!important;overflow-wrap:normal!important}
@media print{
 .mhm-pilgrim-document .mhm-payment-history-table th,.mhm-pilgrim-document .mhm-payment-history-table td{padding-left:1mm!important;padding-right:1mm!important;font-size:7pt!important}
 .mhm-pilgrim-document .mhm-payment-history-table th:nth-child(1),.mhm-pilgrim-document .mhm-payment-history-table td:nth-child(1){width:12%!important}
 .mhm-pilgrim-document .mhm-payment-history-table th:nth-child(2),.mhm-pilgrim-document .mhm-payment-history-table td:nth-child(2){width:18%!important}
 .mhm-pilgrim-document .mhm-payment-history-table th:nth-child(3),.mhm-pilgrim-document .mhm-payment-history-table td:nth-child(3){width:15%!important}
 .mhm-pilgrim-document .mhm-payment-history-table th:nth-child(4),.mhm-pilgrim-document .mhm-payment-history-table td:nth-child(4){width:8%!important}
 .mhm-pilgrim-document .mhm-payment-history-table th:nth-child(5),.mhm-pilgrim-document .mhm-payment-history-table td:nth-child(5){width:14%!important}
 .mhm-pilgrim-document .mhm-payment-history-table th:nth-child(6),.mhm-pilgrim-document .mhm-payment-history-table td:nth-child(6){width:12%!important}
 .mhm-pilgrim-document .mhm-payment-history-table th:nth-child(7),.mhm-pilgrim-document .mhm-payment-history-table td:nth-child(7){width:9%!important}
 .mhm-pilgrim-document .mhm-payment-history-table th:nth-child(8),.mhm-pilgrim-document .mhm-payment-history-table td:nth-child(8){width:12%!important}
 .mhm-pilgrim-document .mhm-package-history-table th,.mhm-pilgrim-document .mhm-package-history-table td{padding-left:1mm!important;padding-right:1mm!important;font-size:7pt!important}
 .mhm-pilgrim-document .mhm-package-history-table th:nth-child(1),.mhm-pilgrim-document .mhm-package-history-table td:nth-child(1){width:15%!important}
 .mhm-pilgrim-document .mhm-package-history-table th:nth-child(2),.mhm-pilgrim-document .mhm-package-history-table td:nth-child(2){width:19%!important}
 .mhm-pilgrim-document .mhm-package-history-table th:nth-child(3),.mhm-pilgrim-document .mhm-package-history-table td:nth-child(3){width:19%!important}
 .mhm-pilgrim-document .mhm-package-history-table th:nth-child(4),.mhm-pilgrim-document .mhm-package-history-table td:nth-child(4){width:12%!important}
 .mhm-pilgrim-document .mhm-package-history-table th:nth-child(5),.mhm-pilgrim-document .mhm-package-history-table td:nth-child(5){width:12%!important}
 .mhm-pilgrim-document .mhm-package-history-table th:nth-child(6),.mhm-pilgrim-document .mhm-package-history-table td:nth-child(6){width:12%!important}
 .mhm-pilgrim-document .mhm-package-history-table th:nth-child(7),.mhm-pilgrim-document .mhm-package-history-table td:nth-child(7){width:11%!important}
}

/* MEGH-SV-9.4: payment-specific bank and mobile controls. */
.mhm-wrap .mhm-payment-controls{grid-column:1/-1;min-width:0;padding:16px;border:1px solid #c4d9d2;border-radius:8px;background:#f3f9f6}
.mhm-wrap .mhm-payment-controls>label{display:flex;flex-direction:column;gap:6px;max-width:340px;font-weight:600}
.mhm-wrap .mhm-payment-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-top:14px}
.mhm-wrap .mhm-payment-fields>label{display:flex;flex-direction:column;gap:6px;font-weight:600;min-width:0}
.mhm-wrap .mhm-payment-controls [hidden]{display:none!important}
.mhm-wrap .mhm-payment-controls select,.mhm-wrap .mhm-payment-controls input{width:100%;max-width:100%;height:42px;box-sizing:border-box;font-weight:400}
.mhm-wrap .mhm-bulk .mhm-payment-controls{min-width:260px;padding:10px}
.mhm-wrap .mhm-bulk .mhm-payment-fields{grid-template-columns:minmax(0,1fr);gap:10px}
.mhm-wrap .mhm-payment-settings input:not([type=hidden]),.mhm-wrap .mhm-payment-settings select{width:100%;max-width:100%;height:42px}
.mhm-wrap .mhm-payment-settings table{min-width:720px}
.mhm-wrap .mhm-payment-extra td{width:auto!important;font-size:8pt;white-space:normal!important;text-align:left!important;overflow-wrap:anywhere}
@media(max-width:782px){.mhm-wrap .mhm-payment-fields{grid-template-columns:minmax(0,1fr)}}

.mhm-wrap .mhm-payment-controls[data-method="Mobile Banking"] [data-payment-field="reference"]{order:4}

/* MEGH-SV-9.5: one consistent two-column entry form. */
.mhm-wrap #mhm-transaction-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 20px;align-items:start}
.mhm-wrap #mhm-transaction-form>.mhm-entry-heading,.mhm-wrap #mhm-transaction-form>.mhm-new-category,.mhm-wrap #mhm-transaction-form>button{grid-column:1/-1}
.mhm-wrap #mhm-transaction-form .mhm-payment-controls,.mhm-wrap #mhm-transaction-form .mhm-payment-fields{display:contents}
.mhm-wrap #mhm-transaction-form label{display:flex;flex-direction:column;gap:6px;margin:0;min-width:0;max-width:none}
.mhm-wrap #mhm-transaction-form .mhm-payment-controls [hidden]{display:none!important}
.mhm-wrap #mhm-transaction-form .mhm-payment-controls .description{grid-column:1/-1;margin:0}
.mhm-wrap #mhm-transaction-form .mhm-payment-controls [data-payment-field="reference"]{order:0}
.mhm-wrap .mhm-payment-controls,.mhm-wrap .mhm-bulk .mhm-payment-controls{padding:0;border:0;border-radius:0;background:transparent;min-width:0}
.mhm-wrap .mhm-bulk .mhm-payment-controls>label{max-width:none;display:block}
.mhm-wrap .mhm-bulk .mhm-account-label{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.mhm-wrap .mhm-bulk .mhm-payment-fields{margin:0;gap:10px}
.mhm-wrap .mhm-bulk .mhm-payment-fields>label:not([hidden]){margin-top:10px}
.mhm-wrap #mhm-transaction-form input:not([type=hidden]),.mhm-wrap #mhm-transaction-form select,.mhm-wrap #mhm-transaction-form textarea,
.mhm-wrap .mhm-bulk #mhm-bulk-rows input,.mhm-wrap .mhm-bulk #mhm-bulk-rows select{
 display:block;box-sizing:border-box;width:100%;max-width:100%;height:42px!important;min-height:42px!important;margin:0!important;padding:10px 12px!important;line-height:20px!important;border:1px solid #b8c8cd!important;border-radius:5px!important;background-color:#fff;box-shadow:none;font-family:inherit;font-size:14px;font-weight:400;
}
.mhm-wrap #mhm-transaction-form select,.mhm-wrap .mhm-bulk #mhm-bulk-rows select{padding-right:34px!important}
.mhm-wrap #mhm-transaction-form textarea{resize:vertical}
.mhm-wrap .mhm-bulk #mhm-bulk-rows .mhm-remove-bulk{width:42px;height:42px!important;min-height:42px!important;padding:0!important;display:inline-flex;align-items:center;justify-content:center}
.mhm-wrap .mhm-bulk .mhm-remove-bulk .dashicons{width:20px;height:20px;font-size:20px;line-height:20px;pointer-events:none}
.mhm-wrap .mhm-bulk table{table-layout:fixed;min-width:1120px}
.mhm-wrap .mhm-bulk table th:nth-child(1){width:12%}.mhm-wrap .mhm-bulk table th:nth-child(2){width:15%}.mhm-wrap .mhm-bulk table th:nth-child(3){width:17%}.mhm-wrap .mhm-bulk table th:nth-child(4){width:10%}.mhm-wrap .mhm-bulk table th:nth-child(5){width:13%}.mhm-wrap .mhm-bulk table th:nth-child(6){width:16%}.mhm-wrap .mhm-bulk table th:nth-child(7){width:12%}.mhm-wrap .mhm-bulk table th:nth-child(8){width:5%}
@media(max-width:600px){.mhm-wrap #mhm-transaction-form{grid-template-columns:minmax(0,1fr)}}

.mhm-wrap .mhm-remove-icon{display:block;width:20px;height:20px;flex:none;pointer-events:none}

/* MEGH-SV-9.6: align each bulk row to its From input. */
.mhm-wrap .mhm-bulk-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:16px}
.mhm-wrap .mhm-bulk-heading h2{margin:0}
.mhm-wrap .mhm-bulk-heading .button{margin-left:auto;white-space:nowrap}
.mhm-wrap .mhm-bulk #mhm-bulk-rows>tr>td{vertical-align:top!important}
.mhm-wrap .mhm-bulk #mhm-bulk-rows>tr>td:not(:nth-child(3)){padding-top:calc(10px + var(--mhm-bulk-offset,0px))!important}

/* MEGH-SV-9.7: amount controls and category-dependent party fields. */
.mhm-wrap input[type=number]::-webkit-inner-spin-button,.mhm-wrap input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
.mhm-wrap input[type=number]{-moz-appearance:textfield;appearance:textfield}
.mhm-wrap .mhm-bulk-footer{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:16px}
.mhm-wrap .mhm-bulk-footer>button[type=submit]{margin-left:auto}
.mhm-wrap #mhm-transaction-form label[hidden],.mhm-wrap .mhm-bulk input[hidden],.mhm-wrap .mhm-bulk select[hidden]{display:none!important}
.mhm-entry-layout>aside .mhm-sidebar-category{margin-top:auto;padding-top:28px;display:flex;flex-direction:column;gap:14px}
.mhm-entry-layout>aside .mhm-sidebar-category h3{color:white!important;font-size:16px!important;margin:0}
.mhm-entry-layout>aside .mhm-sidebar-category label{display:flex;flex-direction:column;gap:6px;color:white!important;text-align:left}
.mhm-entry-layout>aside .mhm-sidebar-category input:not([type=hidden]),.mhm-entry-layout>aside .mhm-sidebar-category select{box-sizing:border-box;background-color:white;color:#003544;width:100%;max-width:100%;height:42px;line-height:20px;padding:10px 12px;border:1px solid #b8c8cd;border-radius:5px}
.mhm-entry-layout>aside .mhm-sidebar-category button{background:white;color:#003544;height:42px}

/* MEGH-SV-9.8: reference category sidebar. */
.mhm-wrap .mhm-entry-layout>aside.mhm-category-aside{display:flex;flex-direction:column;justify-content:flex-end;min-height:650px;padding:36px 32px;background:#093342;border-radius:14px}
.mhm-wrap .mhm-category-aside .mhm-sidebar-category{width:100%;margin:0;padding:0;gap:16px}
.mhm-wrap .mhm-category-aside .mhm-category-icon{display:block;width:64px;height:64px;color:#fff;margin:0 0 10px;flex:none}
.mhm-wrap .mhm-category-aside .mhm-sidebar-category h3{font-size:19px!important;line-height:26px;margin:0 0 10px!important}
.mhm-wrap .mhm-category-aside .mhm-sidebar-category input:not([type=hidden]),.mhm-wrap .mhm-category-aside .mhm-sidebar-category select,.mhm-wrap .mhm-category-aside .mhm-sidebar-category button{height:36px;min-height:36px;margin:0;border:0;border-radius:9px;padding:7px 12px;line-height:22px;font-size:14px;font-weight:700;color:#093342;background-color:#fff;box-sizing:border-box;width:100%;text-align:left}
.mhm-wrap .mhm-category-aside .mhm-sidebar-category input::placeholder{color:#093342;opacity:1}
.mhm-wrap .mhm-category-aside .mhm-sidebar-category button{font-weight:600;cursor:pointer}
.mhm-wrap .mhm-category-aside .mhm-sidebar-category button:hover{background:#e8f3f3;color:#093342}
@media(max-width:782px){.mhm-wrap .mhm-entry-layout>aside.mhm-category-aside{min-height:0;padding:28px}}
/* MEGH-SV-9.9: online registration and shared travel plans. */
.mhm-public-registration{--mhm-primary:#003544;--mhm-accent:#b68a2d;--mhm-bg:#f2f7f5;--mhm-text:#172f34;margin:24px auto}
.mhm-public-registration .mhm-honeypot{position:absolute!important;left:-10000px!important;width:1px;height:1px;overflow:hidden}
.mhm-public-registration input,.mhm-public-registration select,.mhm-public-registration textarea{box-sizing:border-box;max-width:100%;font:inherit;padding:10px;border:1px solid #bdcccc;border-radius:6px;background:#fff;color:#172f34}
.mhm-public-registration .button{padding:12px 20px;background:#003544;color:white;border-radius:6px;border:0;cursor:pointer}
.mhm-wrap .mhm-travel-people{max-height:460px;overflow:auto;border:1px solid #ccdada;border-radius:8px}
.mhm-wrap .mhm-travel-person{display:flex!important;align-items:center;gap:12px;padding:12px;border-bottom:1px solid #dbe5e5}
.mhm-wrap .mhm-travel-person input{width:18px!important;height:18px!important;flex:none}
.mhm-wrap .mhm-travel-person[hidden]{display:none!important}
.mhm-wrap .mhm-travel-person:nth-child(even){background:#f2f7f5}

/* MEGH-SV-10.0: consistent fields and compact report alignment. */
@media screen{
.mhm-wrap input:is([type=text],[type=number],[type=search],[type=email],[type=tel],[type=url],[type=date],[type=datetime-local],[type=time],[type=password],:not([type])),
.mhm-wrap select:not([multiple]),.mhm-wrap textarea{box-sizing:border-box!important;height:42px!important;min-height:42px!important;line-height:20px!important;padding:10px 12px!important;margin-top:6px;vertical-align:middle}
.mhm-wrap textarea{resize:vertical}
.mhm-wrap .mhm-travel-form label{display:flex;flex-direction:column;justify-content:flex-start}
.mhm-wrap .mhm-travel-form .mhm-travel-person{flex-direction:row}
.mhm-wrap .mhm-report-actions{display:flex;justify-content:flex-start;align-items:center;gap:8px;flex-wrap:wrap;margin:0 0 16px;text-align:left}
.mhm-wrap .mhm-report-actions .button{display:inline-flex;justify-content:center;align-items:center;box-sizing:border-box;height:54px;min-height:54px;line-height:20px;padding:0 14px;margin:0}
.mhm-wrap .mhm-print-controls,.mhm-wrap .mhm-detail-actions{justify-content:flex-start;text-align:left}
.mhm-wrap .mhm-detail-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px}
.mhm-wrap .mhm-travel-list-actions{margin-bottom:16px}
.mhm-wrap .mhm-travel-list-actions .button{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;height:42px;min-height:42px;padding:0 14px;line-height:20px}
.mhm-wrap .mhm-outstanding-report{min-width:900px}
}
.mhm-wrap .mhm-outstanding-report{width:100%;border-collapse:collapse;table-layout:auto}
.mhm-wrap .mhm-outstanding-report th,.mhm-wrap .mhm-outstanding-report td{box-sizing:border-box;padding:12px 16px;vertical-align:middle}
.mhm-wrap .mhm-outstanding-report th{font-weight:700}
.mhm-wrap .mhm-outstanding-report th:nth-child(n+4),.mhm-wrap .mhm-outstanding-report td:nth-child(n+4){width:160px;text-align:right!important;white-space:nowrap;font-variant-numeric:tabular-nums}
.mhm-wrap .mhm-outstanding-report th:first-child,.mhm-wrap .mhm-outstanding-report td:first-child{width:190px;white-space:nowrap}
.mhm-wrap .mhm-outstanding-report th:nth-child(3),.mhm-wrap .mhm-outstanding-report td:nth-child(3){width:150px;white-space:nowrap}
@media print{.mhm-report-actions,.mhm-travel-list-actions{display:none!important}.mhm-wrap .mhm-outstanding-report{min-width:0;font-size:9pt}.mhm-wrap .mhm-outstanding-report th,.mhm-wrap .mhm-outstanding-report td{width:auto!important;padding:6px}}
@media screen{.mhm-wrap .mhm-print-controls>strong{flex:0 0 100%;margin:0}.mhm-wrap .mhm-category-aside .mhm-sidebar-category button{height:42px;min-height:42px}}

/* MEGH-SV-10.1: report hierarchy, print proportions and compact actions. */
.mhm-wrap .mhm-report-balances .mhm-mini-cards>div{border:1px solid #dbe7e5;border-left:4px solid #19685d;padding:16px;background:#f2f7f5}
.mhm-wrap .mhm-report-balances .mhm-mini-cards strong{font-variant-numeric:tabular-nums;font-size:20px}
.mhm-wrap .mhm-reports-layout h2{font-size:20px;margin:0 0 16px}
.mhm-wrap .mhm-report-actions{justify-content:flex-start!important;gap:8px;margin:0 0 16px}
.mhm-wrap .mhm-report-actions .button{height:42px!important;min-height:42px!important;padding:0 14px!important;line-height:20px!important;border-radius:6px;font-weight:600;color:#003544}
.mhm-wrap .mhm-outstanding-report thead{background:#eaf2f1;color:#163f48}
.mhm-wrap .mhm-outstanding-report{margin-top:0}
.mhm-wrap a.button.mhm-assign-hajji{display:inline-flex;align-items:center;justify-content:center;gap:6px;box-sizing:border-box;height:34px!important;min-height:34px!important;padding:0 10px!important;line-height:18px!important;font-size:12px;font-weight:600;border:1px solid #aac6c4;border-radius:6px;background:#edf6f4;color:#003544;white-space:nowrap;text-decoration:none}
.mhm-wrap a.button.mhm-assign-hajji:hover{background:#dceee9;border-color:#19685d;color:#003544}
.mhm-wrap .mhm-assign-hajji .dashicons{font-size:16px;width:16px;height:16px;line-height:16px;margin:0}
@media(max-width:600px){.mhm-report-balances .mhm-mini-cards{grid-template-columns:1fr}}
@media print{
.mhm-wrap .mhm-reports-layout .mhm-panel{padding:0;border:0;box-shadow:none;margin:0 0 7mm}
.mhm-wrap .mhm-reports-layout h2{font-size:13pt;margin:0 0 4mm;color:#123e48}
.mhm-wrap .mhm-report-balances .mhm-mini-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:3mm;break-inside:avoid}
.mhm-wrap .mhm-report-balances .mhm-mini-cards>div{padding:3mm;border:1px solid #b9ceca;background:#f2f7f5}
.mhm-wrap .mhm-report-balances .mhm-mini-cards strong{font-size:11pt}
.mhm-wrap .mhm-outstanding-report{table-layout:fixed;width:100%;min-width:0;font-size:8pt}
.mhm-wrap .mhm-outstanding-report th,.mhm-wrap .mhm-outstanding-report td{padding:2.5mm 1.5mm;line-height:1.4;white-space:normal!important;overflow-wrap:anywhere}
.mhm-wrap .mhm-outstanding-report th:nth-child(1),.mhm-wrap .mhm-outstanding-report td:nth-child(1){width:20%!important}
.mhm-wrap .mhm-outstanding-report th:nth-child(2),.mhm-wrap .mhm-outstanding-report td:nth-child(2){width:25%!important}
.mhm-wrap .mhm-outstanding-report th:nth-child(3),.mhm-wrap .mhm-outstanding-report td:nth-child(3){width:13%!important}
.mhm-wrap .mhm-outstanding-report th:nth-child(n+4),.mhm-wrap .mhm-outstanding-report td:nth-child(n+4){width:14%!important;white-space:nowrap!important;font-size:7.5pt}
.mhm-wrap .mhm-outstanding-report a{color:#172f34;text-decoration:none}
.mhm-wrap .mhm-outstanding-report thead{display:table-header-group}
.mhm-wrap .mhm-outstanding-report tr{break-inside:avoid}
}
@media print{.mhm-wrap:has(.mhm-reports-layout){margin:0!important;padding:0!important}.mhm-wrap:has(.mhm-reports-layout) .mhm-page-banner{height:auto!important;min-height:0!important;margin:0 0 5mm!important;padding:0 0 3mm!important;border-bottom:1px solid #b9ceca;border-radius:0;background:none!important}.mhm-wrap:has(.mhm-reports-layout) .mhm-page-banner h1{font-size:18pt!important;color:#123e48!important}}
@media print{.mhm-wrap .mhm-outstanding-report th,.mhm-wrap .mhm-outstanding-report td{font-size:8pt!important}.mhm-wrap .mhm-outstanding-report th:nth-child(n+4),.mhm-wrap .mhm-outstanding-report td:nth-child(n+4),.mhm-wrap .mhm-outstanding-report td:first-child,.mhm-wrap .mhm-outstanding-report td:nth-child(3){font-size:7.5pt!important;white-space:nowrap!important}}

/* MEGH-SV-10.2: action placement follows screenshot arrows. */
@media screen{
.mhm-wrap .mhm-print-controls{display:flex;justify-content:flex-end!important;align-items:center;flex-wrap:wrap;gap:10px}
.mhm-wrap .mhm-print-controls>strong{flex:1 1 auto;margin:0 auto 0 0}
.mhm-wrap .mhm-report-actions{justify-content:flex-end!important}
}
@media(max-width:600px){.mhm-wrap .mhm-print-controls>strong{flex-basis:100%}}

/* MEGH-SV-10.3: ledger action heights and amount alignment. */
.mhm-wrap .mhm-print-controls>a.button{display:inline-flex!important;align-items:center;justify-content:center;gap:7px;box-sizing:border-box!important;height:42px!important;min-height:42px!important;padding:0 14px!important;line-height:20px!important;margin:0;white-space:nowrap;border-radius:6px}
.mhm-wrap .mhm-print-controls>a.button .dashicons{width:18px;height:18px;font-size:18px;line-height:18px;margin:0;flex:none}
.mhm-wrap .mhm-ledger-table th:nth-child(7),.mhm-wrap .mhm-ledger-table td:nth-child(7){text-align:right!important;vertical-align:middle!important;padding-left:16px!important;padding-right:16px!important;width:155px;white-space:nowrap;font-variant-numeric:tabular-nums}
.mhm-wrap .mhm-ledger-table td{vertical-align:middle}
