/* Administration PSSR v90 — isolation des styles publics */
html body.ev39-role-admin{min-width:320px;overflow-x:hidden;background:#f8f4fc}
html body.ev39-role-admin,html body.ev39-role-admin *{box-sizing:border-box}
html body.ev39-role-admin .pssr-main{width:min(1180px,calc(100vw - 24px))!important;min-height:0!important;margin:0 auto!important;padding:24px 0 40px!important}
html body.ev39-role-admin .pssr-main>section.panel{width:100%!important;min-width:0!important;max-width:100%!important;min-height:0!important;margin:0 0 16px!important;padding:clamp(20px,4vw,34px)!important;overflow:hidden!important;border-radius:24px}
html body.ev39-role-admin .pssr-main>section[hidden],
html body.ev39-role-admin #logout[hidden]{display:none!important}
html body.ev39-role-admin #login-panel{max-width:720px!important;margin-left:auto!important;margin-right:auto!important;text-align:center}
html body.ev39-role-admin #login-panel form{display:grid!important;grid-template-columns:minmax(0,1fr)!important;width:100%!important;max-width:540px!important;margin:20px auto 0!important;text-align:left}
html body.ev39-role-admin #login-panel form>*{grid-column:1!important;min-width:0!important;max-width:100%!important}
html body.ev39-role-admin h1,
html body.ev39-role-admin h2{max-width:100%!important;font-size:clamp(2rem,5vw,3.5rem)!important;overflow-wrap:anywhere!important}
html body.ev39-role-admin .ev39-admin-tab-groups{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(220px,1fr))!important;gap:12px!important;min-width:0!important}
html body.ev39-role-admin .ev39-admin-tab-group{min-width:0!important;max-width:100%!important}
html body.ev39-role-admin .tabs,
html body.ev39-role-admin .toolbar,
html body.ev39-role-admin .admin-primary-actions-v80{display:flex!important;flex-wrap:wrap!important;gap:9px!important;min-width:0!important}
html body.ev39-role-admin .tab,
html body.ev39-role-admin .toolbar .btn{max-width:100%!important;white-space:normal!important}
html body.ev39-role-admin .admin-tools{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(190px,1fr))!important;gap:12px!important;min-width:0!important}
html body.ev39-role-admin .admin-tools>*,
html body.ev39-role-admin .records,
html body.ev39-role-admin #admin-records{min-width:0!important;max-width:100%!important}
html body.ev39-role-admin table{width:100%;max-width:100%}
@media(max-width:760px){
 html body.ev39-role-admin .pssr-main{width:calc(100% - 20px)!important;padding-top:12px!important}
 html body.ev39-role-admin .pssr-main>section.panel{padding:18px 14px!important;border-radius:18px}
 html body.ev39-role-admin .ev39-admin-tab-groups,
 html body.ev39-role-admin .admin-tools{grid-template-columns:1fr!important}
 html body.ev39-role-admin .tabs,
 html body.ev39-role-admin .toolbar,
 html body.ev39-role-admin .admin-primary-actions-v80{display:grid!important;grid-template-columns:1fr!important}
 html body.ev39-role-admin .tab,
 html body.ev39-role-admin .toolbar .btn,
 html body.ev39-role-admin .admin-primary-actions-v80 .btn{width:100%!important}
}


/* V95 — connexion administration compacte et sans débordement */
html body.ev39-role-admin #login-panel h1{margin-inline:auto!important;font-size:clamp(2rem,5vw,3.25rem)!important;line-height:1.04!important;text-wrap:balance}
html body.ev39-role-admin #login-form{gap:15px!important}
html body.ev39-role-admin #login-form label,
html body.ev39-role-admin #login-form input,
html body.ev39-role-admin #login-form .btn{width:100%!important;min-width:0!important;max-width:100%!important}
html body.ev39-role-admin #login-form .password-control-v82{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;width:100%!important;min-width:0!important;overflow:hidden!important;border-radius:18px}
html body.ev39-role-admin #login-form .password-control-v82 input{min-width:0!important}
html body.ev39-role-admin #login-form .password-toggle-v82{position:static!important;width:auto!important;min-width:88px!important;white-space:nowrap!important}
html body.ev39-role-admin .auth-secondary-link,
html body.ev39-role-admin .admin-back-link-v95{text-align:center!important}
html body.ev39-role-admin .admin-back-link-v95{margin:16px auto 0!important}
@media(max-width:560px){
 html body.ev39-role-admin #login-panel h1{font-size:clamp(1.8rem,10vw,2.7rem)!important}
 html body.ev39-role-admin #login-form .password-toggle-v82{min-width:76px!important;padding-inline:10px!important;font-size:.88rem}
}


