/* Manager V2 — ce qui lui est propre. La coquille (jetons de la charte, en-tete, volet, pied de page, boutons) est dans
   Web.Shared : _content/ArgusFlotte.Web.Shared/css/manager-shell.css, chargee avant ce fichier. */

/* Une page fabriquee : zone des widgets (son titre est dans l'en-tete, JM 10/10). */
.mv2-page-buttons{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:18px}
.mv2-widgets-empty{border:2px dashed var(--line);border-radius:var(--radius);padding:40px 20px;text-align:center;color:var(--muted-2);font-size:var(--text-md)}
.mv2-empty{max-width:520px;margin:60px auto;text-align:center;color:var(--muted);line-height:1.6}

/* LA GRILLE DES WIDGETS : 48 colonnes, des rangs de 33 px (celle de la Toolbox, ou l'Admin pose les widgets de la page). */
.mv2-grid{display:grid;grid-template-columns:repeat(48,minmax(0,1fr));grid-auto-rows:33px;gap:0}
.mv2-cell{position:relative;min-width:0;min-height:0;padding:3px}
/* Un controle de l'en-tete ou du pied sans sa liste (JM, 10/10 : « on les met en disable. Il faut les voir ») : grise, inactif. */
.mv2-off{cursor:not-allowed}
.mv2-off > *{opacity:.45;filter:grayscale(1);pointer-events:none}
/* Le Retour d'une page ouverte dans un nouvel onglet (pas de page precedente) : la, grise. */
.mv2-btn:disabled{opacity:.45;filter:grayscale(1);cursor:not-allowed}
.mv2-cell > .gs-item-content{height:100%}
.mv2-cell-note{height:100%;display:flex;align-items:center;justify-content:center;border:2px dashed var(--line);border-radius:var(--radius);
  color:var(--muted);font-size:var(--text-md);text-align:center;padding:12px}
/* Les noms de la V1 dont se servent les widgets recopies (Toolbox, rendus, zone de depot). */
:root{--red:var(--argus);--border:var(--line);--bg-light:var(--bg)}

/* Les widgets fonctionnels a la charte (listes, compteurs, pagination) : Web.Shared/css/mv2-functional.css, charge apres la
   charte (mv2-charte.css) par la page — a specificite egale, c'est l'ordre qui tranche. */
.mv2-empty h1{font-size:var(--text-2xl);color:var(--text);margin-bottom:8px}

/* ===== CONNEXION ===== */
.mv2-login{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:24px;background:var(--bg)}
.mv2-login-box{width:100%;max-width:420px;background:#fff;border:1px solid var(--line);border-radius:12px;padding:28px 26px;box-shadow:var(--shadow-md)}
.mv2-login-logo{height:52px;display:block;margin:0 auto 18px}
.mv2-login h1{font-size:var(--text-2xl);font-weight:800;text-align:center;margin-bottom:4px}
.mv2-login .sub{font-size:var(--text-md);color:var(--muted);text-align:center;margin-bottom:20px;line-height:1.5}
.mv2-field{margin-bottom:14px}
.mv2-field label{display:block;font-size:var(--text-base);font-weight:700;margin-bottom:5px}
.mv2-field input[type=email],.mv2-field input[type=password],.mv2-field input[type=text]{width:100%;height:42px;border:1px solid var(--line);border-radius:var(--radius);
  padding:0 12px;font:inherit;font-size:var(--text-lg)}
.mv2-field input:focus{outline:none;border-color:var(--argus)}
/* L'œil du mot de passe (JM, 22/10) : dans le champ, à droite ; celui d'Edge est masqué pour ne pas en avoir deux. */
.mv2-pass{position:relative}
.mv2-field .mv2-pass input{padding-right:46px}
.mv2-pass input::-ms-reveal,.mv2-pass input::-ms-clear{display:none}
.mv2-pass-eye{position:absolute;right:4px;top:50%;transform:translateY(-50%);width:36px;height:34px;padding:0;border:0;border-radius:var(--radius);
  background:none;color:var(--muted);display:flex;align-items:center;justify-content:center;cursor:pointer}
.mv2-pass-eye:hover,.mv2-pass-eye:focus-visible{color:var(--argus);outline:none}
.mv2-pass-eye .off,.mv2-pass-eye[aria-pressed=true] .on{display:none}
.mv2-pass-eye[aria-pressed=true] .off{display:block}
/* Le mot de passe (JM, 22/10) : « Mot de passe oublié ? » sous le champ, le retour à la connexion, l'indication d'un libellé. */
.mv2-forgot{margin:-6px 0 14px;text-align:right;font-size:var(--text-sm)}
.mv2-forgot a,.mv2-back a{color:var(--argus);font-weight:600;text-decoration:none}
.mv2-forgot a:hover,.mv2-back a:hover{text-decoration:underline}
.mv2-back{margin-top:14px;text-align:center;font-size:var(--text-sm)}
.mv2-field .mv2-hint{font-weight:400;color:var(--muted)}
.mv2-login a.mv2-btn-primary{display:flex;align-items:center;text-decoration:none}
.mv2-login .mv2-btn-primary{width:100%;justify-content:center;height:42px}
.mv2-demo{margin-top:22px;padding-top:16px;border-top:1px solid var(--line)}
.mv2-demo-title{font-size:var(--text-xs);font-weight:700;letter-spacing:.11em;text-transform:uppercase;color:var(--muted-2);margin-bottom:10px;text-align:center}
.mv2-demo-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.mv2-demo-grid .mv2-btn{justify-content:center;width:100%}
.mv2-code{width:100%;height:56px;text-align:center;letter-spacing:.5em;font-size:24px;font-weight:800;border:1px solid var(--line);border-radius:var(--radius)}

/* LE MATERIEL DE DEMO (la V1, wwwroot/css/site.css, recopie ; JM 14/10). Raccords : le volet commence sous l'en-tete (qui garde
   toute la largeur) et pousse la colonne de la page (.mv2-col), pas l'en-tete ; le bouton du bandeau est un bouton V2. */
#demoMaterialPanel{position:fixed;top:var(--header-h);right:0;width:468px;max-width:90vw;height:calc(100vh - var(--header-h));background:#fff;
  border-left:1px solid var(--border);box-shadow:-6px 0 24px rgba(0,0,0,.08);z-index:900;
  transform:translateX(100%);transition:transform var(--dur-slow) var(--ease);display:flex;flex-direction:column}
