/* CSU UX 3.1.0 — ajustements locaux propres à cette application.
   Coque, accessibilité et navigation tactile : /Portail/static/csu-theme.css */
/* Portail : anciennes tuiles et bandeaux sous le thème clair. */
html[data-theme="light"] body.csu-shell :is(.diag-card,.diag-item,.diag-state,.clock,.user-admin-row,.role-tabs a,.req-badges>div,.req-metrics>div,.bornes-metrics>div,.bornes-detail-grid>div,.bornes-state,.access-state,.hero-icon,.cardicon,.avatar,.neutral,.configured){background:var(--csu-panel-2)!important;border-color:var(--csu-line)!important;color:var(--csu-text)!important}
html[data-theme="light"] body.csu-shell :is(.bornes-state[data-status="conforme"],.diag-state.ok,.perm-state.on,.notice.success){background:#e5f7ed!important;color:#116c4b!important;border-color:#b8e5ce!important}
html[data-theme="light"] body.csu-shell .bornes-state[data-status="defaut"]{background:#fff1df!important;color:#8c5a15!important;border-color:#f4d9ac!important}
html[data-theme="light"] body.csu-shell .bornes-state[data-status="overdue"]{background:#ffebed!important;color:#a23a49!important;border-color:#eec0c7!important}
html[data-theme="light"] body.csu-shell :is(.diag-state.not_configured,.nav-disabled){color:var(--csu-muted)!important}
html[data-theme="light"] body.csu-shell :is(.role-tabs a.active,.settings.active,aside nav a.active){background:var(--csu-blue-soft)!important;color:var(--csu-blue)!important}
html[data-theme="light"] body.csu-shell :is(.hero p,.kpi p,.card p,.app-card p,.user-admin-row p){color:var(--csu-muted-strong)!important}
@media(max-width:1000px){html[data-theme] body.csu-mobile-ready .home-layout{grid-template-columns:1fr!important}html[data-theme] body.csu-mobile-ready .hero{flex-direction:column!important}html[data-theme] body.csu-mobile-ready .hero>*{min-width:0!important}}

/* CSU UX 3.1.1 — déconnexion du Portail accessible à tout moment sur mobile.
   L'ancien style.css cachait le formulaire sous 600px. */
@media (max-width:1000px){
  html[data-theme] body.csu-mobile-ready > aside .aside-bottom form{display:block!important;margin:10px 0 0!important}
  html[data-theme] body.csu-mobile-ready > aside .aside-bottom form .logout{min-height:44px!important;width:100%!important;display:flex!important;justify-content:flex-start!important;gap:10px!important;margin:0!important;padding:11px 12px!important;border-radius:10px!important;color:var(--csu-text)!important;background:var(--csu-panel-2)!important;border:1px solid var(--csu-line)!important;font-size:13px!important;font-weight:700!important}
  html[data-theme] body.csu-mobile-ready > aside .aside-bottom form .logout:hover{background:var(--csu-blue-soft)!important}
  html[data-theme] body.csu-mobile-ready .csu-mobile-bar .csu-mobile-logout-form{display:flex!important;align-items:center!important;flex:0 0 auto!important;margin:0!important;padding:0!important;width:auto!important}
  html[data-theme] body.csu-mobile-ready .csu-mobile-bar .csu-mobile-logout-button{display:flex!important;align-items:center!important;justify-content:center!important;gap:6px!important;min-height:44px!important;margin:0!important;padding:10px 11px!important;border-radius:11px!important;border:1px solid var(--csu-line)!important;background:var(--csu-panel-2)!important;color:var(--csu-text)!important;font-size:12px!important;font-weight:750!important;white-space:nowrap!important;cursor:pointer!important}
  html[data-theme] body.csu-mobile-ready .csu-mobile-bar .csu-mobile-logout-button:hover{background:var(--csu-blue-soft)!important;color:var(--csu-blue)!important}
  html[data-theme] body.csu-mobile-ready .csu-mobile-bar .csu-mobile-logout-button .icon{height:17px;width:17px;flex:0 0 17px}
}
@media (max-width:360px){
  html[data-theme] body.csu-mobile-ready .csu-mobile-bar{gap:8px!important;padding-right:8px!important;padding-left:8px!important}
  html[data-theme] body.csu-mobile-ready .csu-mobile-bar .csu-mobile-logout-button{padding:8px!important;font-size:11px!important}
  html[data-theme] body.csu-mobile-ready .csu-mobile-bar__logo{width:30px!important;height:30px!important}
}
