/* Mutuelle Solidarité — Member portal module (v2.9.0) */
/* Member portal — same visual system, not a second product */
body.ms-portal-standalone{--portal-navy:#071a35;--portal-green:#10ad63;background:#f7f9fc!important}
body.ms-portal-standalone .ms-member-app{grid-template-columns:260px minmax(0,1fr)!important;background:#f7f9fc!important}
body.ms-portal-standalone .ms-member-sidebar{width:260px!important;min-width:260px!important;max-width:260px!important;background:linear-gradient(180deg,#071a35 0%,#08213e 65%,#0a2a4b 100%)!important;padding:0 12px 20px!important;box-shadow:none!important}
body.ms-portal-standalone .ms-member-side-brand{min-height:92px!important;padding:16px 12px!important;border-bottom:1px solid rgba(255,255,255,.09)!important}
body.ms-portal-standalone .ms-member-dashboard-logo{max-height:62px!important;max-width:205px!important}
body.ms-portal-standalone .ms-member-side-nav{padding:14px 0!important;gap:4px!important}
body.ms-portal-standalone .ms-member-side-nav a{height:44px!important;min-height:44px!important;border-radius:7px!important;padding:0 13px!important;font-size:13px!important;font-weight:600!important;color:#d8e4f1!important}
body.ms-portal-standalone .ms-member-side-nav a.active{background:linear-gradient(90deg,#10b864,#0faa61)!important;color:#fff!important;box-shadow:inset 4px 0 0 #65e4a1!important}
body.ms-portal-standalone .ms-member-side-nav a:hover{background:rgba(255,255,255,.06)!important}
body.ms-portal-standalone .ms-member-main{background:#f7f9fc!important}
body.ms-portal-standalone .ms-member-topbar{height:68px!important;min-height:68px!important;padding:0 24px!important;background:#fff!important;border-bottom:1px solid var(--msx-line)!important;box-shadow:0 1px 0 rgba(20,40,70,.02)!important}
body.ms-portal-standalone .ms-member-topbar-left{font-size:14px!important;color:#43536a!important;font-weight:700!important}
body.ms-portal-standalone .ms-member-avatar{background:linear-gradient(135deg,#0ca757,#18c675)!important;width:40px!important;height:40px!important}
body.ms-portal-standalone .ms-member-logout{height:38px!important;border-radius:7px!important;background:#fff!important;border-color:#b6dec9!important;color:#09854c!important}
body.ms-portal-standalone .ms-member-content{padding:22px 24px 34px!important;background:#f7f9fc!important}
body.ms-portal-standalone .ms-member-welcome{background:#fff!important;border:1px solid var(--msx-line)!important;border-radius:10px!important;box-shadow:var(--msx-shadow)!important;padding:22px 24px!important;min-height:140px!important;margin-bottom:15px!important;overflow:hidden!important}
body.ms-portal-standalone .ms-member-welcome:before{content:""!important;position:absolute!important;inset:0 auto 0 0!important;width:5px!important;background:#10ad63!important}
body.ms-portal-standalone .ms-member-welcome h1{font-size:29px!important;color:var(--msx-text)!important;font-weight:850!important;letter-spacing:-.03em!important}
body.ms-portal-standalone .ms-member-welcome span{font-size:10.5px!important;color:#0a9855!important;letter-spacing:.11em!important}
body.ms-portal-standalone .ms-member-welcome p,body.ms-portal-standalone .ms-member-welcome small{color:#68778d!important}
body.ms-portal-standalone .ms-member-kpis-premium{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:13px!important;margin-bottom:15px!important}
body.ms-portal-standalone .ms-member-kpi-card{min-height:125px!important;border-radius:9px!important;border:1px solid var(--msx-line)!important;box-shadow:var(--msx-shadow)!important;padding:14px!important;background:#fff!important;position:relative!important;overflow:hidden!important}
body.ms-portal-standalone .ms-member-kpi-card:nth-child(1) .ms-member-kpi-icon{background:linear-gradient(135deg,#0ca757,#18c675)!important;color:#fff!important}
body.ms-portal-standalone .ms-member-kpi-card:nth-child(2) .ms-member-kpi-icon{background:linear-gradient(135deg,#ff9300,#ffac20)!important;color:#fff!important}
body.ms-portal-standalone .ms-member-kpi-card:nth-child(3) .ms-member-kpi-icon{background:linear-gradient(135deg,#13aaa3,#20c6bd)!important;color:#fff!important}
body.ms-portal-standalone .ms-member-kpi-card:nth-child(4) .ms-member-kpi-icon{background:linear-gradient(135deg,#6f37e7,#8b50ff)!important;color:#fff!important}
body.ms-portal-standalone .ms-member-kpi-card:nth-child(5) .ms-member-kpi-icon{background:linear-gradient(135deg,#1786ef,#2aa0ff)!important;color:#fff!important}
body.ms-portal-standalone .ms-member-kpi-icon{width:48px!important;height:48px!important;border-radius:9px!important;margin-bottom:10px!important}
body.ms-portal-standalone .ms-member-kpi-icon svg{width:24px!important;height:24px!important;stroke:#fff!important}
body.ms-portal-standalone .ms-member-kpi-label{font-size:10px!important;color:#6b788d!important;letter-spacing:.05em!important}
body.ms-portal-standalone .ms-member-kpi-card strong{font-size:21px!important;color:var(--msx-text)!important;font-variant-numeric:tabular-nums!important}
body.ms-portal-standalone .ms-member-card{background:#fff!important;border:1px solid var(--msx-line)!important;border-radius:9px!important;box-shadow:var(--msx-shadow)!important;padding:17px!important}
body.ms-portal-standalone .ms-member-card h2,body.ms-portal-standalone .ms-member-card-h h3{color:var(--msx-text)!important;font-weight:800!important}
body.ms-portal-standalone .ms-member-card .ms-table-wrap{border-radius:8px!important;border:1px solid var(--msx-line)!important}
body.ms-portal-standalone .ms-member-card .ms-table thead th{background:#f7f9fc!important;color:#69778d!important;font-size:10px!important;padding:10px!important}
body.ms-portal-standalone .ms-member-card .ms-table tbody td{background:#fff!important;color:#45566f!important;font-size:11.5px!important;padding:10px!important}
body.ms-portal-standalone .ms-member-card .ms-num-col{text-align:right!important;font-variant-numeric:tabular-nums!important}
body.ms-portal-standalone .ms-member-btn,body.ms-portal-standalone .ms-member-statement-btn{background:linear-gradient(90deg,#10b864,#0faa61)!important;color:#fff!important;border-radius:7px!important;box-shadow:none!important}
body.ms-portal-standalone .ms-status-pill{background:#dcf8e9!important;color:#07874b!important;border-radius:5px!important}
body.ms-portal-standalone .ms-profile-meta>div{background:#fff!important;border-color:var(--msx-line)!important;box-shadow:none!important;border-radius:8px!important}
body.ms-portal-standalone .ms-summary-lines{border-color:var(--msx-line)!important}.ms-summary-lines>div{border-color:#edf1f5!important}

@media(max-width:1350px){.ms-pro-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.ms-pro-grid{grid-template-columns:1fr}.ms-donut-wrap{grid-template-columns:190px 1fr}body.ms-portal-standalone .ms-member-kpis-premium{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:782px){.ms-pro-kpis{grid-template-columns:1fr}.ms-pro-grid{grid-template-columns:1fr}.ms-donut-wrap{grid-template-columns:1fr}.ms-status-bars>div{grid-template-columns:36px 120px 1fr 35px}.ms-bar-chart{gap:3px}.ms-wrap{padding:0 12px 26px!important}.ms-topbar{margin:0 -12px 14px!important;padding:16px!important;min-height:auto!important}body.ms-portal-standalone .ms-member-kpis-premium{grid-template-columns:1fr 1fr!important}}


/* Member portal: same square/flat design system */
body.ms-portal-standalone .ms-member-welcome,
body.ms-portal-standalone .ms-member-kpi-card,
body.ms-portal-standalone .ms-member-card,
body.ms-portal-standalone .ms-member-card .ms-table-wrap,
body.ms-portal-standalone .ms-summary-lines,
body.ms-portal-standalone .ms-profile-meta>div,
body.ms-portal-standalone .ms-member-alert,
body.ms-portal-standalone .ms-member-notice,
body.ms-portal-standalone .ms-member-secure,
body.ms-portal-standalone .ms-member-empty-state,
body.ms-portal-standalone .ms-member-transactions table{
  border-radius:0!important;
  box-shadow:none!important;
}
body.ms-portal-standalone .ms-member-side-nav a,
body.ms-portal-standalone .ms-member-logout,
body.ms-portal-standalone .ms-member-btn,
body.ms-portal-standalone .ms-member-statement-btn,
body.ms-portal-standalone .ms-status-pill,
body.ms-portal-standalone input:not([type="checkbox"]):not([type="radio"]),
body.ms-portal-standalone select,
body.ms-portal-standalone textarea,
body.ms-portal-standalone button{
  border-radius:0!important;
}
body.ms-portal-standalone .ms-member-kpi-icon,
body.ms-portal-standalone .ms-member-summary-title>span{
  border-radius:0!important;
}


/* v2.7.1 — member sidebar expand/collapse + white logo */
body.ms-portal-standalone .ms-member-sidebar{position:relative!important;transition:width .18s ease,min-width .18s ease,max-width .18s ease!important}
body.ms-portal-standalone .ms-member-sidebar-toggle{position:absolute!important;top:72px!important;right:0!important;transform:translateX(50%)!important;width:30px!important;height:30px!important;min-width:30px!important;padding:0!important;display:grid!important;place-items:center!important;border:1px solid rgba(255,255,255,.20)!important;border-radius:0!important;background:#173b5f!important;color:#fff!important;cursor:pointer!important;z-index:120!important;box-shadow:none!important}
body.ms-portal-standalone .ms-member-sidebar-toggle:hover,body.ms-portal-standalone .ms-member-sidebar-toggle:focus-visible{background:#0f2f4f!important;outline:2px solid rgba(255,255,255,.35)!important;outline-offset:1px!important}
body.ms-portal-standalone .ms-sidebar-toggle-icon{display:block!important;font-size:24px!important;line-height:1!important;font-weight:400!important;transform:translateY(-1px)!important}
body.ms-portal-standalone .ms-member-dashboard-logo{filter:brightness(0) invert(1)!important;opacity:1!important}
body.ms-portal-standalone .ms-member-app.sidebar-collapsed .ms-member-side-brand{justify-content:center!important;padding-left:0!important;padding-right:0!important}
body.ms-portal-standalone .ms-member-app.sidebar-collapsed .ms-member-dashboard-logo{width:42px!important;max-width:42px!important;max-height:48px!important;object-fit:contain!important;object-position:center!important}
body.ms-portal-standalone .ms-member-app.sidebar-collapsed .ms-member-side-nav{padding-left:8px!important;padding-right:8px!important}
body.ms-portal-standalone .ms-member-app.sidebar-collapsed .ms-member-side-nav a{justify-content:center!important;gap:0!important;padding-left:0!important;padding-right:0!important}
body.ms-portal-standalone .ms-member-app.sidebar-collapsed .ms-member-side-nav a>span:last-child{display:none!important}
body.ms-portal-standalone .ms-member-app.sidebar-collapsed .ms-member-nav-icon{margin:0!important}
@media(max-width:820px){body.ms-portal-standalone .ms-member-sidebar-toggle{display:none!important}body.ms-portal-standalone .ms-member-dashboard-logo{filter:brightness(0) invert(1)!important}}

/* v2.7.2 — draggable member sidebar width */
@media(min-width:821px){
  body.ms-portal-standalone .ms-member-app{
    grid-template-columns:var(--ms-member-sidebar-width,300px) minmax(0,1fr)!important;
  }
  body.ms-portal-standalone .ms-member-sidebar{
    position:relative!important;
    width:var(--ms-member-sidebar-width,300px)!important;
    min-width:var(--ms-member-sidebar-width,300px)!important;
    max-width:var(--ms-member-sidebar-width,300px)!important;
    transition:none!important;
  }
  body.ms-portal-standalone .ms-member-sidebar-toggle{display:none!important}
  body.ms-portal-standalone .ms-member-sidebar-resizer{
    position:absolute!important;
    top:0!important;
    right:-5px!important;
    width:10px!important;
    height:100%!important;
    z-index:250!important;
    cursor:col-resize!important;
    touch-action:none!important;
    background:transparent!important;
    outline:0!important;
  }
  body.ms-portal-standalone .ms-member-sidebar-resizer::after{
    content:"";
    position:absolute;
    top:0;
    bottom:0;
    left:4px;
    width:2px;
    background:transparent;
    transition:background .12s ease;
  }
  body.ms-portal-standalone .ms-member-sidebar-resizer:hover::after,
  body.ms-portal-standalone .ms-member-sidebar-resizer:focus-visible::after,
  body.ms-sidebar-resizing .ms-member-sidebar-resizer::after{
    background:rgba(255,255,255,.55);
  }
  body.ms-sidebar-resizing,
  body.ms-sidebar-resizing *{cursor:col-resize!important;user-select:none!important}
  body.ms-portal-standalone .ms-member-app.sidebar-collapsed{
    grid-template-columns:var(--ms-member-sidebar-width,300px) minmax(0,1fr)!important;
  }
  body.ms-portal-standalone .ms-member-app.sidebar-collapsed .ms-member-sidebar{
    width:var(--ms-member-sidebar-width,300px)!important;
    min-width:var(--ms-member-sidebar-width,300px)!important;
    max-width:var(--ms-member-sidebar-width,300px)!important;
  }
  body.ms-portal-standalone .ms-member-app.sidebar-collapsed .ms-member-side-brand{justify-content:flex-start!important}
  body.ms-portal-standalone .ms-member-app.sidebar-collapsed .ms-member-dashboard-logo{width:auto!important;max-width:100%!important}
  body.ms-portal-standalone .ms-member-app.sidebar-collapsed .ms-member-side-nav a{justify-content:flex-start!important;gap:14px!important;padding-left:18px!important;padding-right:18px!important}
  body.ms-portal-standalone .ms-member-app.sidebar-collapsed .ms-member-side-nav a>span:last-child{display:inline!important}
}
@media(max-width:820px){body.ms-portal-standalone .ms-member-sidebar-resizer{display:none!important}}


/* v3.0.2 — premium flat compact dashboards */
body.wp-admin .ms-topbar,
body[class*="page_ms-"] .ms-topbar,
body.toplevel_page_ms-dashboard .ms-topbar{padding:18px 20px!important;box-shadow:none!important;border-radius:0!important;background:#fff!important;border:1px solid #dfe6ee!important;border-left:4px solid var(--msx-green,#13a463)!important}
body.wp-admin .ms-topbar h1,body[class*="page_ms-"] .ms-topbar h1,body.toplevel_page_ms-dashboard .ms-topbar h1{font-size:28px!important;line-height:1.08!important}
body.wp-admin .ms-kpis,body[class*="page_ms-"] .ms-kpis,body.toplevel_page_ms-dashboard .ms-kpis{grid-template-columns:repeat(auto-fit,minmax(170px,1fr))!important;gap:12px!important;margin-bottom:16px!important}
body.wp-admin .ms-kpi,body[class*="page_ms-"] .ms-kpi,body.toplevel_page_ms-dashboard .ms-kpi{min-height:74px!important;padding:14px 16px!important;border-radius:0!important;box-shadow:none!important;border:1px solid #dfe6ee!important;background:#fff!important}
body.wp-admin .ms-kpi small,body[class*="page_ms-"] .ms-kpi small,body.toplevel_page_ms-dashboard .ms-kpi small{font-size:10px!important;letter-spacing:.06em!important;margin-bottom:4px!important}
body.wp-admin .ms-kpi strong,body[class*="page_ms-"] .ms-kpi strong,body.toplevel_page_ms-dashboard .ms-kpi strong{font-size:17px!important;line-height:1.15!important;font-weight:800!important}
body.wp-admin .ms-card,body[class*="page_ms-"] .ms-card,body.toplevel_page_ms-dashboard .ms-card{padding:16px!important;border-radius:0!important;box-shadow:none!important;border:1px solid #dfe6ee!important;background:#fff!important}
body.wp-admin .ms-card h2,body[class*="page_ms-"] .ms-card h2,body.toplevel_page_ms-dashboard .ms-card h2{font-size:19px!important;line-height:1.15!important}
body.wp-admin .ms-card-h,body[class*="page_ms-"] .ms-card-h,body.toplevel_page_ms-dashboard .ms-card-h{margin-bottom:12px!important}
body.wp-admin .ms-table td,body.wp-admin .ms-table th,body[class*="page_ms-"] .ms-table td,body[class*="page_ms-"] .ms-table th,body.toplevel_page_ms-dashboard .ms-table td,body.toplevel_page_ms-dashboard .ms-table th{padding:10px 9px!important}

body.ms-portal-standalone .ms-member-topbar,
body.ms-portal-standalone .ms-member-content,
body.ms-portal-standalone .ms-member-main{background:#f6f8fb!important}
body.ms-portal-standalone .ms-member-side-nav a,
body.ms-portal-standalone .ms-member-logout,
body.ms-portal-standalone .ms-member-btn,
body.ms-portal-standalone .ms-member-statement-btn,
body.ms-portal-standalone .ms-status-pill,
body.ms-portal-standalone .ms-member-welcome,
body.ms-portal-standalone .ms-member-kpi-card,
body.ms-portal-standalone .ms-member-card,
body.ms-portal-standalone .ms-member-card .ms-table-wrap,
body.ms-portal-standalone .ms-profile-meta>div,
body.ms-portal-standalone .ms-summary-lines,
body.ms-portal-standalone .ms-member-alert,
body.ms-portal-standalone .ms-member-notice,
body.ms-portal-standalone .ms-member-transactions table,
body.ms-portal-standalone .ms-member-summary-title>span{border-radius:0!important;box-shadow:none!important}
body.ms-portal-standalone .ms-member-side-nav a.active,
body.ms-portal-standalone .ms-member-btn,
body.ms-portal-standalone .ms-member-statement-btn{background:#10ad63!important;color:#fff!important}
body.ms-portal-standalone .ms-member-logout{background:#fff!important;color:#0c8b51!important;border:1px solid #cfe2d9!important}
body.ms-portal-standalone .ms-member-welcome{padding:18px 20px!important;min-height:118px!important;margin-bottom:14px!important;border:1px solid #dfe6ee!important;background:#fff!important}
body.ms-portal-standalone .ms-member-welcome:before{width:4px!important;background:#10ad63!important}
body.ms-portal-standalone .ms-member-welcome h1{font-size:25px!important;line-height:1.05!important;margin:0 0 4px!important}
body.ms-portal-standalone .ms-member-welcome p{font-size:14px!important;line-height:1.4!important;margin-bottom:10px!important}
body.ms-portal-standalone .ms-member-welcome small{font-size:12px!important;line-height:1.35!important}
body.ms-portal-standalone .ms-member-welcome-art{display:none!important}
body.ms-portal-standalone .ms-member-kpis-premium{grid-template-columns:repeat(auto-fit,minmax(170px,1fr))!important;gap:10px!important;margin-bottom:14px!important}
body.ms-portal-standalone .ms-member-kpi-card{min-height:92px!important;padding:12px 13px!important;border:1px solid #dfe6ee!important;background:#fff!important}
body.ms-portal-standalone .ms-member-kpi-icon{width:34px!important;height:34px!important;margin-bottom:8px!important;background:#eef4f8!important;color:#234!important;border-radius:0!important}
body.ms-portal-standalone .ms-member-kpi-icon svg{width:18px!important;height:18px!important;stroke:currentColor!important}
body.ms-portal-standalone .ms-member-kpi-label{font-size:9.5px!important;letter-spacing:.07em!important;margin-bottom:4px!important;color:#6f8094!important}
body.ms-portal-standalone .ms-member-kpi-card strong{font-size:16px!important;line-height:1.15!important;font-weight:800!important}
body.ms-portal-standalone .ms-member-grid-premium,body.ms-portal-standalone .ms-member-grid{gap:14px!important}
body.ms-portal-standalone .ms-member-card{padding:14px!important;border:1px solid #dfe6ee!important;background:#fff!important}
body.ms-portal-standalone .ms-member-card-h{margin-bottom:12px!important}
body.ms-portal-standalone .ms-member-card-h h3,body.ms-portal-standalone .ms-member-card h2{font-size:17px!important;line-height:1.15!important;font-weight:800!important}
body.ms-portal-standalone .ms-member-card .ms-table thead th{font-size:10px!important;padding:9px 10px!important;background:#f7f9fb!important}
body.ms-portal-standalone .ms-member-card .ms-table tbody td{font-size:12px!important;padding:9px 10px!important}
body.ms-portal-standalone .ms-profile-meta{gap:10px!important;margin-bottom:16px!important}
body.ms-portal-standalone .ms-profile-meta>div{padding:12px!important;border:1px solid #dfe6ee!important}
body.ms-portal-standalone .ms-summary-lines>div{padding:11px 0!important}
@media(max-width:900px){body.ms-portal-standalone .ms-member-kpis-premium{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:620px){body.ms-portal-standalone .ms-member-kpis-premium{grid-template-columns:1fr!important}body.ms-portal-standalone .ms-member-welcome{padding:16px!important}body.ms-portal-standalone .ms-member-kpi-card strong{font-size:15px!important}}


/* v4.0.1 — MityèlFasil member-brand placement */
body.ms-portal-standalone .ms-member-side-brand-custom{flex-direction:column!important;align-items:flex-start!important;justify-content:center!important;gap:7px!important;padding:16px 12px!important}body.ms-portal-standalone .ms-member-dashboard-logo{max-height:56px!important;object-fit:contain!important}body.ms-portal-standalone .ms-member-software-name{font-size:11px!important;letter-spacing:.08em!important;text-transform:uppercase!important;color:rgba(255,255,255,.72)!important;font-weight:700!important}body.ms-portal-standalone .ms-member-side-powered{margin-top:auto!important;padding:14px 12px 16px!important;border-top:1px solid rgba(255,255,255,.09)!important}body.ms-portal-standalone .ms-member-topbar-left{display:flex!important;align-items:center!important;gap:10px!important}body.ms-portal-standalone .ms-member-topbar-left em{font-style:normal!important;font-size:11px!important;letter-spacing:.08em!important;text-transform:uppercase!important;color:#0b8a63!important;font-weight:800!important}body.ms-portal-standalone .ms-member-powered-footer{margin-top:14px!important;padding:14px 2px 0!important;border-top:1px solid #dfe6ee!important}

/* v4.0.3 — member dashboard logos are always white and alignable */
body.ms-portal-standalone .ms-member-dashboard-logo{filter:brightness(0) invert(1)!important;opacity:1!important}
body.ms-portal-standalone .ms-member-side-brand-custom.align-left{align-items:flex-start!important;text-align:left!important}
body.ms-portal-standalone .ms-member-side-brand-custom.align-center{align-items:center!important;text-align:center!important}
body.ms-portal-standalone .ms-member-side-brand-custom.align-right{align-items:flex-end!important;text-align:right!important}
