/* Mobile enhancements are screen-only: desktop and printed reports keep their layout. */
.mhm-mobile-table-wrap{display:contents}
@media screen and (max-width:782px){
 .mhm-wrap,.mhm-wrap *{box-sizing:border-box}
 .mhm-wrap{width:auto;min-width:0;max-width:100%;margin-right:0;padding:10px 8px 24px;border-radius:12px}
 .mhm-wrap :is(.mhm-panel,.mhm-grid,.mhm-reports-layout,.mhm-form,.mhm-form-grid,.mhm-member-grid,.mhm-entry-layout,.mhm-detail-pairs,.mhm-setting-fields,.mhm-pilgrim-document){min-width:0;max-width:100%}
 .mhm-wrap .mhm-panel{padding:16px 12px;border-radius:14px}
 .mhm-wrap :is(.mhm-grid,.mhm-entry-layout,.mhm-form-grid,.mhm-member-grid,.mhm-address-grid,.mhm-setting-fields,.mhm-settings-grid){grid-template-columns:minmax(0,1fr)!important}
 .mhm-wrap #mhm-transaction-form,.mhm-wrap .mhm-payment-dialog .mhm-form,.mhm-wrap .mhm-directory-dialog .mhm-form{grid-template-columns:minmax(0,1fr)!important}
 .mhm-wrap :is(.mhm-heading,.mhm-ledger-head,.mhm-section-title,.mhm-bulk-heading){flex-wrap:wrap;gap:12px}
 .mhm-wrap .mhm-page-banner{padding:20px 16px;align-items:flex-start}
 .mhm-wrap .mhm-page-banner h1{font-size:23px;overflow-wrap:anywhere}
 .mhm-wrap .mhm-page-banner p{line-height:1.5}
 .mhm-wrap .mhm-version{font-size:11px;white-space:nowrap}
 .mhm-wrap .mhm-workspace-nav{padding:10px;gap:8px;margin-bottom:14px;border-radius:14px}
 .mhm-wrap .mhm-brand{font-size:13px;line-height:1.35}
 .mhm-wrap .mhm-brand-logo{width:34px;height:34px}
 .mhm-wrap .mhm-nav-actions{gap:2px}
 .mhm-wrap .mhm-nav-actions>a{padding:8px 4px;font-size:12px;min-height:44px}
 .mhm-wrap .mhm-workspace-nav.menu-open nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding-top:10px;border-top:1px solid #dce5e5;max-height:65vh;overflow-y:auto}
 .mhm-wrap .mhm-workspace-nav nav a{min-height:48px;margin:0;justify-content:flex-start;font-size:14px;background:#f2f7f5}
 .mhm-wrap .mhm-workspace-nav nav a.is-active{background:var(--mhm-primary);color:#fff}
 .mhm-wrap :is(.mhm-detail-actions,.mhm-toolbar,.mhm-print-controls,.mhm-report-actions,.mhm-bulk-footer,.mhm-settings-buttons){display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-start;max-width:100%}
 .mhm-wrap :is(.mhm-detail-actions,.mhm-report-actions,.mhm-print-controls)>.button{flex:1 1 145px;margin:0!important}
 .mhm-wrap .mhm-settings-buttons{justify-content:flex-start}
 .mhm-wrap .mhm-settings-buttons a{flex:1 1 130px}
 .mhm-wrap .button,.mhm-wrap .mhm-icon,.mhm-crop-dialog button{min-height:44px!important;height:auto!important;line-height:1.35!important;padding:10px 12px;white-space:normal;text-align:center}
 .mhm-wrap .mhm-icon{width:44px!important;height:44px!important;padding:0!important}
 .mhm-wrap .mhm-inline-filter{display:grid;grid-template-columns:minmax(0,1fr);width:100%;padding:12px;gap:12px;margin-left:0;flex-basis:100%}
 .mhm-wrap .mhm-inline-filter :is(label,input,select,.button){min-width:0!important;width:100%!important;max-width:100%;margin:0}
 .mhm-wrap :is(.mhm-filter-actions,.mhm-month-shortcuts){display:flex;flex-wrap:wrap;margin-left:0;width:100%;gap:8px}
 .mhm-wrap :is(.mhm-filter-actions,.mhm-month-shortcuts)>.button{flex:1 1 100px}
 .mhm-wrap input:not([type=hidden]):not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]),.mhm-wrap select{min-width:0;max-width:100%;min-height:44px!important;height:44px!important;font-size:16px!important;line-height:normal!important}
 .mhm-wrap textarea{font-size:16px!important;max-width:100%;min-height:90px}
 .mhm-wrap input[type=file]{width:100%;height:auto!important;min-height:44px}
 .mhm-wrap :is(.mhm-form,.mhm-setting-fields) label{min-width:0;overflow-wrap:anywhere}
 .mhm-wrap :is(.mhm-table-scroll,.mhm-mobile-table-wrap){display:block;max-width:100%;min-width:0;overflow-x:auto;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;border-radius:8px}
 .mhm-wrap :is(.mhm-table-scroll,.mhm-mobile-table-wrap)>table:not(.mhm-bulk table){min-width:680px;table-layout:auto!important}
 .mhm-wrap :is(.mhm-table-scroll,.mhm-mobile-table-wrap):focus-visible{outline:2px solid var(--mhm-primary);outline-offset:2px}
 .mhm-wrap .mhm-detail-cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 .mhm-wrap .mhm-detail-cards strong{font-size:18px;overflow-wrap:anywhere}
 .mhm-wrap .mhm-detail-pairs{grid-template-columns:minmax(0,1fr);gap:12px}
 .mhm-wrap .mhm-travel-change-note{white-space:normal!important}
 .mhm-wrap .mhm-person-travel{min-width:0}
 .mhm-wrap .mhm-photo-edit-layout{gap:12px}
 .mhm-wrap :is(.mhm-payment-dialog,.mhm-directory-dialog),.mhm-crop-dialog{width:calc(100vw - 20px)!important;max-width:calc(100vw - 20px)!important;max-height:90vh;max-height:90dvh;padding:16px;overflow:auto;overscroll-behavior:contain;border-radius:16px}
 .mhm-wrap dialog .mhm-panel{padding:0}
 .mhm-wrap .mhm-entry-layout>aside{min-height:0;padding:16px}
 .mhm-wrap .mhm-application-controls{display:flex;flex-direction:column;align-items:stretch;gap:12px}
 .mhm-wrap .mhm-application-controls .mhm-application-toggle{margin-left:0;align-self:stretch}
 /* Editable bulk rows become labelled cards; financial report tables stay scrollable. */
 .mhm-wrap .mhm-bulk table{display:block;min-width:0!important;width:100%;table-layout:auto}
 .mhm-wrap .mhm-bulk thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
 .mhm-wrap .mhm-bulk tbody{display:block;width:100%}
 .mhm-wrap .mhm-bulk #mhm-bulk-rows>tr{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;padding:14px 12px;margin:0 0 14px;border:1px solid #c5d9d2;border-radius:12px;background:#f6faf8}
 .mhm-wrap .mhm-bulk #mhm-bulk-rows>tr:nth-child(even){background:#eaf3ef}
 .mhm-wrap .mhm-bulk #mhm-bulk-rows>tr>td{display:block;width:100%!important;padding:0!important;min-width:0;border:0;background:transparent}
 .mhm-wrap .mhm-bulk td[data-mobile-label]::before{content:attr(data-mobile-label);display:block;font-size:13px;font-weight:700;margin-bottom:6px;color:var(--mhm-primary)}
 .mhm-wrap .mhm-bulk #mhm-bulk-rows>tr>td:has(>input[hidden]),.mhm-wrap .mhm-bulk #mhm-bulk-rows>tr>td:has(>select[hidden]){display:none}
 .mhm-wrap .mhm-bulk #mhm-bulk-rows :is(input,select){width:100%;min-width:0!important}
 .mhm-wrap .mhm-bulk .mhm-payment-fields{grid-template-columns:minmax(0,1fr)}
 .mhm-wrap .mhm-bulk-footer>.button{flex:1 1 130px;margin:0}
}
@media screen and (max-width:782px){
 .mhm-wrap .mhm-workspace-nav .mhm-menu-toggle{background:#fff;color:var(--mhm-primary);border:1px solid #b6ccc5;border-radius:10px}
 .mhm-wrap :is(.mhm-table-scroll,.mhm-mobile-table-wrap) :is(th,td){white-space:nowrap}
 .mhm-wrap .mhm-bulk #mhm-bulk-rows>tr>td{white-space:normal;background:transparent!important}
 .mhm-wrap :is(.mhm-personal-photo-layout,.mhm-member-photo-layout){display:flex;flex-direction:column;gap:14px;min-width:0}
 .mhm-wrap :is(.mhm-personal-photo-layout,.mhm-member-photo-layout)>.mhm-profile-photo{position:static;margin:0;align-self:flex-start}
 .mhm-wrap :is(.mhm-personal-photo-layout,.mhm-member-photo-layout)>.mhm-detail-pairs{width:100%;grid-template-columns:minmax(0,1fr)!important}
}
@media screen and (max-width:480px){
 .mhm-wrap .mhm-detail-cards{grid-template-columns:minmax(0,1fr)}
 .mhm-wrap .mhm-detail-cards .mhm-panel{margin-bottom:0;display:flex;align-items:center;justify-content:space-between;gap:12px}
 .mhm-wrap .mhm-detail-cards strong{font-size:17px;white-space:nowrap;margin-top:0}
}
@media screen and (max-width:782px){
 .mhm-wrap .mhm-bulk #mhm-bulk-rows :is(input,select,.mhm-remove-bulk){height:44px!important;min-height:44px!important}
 .mhm-wrap .mhm-bulk #mhm-bulk-rows .mhm-remove-bulk{width:44px}
}