/* V97 — isolation définitive du tableau administrateur */
html body.ev39-role-admin{display:block!important;width:100%!important;min-height:100vh!important;overflow-x:hidden!important}
html body.ev39-role-admin .admin-private-header-v97{position:sticky;top:0;z-index:300;display:flex;align-items:center;justify-content:space-between;gap:14px;width:100%;min-height:68px;padding:10px max(16px,calc((100vw - 1480px)/2));border-bottom:1px solid rgba(124,58,237,.16);background:rgba(255,255,255,.98);box-shadow:0 8px 24px rgba(67,33,83,.07);backdrop-filter:blur(12px)}
html body.ev39-role-admin .admin-private-brand-v97{display:flex;align-items:center;gap:10px;min-width:0;color:#24112f;text-decoration:none}
html body.ev39-role-admin .admin-private-brand-v97 img{width:42px;height:42px;flex:0 0 auto;object-fit:contain}
html body.ev39-role-admin .admin-private-brand-v97 span{display:grid;line-height:1.1}
html body.ev39-role-admin .admin-private-brand-v97 small{color:#6a5575;font-weight:750}
html body.ev39-role-admin .admin-member-return-v97{flex:0 0 auto;min-height:40px;padding:8px 14px}
html body.ev39-role-admin .pssr-main{width:min(1480px,calc(100vw - 32px))!important;max-width:none!important;margin:0 auto!important;padding:18px 0 40px!important}
html body.ev39-role-admin #dashboard-panel{width:100%!important;max-width:none!important;overflow:visible!important}
html body.ev39-role-admin #dashboard-panel .ev39-admin-tab-groups{grid-template-columns:repeat(3,minmax(0,1fr))!important}
html body.ev39-role-admin #dashboard-panel .admin-tools{position:static!important;top:auto!important;z-index:auto!important;grid-template-columns:minmax(240px,2fr) repeat(3,minmax(150px,1fr)) auto!important}
html body.ev39-role-admin #dashboard-panel .records{width:100%!important;min-width:0!important;overflow:visible!important}
html body.ev39-role-admin #dashboard-panel .admin-table-wrap{width:100%!important;max-width:100%!important;overflow-x:auto!important;overflow-y:visible!important;overscroll-behavior-inline:contain;scrollbar-width:thin}
html body.ev39-role-admin #dashboard-panel .admin-table{width:100%!important;min-width:1040px!important;table-layout:auto!important}
html body.ev39-role-admin #dashboard-panel .admin-table th,
html body.ev39-role-admin #dashboard-panel .admin-table td{min-width:0!important;max-width:360px!important;overflow-wrap:anywhere!important;word-break:normal!important}
html body.ev39-role-admin button,
html body.ev39-role-admin .btn{position:relative;z-index:1;touch-action:manipulation;pointer-events:auto!important}
html body.ev39-role-admin .ev39-logout{position:static!important;display:block;margin:0 0 12px auto!important}
@media(max-width:1180px){
 html body.ev39-role-admin #dashboard-panel .ev39-admin-tab-groups{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 html body.ev39-role-admin #dashboard-panel .admin-tools{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 html body.ev39-role-admin #dashboard-panel .admin-filter-reset-v80{width:100%!important}
}
@media(max-width:760px){
 html body.ev39-role-admin .admin-private-header-v97{min-height:60px;padding:8px 10px}
 html body.ev39-role-admin .admin-private-brand-v97 span{display:none}
 html body.ev39-role-admin .admin-member-return-v97{min-height:38px;padding:7px 10px;font-size:.84rem}
 html body.ev39-role-admin .pssr-main{width:calc(100% - 16px)!important;padding-top:8px!important}
 html body.ev39-role-admin #dashboard-panel{overflow:hidden!important}
 html body.ev39-role-admin #dashboard-panel .ev39-admin-tab-groups,
 html body.ev39-role-admin #dashboard-panel .admin-tools{grid-template-columns:minmax(0,1fr)!important}
 html body.ev39-role-admin #dashboard-panel .admin-table-wrap{overflow:visible!important}
 html body.ev39-role-admin #dashboard-panel .admin-table{min-width:0!important;max-width:100%!important}
 html body.ev39-role-admin #dashboard-panel .admin-table td{max-width:100%!important}
}


/* V98 — rythme des actions administration */
html body.ev39-role-admin #dashboard-panel .ev39-admin-tab-groups{gap:16px!important;margin:22px 0 24px!important}
html body.ev39-role-admin #dashboard-panel .ev39-admin-tab-group{padding:16px!important}
html body.ev39-role-admin #dashboard-panel .ev39-admin-tab-group .tabs{gap:10px!important;margin-top:12px!important}
html body.ev39-role-admin #dashboard-panel .admin-primary-actions-v80{gap:12px!important;margin:24px 0 16px!important}
html body.ev39-role-admin #dashboard-panel .toolbar{gap:12px!important}
html body.ev39-role-admin #dashboard-panel .mini-actions{display:flex!important;flex-wrap:wrap!important;gap:10px!important;margin-top:16px!important}
html body.ev39-role-admin #dashboard-panel .quick-status-v80{gap:10px!important;margin:14px 0!important}
@media(max-width:760px){
 html body.ev39-role-admin #dashboard-panel .ev39-admin-tab-groups{gap:12px!important;margin:18px 0 20px!important}
 html body.ev39-role-admin #dashboard-panel .ev39-admin-tab-group .tabs,
 html body.ev39-role-admin #dashboard-panel .admin-primary-actions-v80,
 html body.ev39-role-admin #dashboard-panel .toolbar,
 html body.ev39-role-admin #dashboard-panel .mini-actions{display:grid!important;grid-template-columns:1fr!important;gap:10px!important}
 html body.ev39-role-admin #dashboard-panel .mini-actions button{width:100%!important}
}
