/* 27.11.2026: member dossier only. Preserve original portal header/logo and other modules. */
@media (min-width:901px){
 body>details.samu-member-detail[open]>.samu-record-body{display:grid!important;grid-template-columns:minmax(0,45fr) minmax(390px,55fr)!important;gap:10px 14px!important;align-content:start!important;padding:12px 18px!important;}
 body>details.samu-member-detail[open] .samu-v77-member-overview{grid-column:1/-1!important;grid-row:2!important;min-height:0!important;padding:8px 12px!important;}
 body>details.samu-member-detail[open] .samu-member-record-panel{grid-column:1!important;grid-row:3!important;min-height:0!important;align-self:start!important;}
 body>details.samu-member-detail[open] .samu-admin-sidepanel{grid-column:2!important;grid-row:3!important;align-self:start!important;min-height:0!important;margin:0!important;padding:10px 14px!important;}
 body>details.samu-member-detail[open] .samu-member-record-panel .samu-akte-stats{gap:6px!important;}
 body>details.samu-member-detail[open] .samu-member-record-panel .samu-akte-stats>*{min-height:48px!important;padding:7px 9px!important;}
}
body>details.samu-member-detail[open] .samu-admin-sidepanel h3{margin:0 0 4px!important;font-size:16px!important}
body>details.samu-member-detail[open] .samu-admin-sidepanel h4{margin:8px 0 4px!important;font-size:14px!important}
body>details.samu-member-detail[open] .samu-admin-sidepanel p{margin:5px 0!important;font-size:13px!important}
body>details.samu-member-detail[open] .samu-admin-sidepanel .samu-access-reason{min-height:38px!important;font-size:14px!important}
body>details.samu-member-detail[open] .samu-admin-sidepanel input[type=date]{min-height:36px!important;padding:5px 8px!important}
body>details.samu-member-detail[open] .samu-admin-sidepanel textarea{min-height:56px!important;max-height:100px!important;font-size:13px!important;padding:7px!important}
body>details.samu-member-detail[open] .samu-admin-sidepanel button{padding:8px 11px!important;font-size:13px!important;margin:4px 0!important;min-height:34px!important}
body>details.samu-member-detail[open] .samu-access-history{height:112px!important;max-height:112px!important;overflow-y:auto!important;padding:7px!important;margin:5px 0!important}
body>details.samu-member-detail[open] .samu-access-event{padding:5px 0!important;gap:2px!important}
body>details.samu-member-detail[open] .samu-access-event small{font-size:11px!important;overflow-wrap:anywhere}
body>details.samu-member-detail[open] .samu-admin-member-portrait{display:block!important;width:54px!important;height:54px!important;min-width:54px!important;border-radius:50%!important;object-fit:cover!important;background:#eef0f2 center/cover no-repeat!important;border:1px solid #ccd2d7!important;position:relative!important;}
body>details.samu-member-detail[open] .samu-admin-member-portrait:not(.has-photo){font-size:0;background:#eef0f2 url('data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 64 64%22%3E%3Ccircle cx=%2232%22 cy=%2224%22 r=%2211%22 fill=%22%23939ba4%22/%3E%3Cpath d=%22M12 57c0-16 9-24 20-24s20 8 20 24%22 fill=%22%23939ba4%22/%3E%3C/svg%3E') center/75% no-repeat!important;}
#parent.samu-member-portal .samu-member-profile-editor{display:block!important;visibility:visible!important;margin-top:9px!important;width:100%!important;box-sizing:border-box!important;}
#parent.samu-member-portal .samu-member-profile-editor>summary{display:flex!important;align-items:center!important;min-height:44px!important;cursor:pointer!important;}
#parent.samu-member-portal .samu-member-profile-editor .samu-member-photo-body{display:grid!important;gap:10px!important;}
@media(max-width:900px){body>details.samu-member-detail[open] .samu-admin-sidepanel{grid-row:auto!important;grid-column:auto!important;margin:8px 0!important;}body>details.samu-member-detail[open] .samu-access-history{height:130px!important;max-height:130px!important;}}

/* 27.11 layout correction: explicit grid tracks prevent legacy details overlapping other panels. */
@media(min-width:901px){
 body>details.samu-member-detail[open]>.samu-record-body{grid-template-columns:minmax(0,45fr) minmax(0,55fr)!important;grid-template-rows:auto auto auto auto auto!important;gap:12px 16px!important;}
 body>details.samu-member-detail[open] .samu-v77-member-overview{grid-column:1/-1!important;grid-row:2!important;}
 body>details.samu-member-detail[open] .samu-member-record-panel{grid-column:1!important;grid-row:3!important;}
 body>details.samu-member-detail[open] .samu-admin-sidepanel:not(.samu-id-sidepanel){grid-column:2!important;grid-row:3 / span 2!important;}
 body>details.samu-member-detail[open] .samu-id-sidepanel{grid-column:1!important;grid-row:4!important;align-self:start!important;margin:0!important;}
 body>details.samu-member-detail[open] .samu-v77-member-legacy{grid-column:1/-1!important;grid-row:5!important;position:relative!important;z-index:0!important;margin:0!important;}
}
body>details.samu-member-detail[open] .samu-access-actions{display:flex!important;gap:12px!important;flex-wrap:wrap!important;align-items:center!important;margin-top:8px!important;}
body>details.samu-member-detail[open] .samu-access-actions button{margin:0!important;flex:0 1 auto!important;}
body>details.samu-member-detail[open] .samu-member-portrait-wrap{display:flex!important;flex-direction:column!important;align-items:center!important;gap:3px!important;min-width:110px!important;}
body>details.samu-member-detail[open] .samu-member-portrait-wrap small{font-size:11px!important;color:#5a6470!important;text-align:center!important;}
body>details.samu-member-detail[open] .samu-v77-member-legacy>summary{padding:10px 12px!important;}
@media(max-width:900px){body>details.samu-member-detail[open] .samu-access-actions{gap:10px!important;}body>details.samu-member-detail[open] .samu-member-portrait-wrap{min-width:90px!important;}}