body.demo-panel-open #demoMaterialPanel{transform:translateX(0)}
body.demo-panel-open .mv2-col{margin-right:468px;transition:margin-right var(--dur-slow) var(--ease)}
#demoMaterialPanel .dmp-head{display:flex;align-items:center;justify-content:space-between;
  padding:12px 16px;border-bottom:1px solid var(--border);flex:0 0 auto}
#demoMaterialPanel .dmp-body{flex:1 1 auto;overflow-y:auto;padding:8px 12px}
/* Accordeon par categorie : en-tete cliquable + corps plie/deplie. */
.dmp-acc{border:1px solid var(--border);border-radius:8px;margin-bottom:8px;overflow:hidden}
.dmp-acc-head{display:flex;align-items:center;gap:8px;padding:9px 11px;cursor:pointer;background:var(--panel-alt);
  font-weight:800;font-size:12px;color:var(--red);text-transform:uppercase;letter-spacing:.4px;user-select:none}
.dmp-acc-head:hover{background:var(--bg)}
.dmp-acc-arrow{transition:transform var(--dur-base) var(--ease);font-size:10px;color:var(--text-dim)}
.dmp-acc.open .dmp-acc-arrow{transform:rotate(90deg)}
.dmp-acc-count{margin-left:auto;font-weight:700;color:var(--text-dim);font-size:11px}
.dmp-acc-body{display:none;padding:10px 11px}
.dmp-acc.open .dmp-acc-body{display:block}
@media(max-width:900px){ body.demo-panel-open .mv2-col{margin-right:0} }
/* les variables de la V1 que le volet emploie (comme .mv2-v1page dans _V1Frame) */
#demoMaterialPanel{--border:var(--line);--text-dim:var(--muted);--red:var(--argus,#b91c3c)}
.mv2-demo-btn{display:inline-flex;align-items:center;gap:6px;font-size:12px}
.mv2-demo-btn[hidden]{display:none}
.mv2-demo-btn svg{width:14px;height:14px;flex:none}
.dmp-acc-arrow svg{width:12px;height:12px;display:block}
/* « Changer mon mot de passe » (JM, 21/10) : le cadenas a cote de Deconnexion, a la place de Deconnexion dans la grille du pied du
   volet ; sa fenetre reprend le dessin des fenetres de la To do. */
.mv2-user-actions{display:flex;align-items:center;justify-content:center;gap:4px;margin-top:4px}
.mv2-user-actions .mv2-logout{margin-top:0}
.mv2-nav-foot:has(.mv2-build) .mv2-user-actions{grid-area:logout;justify-self:center;margin-top:0}
.nav-folded .mv2-user-actions{flex-direction:column}
button.mv2-logout{font-family:inherit;background:none;cursor:pointer;line-height:inherit}
.mv2-pwd{display:inline-flex;align-items:center;padding:2px 5px}
.mv2-pwd svg{width:12px;height:12px;display:block}
.mv2-pwd-dialog{border:1px solid var(--line,#e5e7eb);border-radius:12px;padding:0;margin:auto;width:min(400px,92vw);box-shadow:0 20px 50px rgba(0,0,0,.15)}
.mv2-pwd-dialog::backdrop{background:rgba(17,24,39,.25)}
.mv2-pwd-dialog form{display:flex;flex-direction:column;gap:12px;padding:18px 20px}
.mv2-pwd-title{font-size:16px;font-weight:800}
.mv2-pwd-dialog label{display:flex;flex-direction:column;gap:4px;font-size:12px;font-weight:700;color:#374151}
.mv2-pwd-dialog label span{font-weight:500;color:var(--muted,#6b7280)}
.mv2-pwd-dialog input{font:inherit;font-size:13px;font-weight:400;padding:7px 10px;border:1px solid var(--line,#e5e7eb);border-radius:8px;background:#fff}
.mv2-pwd-msg{min-height:16px;font-size:12px;color:var(--muted,#6b7280)}
.mv2-pwd-msg.bad{color:#a6192e}
.mv2-pwd-msg.good{color:#047857}
.mv2-pwd-actions{display:flex;justify-content:flex-end;gap:8px}
